diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-06-10 13:46:44 +1000 |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-06-10 13:46:44 +1000 |
commit | 77dfbea79094be6b763319fcca03f6b48ab8248e (patch) | |
tree | 8a927dc482f964232a5018bb9c43dad7168b0473 /tests/benchmarks/declarative/javascript/data/nestedId.qml | |
parent | 281d15b90c95c64dca5ce674b41045efc4419b95 (diff) |
Add JavaScript benchmark
Diffstat (limited to 'tests/benchmarks/declarative/javascript/data/nestedId.qml')
-rw-r--r-- | tests/benchmarks/declarative/javascript/data/nestedId.qml | 13 |
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(); + } +} + |