diff options
author | Alexis Menard <alexis.menard@nokia.com> | 2011-06-27 21:51:10 (GMT) |
---|---|---|
committer | Alexis Menard <alexis.menard@nokia.com> | 2011-06-27 21:51:10 (GMT) |
commit | cc7f93d1a8b6350c5e0ad5a58cf78d17a51201fa (patch) | |
tree | 36de473ddbd0cb424718540a230b98a1c25a1192 /src/3rdparty/webkit/Source/WebKit/qt/tests | |
parent | e1c651f1284f1041ba5e03246686018e363d0e44 (diff) | |
download | Qt-cc7f93d1a8b6350c5e0ad5a58cf78d17a51201fa.zip Qt-cc7f93d1a8b6350c5e0ad5a58cf78d17a51201fa.tar.gz Qt-cc7f93d1a8b6350c5e0ad5a58cf78d17a51201fa.tar.bz2 |
Updated WebKit to d30a30ac4faadcb8b2e282e343c921f919fbca9b
Beta1 of QtWebkit 2.2.
Reviewed-by: Andreas Kling
Diffstat (limited to 'src/3rdparty/webkit/Source/WebKit/qt/tests')
-rw-r--r-- | src/3rdparty/webkit/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp | 16 | ||||
-rw-r--r-- | src/3rdparty/webkit/Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp | 3 |
2 files changed, 16 insertions, 3 deletions
diff --git a/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp b/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp index b567784..f2bdcee 100644 --- a/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp +++ b/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp @@ -649,7 +649,7 @@ private slots: void setContent_data(); void setContent(); void setCacheLoadControlAttribute(); - void setUrlWithPendingLoads(); + //void setUrlWithPendingLoads(); void setUrlWithFragment_data(); void setUrlWithFragment(); void setUrlToEmpty(); @@ -2004,10 +2004,9 @@ void tst_QWebFrame::overloadedSlots() QCOMPARE(m_myObject->qtFunctionInvoked(), 35); */ - // should pick myOverloadedSlot(QRegExp) + // Should pick myOverloadedSlot(QWebElement). m_myObject->resetQtFunctionInvoked(); evalJS("myObject.myOverloadedSlot(document.body)"); - QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=37319", Continue); QCOMPARE(m_myObject->qtFunctionInvoked(), 36); // should pick myOverloadedSlot(QObject*) @@ -2503,7 +2502,9 @@ void tst_QWebFrame::setHtmlWithResource() QCOMPARE(spy.count(), 1); QCOMPARE(frame->evaluateJavaScript("document.images.length").toInt(), 1); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63235", Continue); QCOMPARE(frame->evaluateJavaScript("document.images[0].width").toInt(), 128); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63235", Continue); QCOMPARE(frame->evaluateJavaScript("document.images[0].height").toInt(), 128); QString html2 = @@ -2522,6 +2523,7 @@ void tst_QWebFrame::setHtmlWithResource() QCOMPARE(spy.size(), 2); QWebElement p = frame->documentElement().findAll("p").at(0); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63235", Continue); QCOMPARE(p.styleProperty("color", QWebElement::CascadedStyle), QLatin1String("red")); } @@ -2909,7 +2911,9 @@ void tst_QWebFrame::renderGeometry() frame->render(&painter1, QWebFrame::ContentsLayer); painter1.end(); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue); QCOMPARE(size.width(), picture.boundingRect().width() + frame->scrollBarGeometry(Qt::Vertical).width()); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue); QCOMPARE(size.height(), picture.boundingRect().height() + frame->scrollBarGeometry(Qt::Horizontal).height()); // render everything, should be the size of the iframe @@ -2917,7 +2921,9 @@ void tst_QWebFrame::renderGeometry() frame->render(&painter2, QWebFrame::AllLayers); painter2.end(); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue); QCOMPARE(size.width(), picture.boundingRect().width()); // width: 100px + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue); QCOMPARE(size.height(), picture.boundingRect().height()); // height: 100px } @@ -3353,12 +3359,16 @@ void tst_QWebFrame::webElementSlotOnly() QCOMPARE(evalJS("myWebElementSlotObject.tagName"), QString("BODY")); } +// [Qt] Fix tst_QWebFrame::setUrlWithPendingLoads() API test +// https://bugs.webkit.org/show_bug.cgi?id=63237 +/* void tst_QWebFrame::setUrlWithPendingLoads() { QWebPage page; page.mainFrame()->setHtml("<img src='dummy:'/>"); page.mainFrame()->setUrl(QUrl("about:blank")); } +*/ void tst_QWebFrame::setUrlWithFragment_data() { diff --git a/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp b/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp index efe3a3f..359ef05 100644 --- a/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp +++ b/src/3rdparty/webkit/Source/WebKit/qt/tests/qwebpage/tst_qwebpage.cpp @@ -2793,6 +2793,7 @@ void tst_QWebPage::showModalDialog() TestModalPage page; page.mainFrame()->setHtml(QString("<html></html>")); QString res = page.mainFrame()->evaluateJavaScript("window.showModalDialog('javascript:window.returnValue=dialogArguments; window.close();', 'This is a test');").toString(); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63244", Continue); QCOMPARE(res, QString("This is a test")); } @@ -2805,8 +2806,10 @@ void tst_QWebPage::testStopScheduledPageRefresh() "<meta http-equiv=\"refresh\"content=\"0;URL=qrc:///resources/index.html\">" "</head><body><h1>Page redirects immediately...</h1>" "</body></html>"); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63245", Continue); QVERIFY(::waitForSignal(&page1, SIGNAL(loadFinished(bool)))); QTest::qWait(500); + QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63245", Continue); QCOMPARE(page1.mainFrame()->url(), QUrl(QLatin1String("qrc:///resources/index.html"))); // With QWebPage::StopScheduledPageRefresh |