Changeset 90181 in webkit
- Timestamp:
- Jun 30, 2011 4:30:18 PM (13 years ago)
- Location:
- trunk/Source/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/qt/ChangeLog
r90178 r90181 1 2011-06-30 Rafael Brandao <rafael.lobo@openbossa.org> 2 3 Reviewed by Benjamin Poulain. 4 5 [Qt] Fix tst_QWebFrame::renderGeometry() API test 6 https://bugs.webkit.org/show_bug.cgi?id=63236 7 8 This test required a security origin with granted permission to request local resources. 9 By default, only local files can load local resources. So modified baseUrl to be a local file. 10 11 * tests/qwebframe/tst_qwebframe.cpp: 12 (tst_QWebFrame::renderGeometry): 13 1 14 2011-06-27 Diego Gonzalez <diegohcg@webkit.org> 2 15 -
trunk/Source/WebKit/qt/tests/qwebframe/tst_qwebframe.cpp
r89830 r90181 2899 2899 QWebFrame *frame = frames.at(0); 2900 2900 QString innerHtml("<body style='margin: 0px;'><img src='qrc:/image.png'/></body>"); 2901 frame->setHtml(innerHtml); 2901 2902 // By default, only security origins of local files can load local resources. 2903 // So we should specify baseUrl to be a local file in order to get a proper origin. 2904 frame->setHtml(innerHtml, QUrl("file:///path/to/file")); 2902 2905 waitForSignal(frame, SIGNAL(loadFinished(bool)), 200); 2903 2906 … … 2912 2915 painter1.end(); 2913 2916 2914 QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue);2915 2917 QCOMPARE(size.width(), picture.boundingRect().width() + frame->scrollBarGeometry(Qt::Vertical).width()); 2916 QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue);2917 2918 QCOMPARE(size.height(), picture.boundingRect().height() + frame->scrollBarGeometry(Qt::Horizontal).height()); 2918 2919 … … 2922 2923 painter2.end(); 2923 2924 2924 QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue);2925 2925 QCOMPARE(size.width(), picture.boundingRect().width()); // width: 100px 2926 QEXPECT_FAIL("", "https://bugs.webkit.org/show_bug.cgi?id=63236", Continue);2927 2926 QCOMPARE(size.height(), picture.boundingRect().height()); // height: 100px 2928 2927 }
Note: See TracChangeset
for help on using the changeset viewer.