[Qt] Add more tests to cover the behavior of loadFinished() signal
authorCaio Marcelo de Oliveira Filho <cmarcelo@webkit.org>
Mon, 25 Jul 2011 15:51:16 +0000 (15:51 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Fri, 29 Jul 2011 14:56:53 +0000 (11:56 -0300)
commit8a95d2b5e2117fee85b4ccce4eae589f6a4eaee9
treee7d0e88e41bf70e0c7e84a2d3282f3cbd60f01b1
parent8c104c0f5f21a71269716ea9d84ba20ca78b81ab
[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: http://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