aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qml/script/data/slot_complex_js.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/benchmarks/qml/script/data/slot_complex_js.js')
-rw-r--r--tests/benchmarks/qml/script/data/slot_complex_js.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/benchmarks/qml/script/data/slot_complex_js.js b/tests/benchmarks/qml/script/data/slot_complex_js.js
new file mode 100644
index 0000000000..64a1f65daa
--- /dev/null
+++ b/tests/benchmarks/qml/script/data/slot_complex_js.js
@@ -0,0 +1,8 @@
+function myCustomFunction(n) {
+ var a = 1;
+ while (n > 0) {
+ a = a * n;
+ n--;
+ }
+ return a;
+}