2008-09-04 Tor Arne Vestbø <tavestbo@trolltech.com>
[WebKit-https.git] / WebKit / qt / tests / qwebpage / tst_qwebpage.cpp
index 7c443ca2773e44abbb44f6510ff6c0eed5b79855..da9379e19eff97eea8eefe276115fc8755dacaa1 100644 (file)
@@ -262,7 +262,7 @@ void tst_QWebPage::userStyleSheet()
     m_view->setHtml("<p>hello world</p>");
     QVERIFY(::waitForSignal(m_view, SIGNAL(loadFinished(bool))));
 
-    QCOMPARE(networkManager->requestedUrls.count(), 2);
+    QVERIFY(networkManager->requestedUrls.count() >= 2);
     QCOMPARE(networkManager->requestedUrls.at(0), QUrl::fromEncoded("data:text/css,p { background-image: url(qrc:/does/not/exist.png);}"));
     QCOMPARE(networkManager->requestedUrls.at(1), QUrl::fromEncoded("qrc:/does/not/exist.png"));
 }