summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/declarative/holistic/data/jsImports/PragmaBm.qml
blob: 6d9f2e914fe4418d4e7b615cd2364aa1611f56c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import QtQuick 1.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)
}