Changeset 68507 in webkit
- Timestamp:
- Sep 28, 2010 5:18:41 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r68457 r68507 1 2010-09-28 Benjamin Poulain <benjamin.poulain@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] tst_QWebPage::testStopScheduledPageRefresh() fails on MeeGo handset 6 https://bugs.webkit.org/show_bug.cgi?id=46706 7 8 The test require the network to succeed or fail in order to work. 9 On MeeGo, the network can simply timeout the because of the netword access 10 management. This patch makes the test use local URLs to avoid the 11 problem. 12 13 * tests/qwebpage/tst_qwebpage.cpp: 14 (TestNetworkManager::TestNetworkManager): 15 1 16 2010-09-27 Kenneth Rohde Christiansen <kenneth.christiansen@openbossa.org> 2 17 -
trunk/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp
r67878 r68507 2190 2190 page1.setNetworkAccessManager(new TestNetworkManager(&page1)); 2191 2191 page1.mainFrame()->setHtml("<html><head>" 2192 "<meta http-equiv=\"refresh\"content=\"0;URL= http://qt.nokia.com/favicon.ico\">"2192 "<meta http-equiv=\"refresh\"content=\"0;URL=qrc:///resources/index.html\">" 2193 2193 "</head><body><h1>Page redirects immediately...</h1>" 2194 2194 "</body></html>"); 2195 2195 QVERIFY(::waitForSignal(&page1, SIGNAL(loadFinished(bool)))); 2196 2196 QTest::qWait(500); 2197 QCOMPARE(page1.mainFrame()->url() .toString(), QString("http://qt.nokia.com/favicon.ico"));2197 QCOMPARE(page1.mainFrame()->url(), QUrl(QLatin1String("qrc:///resources/index.html"))); 2198 2198 2199 2199 // With QWebPage::StopScheduledPageRefresh … … 2201 2201 page2.setNetworkAccessManager(new TestNetworkManager(&page2)); 2202 2202 page2.mainFrame()->setHtml("<html><head>" 2203 "<meta http-equiv=\"refresh\"content=\"1;URL= http://qt.nokia.com/favicon.ico\">"2203 "<meta http-equiv=\"refresh\"content=\"1;URL=qrc:///resources/index.html\">" 2204 2204 "</head><body><h1>Page redirect test with 1 sec timeout...</h1>" 2205 2205 "</body></html>"); 2206 2206 page2.triggerAction(QWebPage::StopScheduledPageRefresh); 2207 2207 QTest::qWait(1500); 2208 QCOMPARE(page2.mainFrame()->url().toString(), Q String("about:blank"));2208 QCOMPARE(page2.mainFrame()->url().toString(), QLatin1String("about:blank")); 2209 2209 } 2210 2210
Note: See TracChangeset
for help on using the changeset viewer.