diff options
Diffstat (limited to 'tests/benchmarks/declarative/script/data/slot_simple_js.qml')
-rw-r--r-- | tests/benchmarks/declarative/script/data/slot_simple_js.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/benchmarks/declarative/script/data/slot_simple_js.qml b/tests/benchmarks/declarative/script/data/slot_simple_js.qml new file mode 100644 index 0000000..a88265c --- /dev/null +++ b/tests/benchmarks/declarative/script/data/slot_simple_js.qml @@ -0,0 +1,13 @@ +import Qt.test 1.0 + +TestObject { + + Script { + function myCustomFunction() { + return 0; + } + } + + onMySignal: { for (var ii = 0; ii < 10000; ++ii) { myCustomFunction(); } } +} + |