[Qt] Add more tests to cover the behavior of loadFinished() signal
authorcaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Jul 2011 15:51:16 +0000 (15:51 +0000)
committercaio.oliveira@openbossa.org <caio.oliveira@openbossa.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 25 Jul 2011 15:51:16 +0000 (15:51 +0000)
commit2505bfd2686671448ccd8d6a63a3a8342682b6b2
treee812488f302b42328e98d3334133b54713d2c51b
parent02f86087aa734256725036b91981e0fa958569ab
[Qt] Add more tests to cover the behavior of loadFinished() signal
https://bugs.webkit.org/show_bug.cgi?id=63490

Reviewed by Benjamin Poulain.

* tests/qwebframe/tst_qwebframe.cpp:
(FakeReply::FakeReply):
(FakeNetworkManager::createRequest): Add a fake reply that gives 404 error code.

(tst_QWebFrame::loadFinishedAfterNotFoundError): Verify that we get loadFinished(false)
after a 404 error without contents.

* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage::errorPageExtensionLoadFinished): Verify if the argument of loadFinished()
is true when we use error page extension to produce our own error pages.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@91669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/qt/ChangeLog
Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp
Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp