Add test expectation for one more test having color space issues after r156793.
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / qt / tests / qmltests / WebView / tst_loadProgressSignal.qml
1 import QtQuick 2.0
2 import QtTest 1.0
3 import QtWebKit 3.0
4 import "../common"
5
6 TestWebView {
7     id: webView
8     width: 400
9     height: 300
10
11     SignalSpy {
12         id: spyProgress
13         target: webView
14         signalName: "loadProgressChanged"
15     }
16
17     TestCase {
18         name: "WebViewLoadProgressSignal"
19
20         function test_loadProgressSignal() {
21             compare(spyProgress.count, 0)
22             compare(webView.loadProgress, 0)
23             webView.url = Qt.resolvedUrl("../common/test1.html")
24             spyProgress.wait()
25             compare(true, webView.loadProgress > -1 && webView.loadProgress < 101)
26             if (webView.loadProgress > 0 && webView.loadProgress < 100) {
27                 verify(webView.waitForLoadSucceeded())
28                 spyProgress.wait()
29                 compare(webView.loadProgress, 100)
30             }
31         }
32     }
33 }