summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/script/data/slot_complex.qml
blob: d71120dff1edc4dabfd39c967ab54e01bdb9ca5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import Qt.test 1.0

TestObject {
    function myCustomFunction(b) {
        var n = b;
        var a = 1;
        while (n > 0) {
            a = a * n;
            n--; 
        }
        return a;
    }

    onMySignal: { for (var ii = 0; ii < 10000; ++ii) { myCustomFunction(10); } }
}