Changeset 155188 in webkit
- Timestamp:
- Sep 6, 2013 6:33:03 AM (11 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r155187 r155188 1 2013-09-06 Gabor Abraham <abrhm@inf.u-szeged.hu> 2 3 [Qt] REGRESSION(r155140) Pixel tests is still broken on Qt with QT_WEBKIT_DISABLE_UIPROCESS_DUMPPIXELS=1 4 https://bugs.webkit.org/show_bug.cgi?id=120847 5 6 Reviewed by Csaba Osztrogonác. 7 8 Move the force repaint code back to if (PlatformWebView::windowSnapshotEnabled()) block to support Qt. 9 Typo fixed: windowShapshotEnabled -> windowSnapshotEnabled. 10 Add a default PlatformWebView::windowSnapshotEnabled() to the !PLATFORM(QT). 11 12 * WebKitTestRunner/PlatformWebView.h: 13 (WTR::PlatformWebView::windowSnapshotEnabled): 14 * WebKitTestRunner/TestInvocation.cpp: 15 (WTR::TestInvocation::dumpResults): 16 * WebKitTestRunner/qt/PlatformWebViewQt.cpp: 17 (WTR::WrapperWindow::handleStatusChanged): 18 (WTR::PlatformWebView::windowSnapshotEnabled): 19 * WebKitTestRunner/qt/TestInvocationQt.cpp: 20 (WTR::TestInvocation::dumpPixelsAndCompareWithExpected): 21 1 22 2013-09-06 Allan Sandfeld Jensen <allan.jensen@digia.com> 2 23 -
trunk/Tools/WebKitTestRunner/PlatformWebView.h
r149148 r155188 82 82 void postEvent(QEvent*); 83 83 void setModalEventLoop(QEventLoop* eventLoop) { m_modalEventLoop = eventLoop; } 84 static bool windowShapshotEnabled(); 84 // Window snapshot can be disabled on Qt with QT_WEBKIT_DISABLE_UIPROCESS_DUMPPIXELS=1 environment variable (necessary for xvfb) 85 static bool windowSnapshotEnabled(); 86 #else 87 // Window snapshot is always enabled by default on all other platform. 88 static bool windowSnapshotEnabled() { return true; } 85 89 #endif 86 90 -
trunk/Tools/WebKitTestRunner/TestInvocation.cpp
r155187 r155188 326 326 327 327 if (m_dumpPixels && m_pixelResult) { 328 m_gotRepaint = false; 329 WKPageForceRepaint(TestController::shared().mainWebView()->page(), this, TestInvocation::forceRepaintDoneCallback); 330 TestController::shared().runUntil(m_gotRepaint, TestController::ShortTimeout); 331 if (!m_gotRepaint) { 332 m_errorMessage = "Timed out waiting for pre-pixel dump repaint\n"; 333 m_webProcessIsUnresponsive = true; 334 return; 328 if (PlatformWebView::windowSnapshotEnabled()) { 329 m_gotRepaint = false; 330 WKPageForceRepaint(TestController::shared().mainWebView()->page(), this, TestInvocation::forceRepaintDoneCallback); 331 TestController::shared().runUntil(m_gotRepaint, TestController::ShortTimeout); 332 if (!m_gotRepaint) { 333 m_errorMessage = "Timed out waiting for pre-pixel dump repaint\n"; 334 m_webProcessIsUnresponsive = true; 335 return; 336 } 335 337 } 336 338 dumpPixelsAndCompareWithExpected(m_pixelResult.get(), m_repaintRects.get()); -
trunk/Tools/WebKitTestRunner/qt/PlatformWebViewQt.cpp
r155182 r155188 66 66 QQmlProperty::write(m_view, "anchors.fill", qVariantFromValue(rootObject())); 67 67 68 if (PlatformWebView::windowS hapshotEnabled()) {68 if (PlatformWebView::windowSnapshotEnabled()) { 69 69 setSurfaceType(OpenGLSurface); 70 70 create(); … … 176 176 } 177 177 178 bool PlatformWebView::windowS hapshotEnabled()178 bool PlatformWebView::windowSnapshotEnabled() 179 179 { 180 180 // We need a way to disable UI side rendering for tests because it is -
trunk/Tools/WebKitTestRunner/qt/TestInvocationQt.cpp
r155140 r155188 68 68 { 69 69 QImage image; 70 if (PlatformWebView::windowS hapshotEnabled()) {70 if (PlatformWebView::windowSnapshotEnabled()) { 71 71 image = WKImageCreateQImage(TestController::shared().mainWebView()->windowSnapshotImage().get()); 72 72 } else
Note: See TracChangeset
for help on using the changeset viewer.