aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data/jsimportfail/importWithImports.js
blob: 6d77ceccb15353e693233dee1102ab9b8bcf6f29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
.import "importOne.js" as ImportOne

// This js file has imports, so should not inherit
// scope from the QML file which includes it.

function componentError() {
    var i = 3;
    var errorIsOne = Component.error == 1; // this line should fail.
    if (errorIsOne == true) {
        i = i + 4;
    }
    return i;
}