aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/jsimport/importWithNoImports.js
blob: 83426c425c53970bb298208c8825c0ee266e2d8e (plain)
1
2
3
4
5
6
7
8
9
10
11
// This js file has no imports, and so should inherit
// scope from the QML file which includes it.

function componentError() {
    var i = 5;
    var errorIsOne = Component.error == 1;
    if (errorIsOne == true) {
        i = i + 7;
    }
    return i;
}