~zyga/checkbox/typos

« back to all changes in this revision

Viewing changes to checkbox-touch/components/QmlNativePage.qml

  • Committer: Daniel Manrique
  • Author(s): Maciej Kisielewski
  • Date: 2015-03-16 10:57:43 UTC
  • mfrom: (3589.5.11 launchpad/story-1241)
  • Revision ID: daniel_manrique-20150316105743-1lhsq93tz94tt47m
"automatic merge of lp:~kissiel/checkbox/story-1241/ by tarmac [r=sylvain-pineau][bug=][author=kissiel]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
        id: testingShell
41
41
        property string name: "Checkbox-touch qml shell"
42
42
        property alias pageStack: qmlNativePage.pageStack
 
43
        property string sessionDir: app.sessionDir
43
44
        function getTest() {
44
45
            return test;
45
46
        }
114
115
                // prepare page with the test
115
116
                var testItemComponent = Qt.createComponent(Qt.resolvedUrl(test['qml_file']));
116
117
                if (testItemComponent.status == Component.Error) {
117
 
                    console.log("Error creating testPageComponent:", testPageComponent.errorString());
 
118
                    console.error("Error creating testItemComponent. Possible cause: Problem with job's qml file. Error:", testItemComponent.errorString());
 
119
                    test['outcome'] = 'fail';
 
120
                    testDone(test);
 
121
                    return;
118
122
                }
119
123
 
120
 
                var testItem = testItemComponent.createObject(null, {"testingShell": testingShell});
 
124
                var testItem = testItemComponent.createObject(mainView, {"testingShell": testingShell});
121
125
                testItem.testDone.connect(function(testResult) {
122
126
                    test['outcome'] = testResult['outcome'];
123
127
                    test['result'] = testResult;
125
129
                    while(savedStack.length) {
126
130
                        pageStack.push(savedStack.pop());
127
131
                    }
 
132
                    testItem.destroy();
128
133
                    testDone(test);
129
134
                });
130
135
            }