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

import QtQuick 2.0

import "pragmaBmOne.js" as PragmaBmOneJs
import "pragmaBmTwo.js" as PragmaBmTwoJs

Item {
    id: testQtObject

    // value = 20 + 2 + 9 + (nbr times shared testFunc has been called previously == 0)
    property int importedScriptFunctionValueOne: PragmaBmOneJs.testFuncOne(20)

    // value = 20 + 3 + 9 + (nbr times shared testFunc has been called previously == 1)
    property int importedScriptFunctionValueTwo: PragmaBmTwoJs.testFuncTwo(20)
}