aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qtquick2/qquickloader/data/CreationContextLoader.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qtquick2/qquickloader/data/CreationContextLoader.qml')
-rw-r--r--tests/auto/qtquick2/qquickloader/data/CreationContextLoader.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/auto/qtquick2/qquickloader/data/CreationContextLoader.qml b/tests/auto/qtquick2/qquickloader/data/CreationContextLoader.qml
new file mode 100644
index 0000000000..4dd73e797c
--- /dev/null
+++ b/tests/auto/qtquick2/qquickloader/data/CreationContextLoader.qml
@@ -0,0 +1,15 @@
+import QtQuick 2.0
+
+Loader {
+ id: myLoader
+ property int testProperty: 1912
+ sourceComponent: loaderComponent
+ Component {
+ id: loaderComponent
+ Item {
+ Component.onCompleted: {
+ test = (myLoader.testProperty == 1912);
+ }
+ }
+ }
+}