aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/javascript/data/nestedId.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/declarative/javascript/data/nestedId.qml')
-rw-r--r--tests/benchmarks/declarative/javascript/data/nestedId.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/javascript/data/nestedId.qml b/tests/benchmarks/declarative/javascript/data/nestedId.qml
new file mode 100644
index 0000000000..49c4e3ca43
--- /dev/null
+++ b/tests/benchmarks/declarative/javascript/data/nestedId.qml
@@ -0,0 +1,13 @@
+// Benchmarks the cost of accessing an id in a parent context of the script.
+
+import QtQuick 1.0
+
+QtObject {
+ id: root
+
+ property variant object: NestedIdObject {}
+ function runtest() {
+ object.runtest();
+ }
+}
+