[Qt] [WK2] Expose web view classes to QML
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / qt / tests / qmltests / DesktopWebView / tst_properties.qml
1 import QtQuick 2.0
2 import QtTest 1.0
3 import QtWebKit.experimental 5.0
4
5 DesktopWebView {
6     id: webView
7
8     SignalSpy {
9         id: spy
10         target: webView
11         signalName: "loadSucceeded"
12     }
13
14     TestCase {
15         name: "DesktopWebViewProperties"
16
17         function test_title() {
18             compare(spy.count, 0)
19             webView.load(Qt.resolvedUrl("../common/test1.html"))
20             spy.wait()
21             compare(webView.title, "Test page 1")
22         }
23     }
24 }