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