aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmllanguage/data/importJs.8.qml
blob: 0d5ad052e7474ce7bdfce4e16e34576d9ce08556 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import org.qtproject.PureJsModule 1.5 as PJM
import QtQuick 2.0

Item {
    property bool test: false

    Component.onCompleted: {
        test = ((PJM.FirstAPI.greeting() == "Hello") &&
                (PJM.FirstAPI.major == 1) &&
                (PJM.FirstAPI.minor == 0) &&
                (PJM.SecondAPI.greeting() == "Howdy") &&
                (PJM.SecondAPI.major == 1) &&
                (PJM.SecondAPI.minor == 5))
    }
}