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