diff -r b72c6db6890b -r 5dc02b23752f tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/auto/declarative/qmlvisual/webview/javascript/windowObjects.qml Tue Jul 06 15:10:48 2010 +0300 @@ -0,0 +1,27 @@ +import Qt 4.7 +import org.webkit 1.0 + +Column { + WebView { + width: 200 + height: 200 + url: "test-objects.html" + javaScriptWindowObjects: + QtObject { + property string text: btntext.text + WebView.windowObjectName: "qmltext" + } + } + Row { + Text { text: "Input:" } + Rectangle { + width: btntext.width+10 + height: btntext.height+10 + border.color: "black" + TextInput { + id: btntext + text: "Blah" + } + } + } +}