diff options
author | Konstantin Tokarev <annulen@yandex.ru> | 2016-08-25 19:20:41 +0300 |
---|---|---|
committer | Konstantin Tokarev <annulen@yandex.ru> | 2017-02-02 12:30:55 +0000 |
commit | 6882a04fb36642862b11efe514251d32070c3d65 (patch) | |
tree | b7959826000b061fd5ccc7512035c7478742f7b0 /Tools/WebKitTestRunner/qt/TestInvocationQt.cpp | |
parent | ab6df191029eeeb0b0f16f127d553265659f739e (diff) | |
download | qtwebkit-6882a04fb36642862b11efe514251d32070c3d65.tar.gz |
Imported QtWebKit TP3 (git b57bc6801f1876c3220d5a4bfea33d620d477443)
Change-Id: I3b1d8a2808782c9f34d50240000e20cb38d3680f
Reviewed-by: Konstantin Tokarev <annulen@yandex.ru>
Diffstat (limited to 'Tools/WebKitTestRunner/qt/TestInvocationQt.cpp')
-rw-r--r-- | Tools/WebKitTestRunner/qt/TestInvocationQt.cpp | 22 |
1 files changed, 2 insertions, 20 deletions
diff --git a/Tools/WebKitTestRunner/qt/TestInvocationQt.cpp b/Tools/WebKitTestRunner/qt/TestInvocationQt.cpp index aac846f8d..ac6aaf1ec 100644 --- a/Tools/WebKitTestRunner/qt/TestInvocationQt.cpp +++ b/Tools/WebKitTestRunner/qt/TestInvocationQt.cpp @@ -64,29 +64,11 @@ static void dumpImage(const QImage& image) fflush(stdout); } -void TestInvocation::forceRepaintDoneCallback(WKErrorRef, void *context) -{ - static_cast<TestInvocation*>(context)->m_gotRepaint = true; - TestController::shared().notifyDone(); -} - void TestInvocation::dumpPixelsAndCompareWithExpected(WKImageRef imageRef, WKArrayRef repaintRects) { QImage image; - if (PlatformWebView::windowShapshotEnabled()) { - WKPageRef page = TestController::shared().mainWebView()->page(); - WKPageForceRepaint(page, this, &forceRepaintDoneCallback); - - TestController::shared().runUntil(m_gotRepaint, TestController::ShortTimeout); - - if (m_gotRepaint) - image = WKImageCreateQImage(TestController::shared().mainWebView()->windowSnapshotImage().get()); - else { - m_error = true; - m_errorMessage = "Timed out waiting for repaint\n"; - m_webProcessIsUnresponsive = true; - return; - } + if (PlatformWebView::windowSnapshotEnabled()) { + image = WKImageCreateQImage(TestController::shared().mainWebView()->windowSnapshotImage().get()); } else image = WKImageCreateQImage(imageRef); |