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

Item {
    property bool test: false

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

    }
}