aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquicktextinput/data
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2012-07-09 16:33:21 +1000
committerQt by Nokia <qt-info@nokia.com>2012-07-11 12:36:02 +0200
commite89a17af703250f06002e16fd00e9ed407769fc4 (patch)
tree9c4980881faaf1b7d99b3d9ac39d8cf1ad5d8d06 /tests/auto/quick/qquicktextinput/data
parentbcf3afa90f371b7ea0d32285d6065046e9296f52 (diff)
Add tests for instantiating cursor delegates in the Loading state.
Components created by QML are usually (always?) ready when assigned to n property, but it possible for an externally supplied component to still be loading, as in the test and the code handles it. Change-Id: I2058e3479e2e711b52af2a0128e6e4c4c3ff7504 Reviewed-by: Martin Jones <martin.jones@nokia.com>
Diffstat (limited to 'tests/auto/quick/qquicktextinput/data')
-rw-r--r--tests/auto/quick/qquicktextinput/data/RemoteCursor.qml5
-rw-r--r--tests/auto/quick/qquicktextinput/data/cursorTestRemote.qml12
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicktextinput/data/RemoteCursor.qml b/tests/auto/quick/qquicktextinput/data/RemoteCursor.qml
new file mode 100644
index 0000000000..7f459f5cc4
--- /dev/null
+++ b/tests/auto/quick/qquicktextinput/data/RemoteCursor.qml
@@ -0,0 +1,5 @@
+import QtQuick 2.0
+
+Rectangle {
+ objectName: "cursorInstance"
+}
diff --git a/tests/auto/quick/qquicktextinput/data/cursorTestRemote.qml b/tests/auto/quick/qquicktextinput/data/cursorTestRemote.qml
new file mode 100644
index 0000000000..8ae872a714
--- /dev/null
+++ b/tests/auto/quick/qquicktextinput/data/cursorTestRemote.qml
@@ -0,0 +1,12 @@
+import QtQuick 2.0
+
+Rectangle { width: 300; height: 300; color: "white"
+ TextInput {
+ text: "Hello world!"
+ id: textInputObject;
+ objectName: "textInputObject"
+ width: 300; height: 300
+ wrapMode: TextInput.Wrap
+ cursorDelegate: contextDelegate
+ }
+}