[Qt] Add test for correct order of load signals in QWebPage
authorCaio Marcelo de Oliveira Filho <cmarcelo@webkit.org>
Fri, 12 Aug 2011 15:15:16 +0000 (15:15 +0000)
committerAdemar de Souza Reis Jr <ademar.reis@openbossa.org>
Mon, 5 Sep 2011 14:17:00 +0000 (11:17 -0300)
commit85204c9214d5355a7e2f83efe39e3c3ed6550a96
treef62f61ca5ffc2e07cec08a94c7e4db3ba1eefd76
parent6cf2f5dd90d2f9b44510bce14fd40f965995adfe
[Qt] Add test for correct order of load signals in QWebPage
https://bugs.webkit.org/show_bug.cgi?id=66016

Reviewed by Benjamin Poulain.

Add API test to ensure the order of load signals: loadStarted() needs to be emitted
first, then loadProgress(100), followed by loadFinished().

The test is skipped since this right now is broken, the bug
https://bugs.webkit.org/show_bug.cgi?id=28851 tracks one possible way to fix.

* tests/qwebpage/tst_qwebpage.cpp:
(SpyForLoadSignalsOrder::SpyForLoadSignalsOrder):
(SpyForLoadSignalsOrder::isFinished):
(SpyForLoadSignalsOrder::onLoadProgress):
(tst_QWebPage::loadSignalsOrder_data):
(tst_QWebPage::loadSignalsOrder):

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