aboutsummaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/qml/script/data/scriptCall.qml
blob: ea70269897d63210ed4e6ce6c765d97fcf5db4db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick 2.0
import "script.js" as Script
import "script2.js" as OtherScript

Item {
    function runtest() {
        var a = 0;
        for (var ii = 0; ii < 1000000; ++ii)
            a += Script.func();
        return a;
    }
}