on xenial help sign in
tests fixed
commit1db270fd3c2a0f51a89577a019aa5a48a5b5b979 authorDiego Sarmentero <diego.sarmentero@gmail.com> dateThu 10 Oct 2013, 12:03 (13 years ago) parent3b29ce7
3 files changed+8−2
tests/qmltests/Dash/Apps/tst_AppPreview.qml+6−2 tests/qmltests/Dash/Movie/tst_MoviePreview.qml+1 tests/qmltests/Dash/tst_GenericPreview.qml+1
tests/qmltests/Dash/Apps/tst_AppPreview.qml+6−2
@@ -97,6 +97,9 @@ Item {
9797 }
9898
9999 function fake_call(id, data){
100+ console.log("\n");
101+ console.log(data);
102+ console.log("\n");
100103 root.calls[root.calls.length] = [id, data];
101104 }
102105
@@ -137,11 +140,12 @@ Item {
137140 for(var i = 0; i < buttons.count; i++) {
138141 var button = findChild(appPreview, "button" + i);
139142 mouseClick(button, 1, 1);
143+ appPreview.showProcessingAction = false;
140144 }
141145
142146 var actions = data.actions;
143− for(var i = 0; i < actions.length; i++) {
144− compare(root.calls[i][0], actions[i].id, "Id of action not found.");
147+ for(var j = 0; j < actions.length; j++) {
148+ compare(root.calls[j][0], actions[j].id, "Id of action not found.");
145149 }
146150 }
147151
tests/qmltests/Dash/Movie/tst_MoviePreview.qml+1
@@ -74,6 +74,7 @@ Item {
7474 for(var i = 0; i < buttons.count; i++) {
7575 var button = findChild(moviePreview, "button" + i);
7676 mouseClick(button, 1, 1);
77+ moviePreview.showProcessingAction = false;
7778 }
7879
7980 var actions = get_actions_data();
tests/qmltests/Dash/tst_GenericPreview.qml+1
@@ -76,6 +76,7 @@ Item {
7676 for(var i = 0; i < buttons.count; i++) {
7777 var button = findChild(genericPreview, "button" + i);
7878 mouseClick(button, 1, 1);
79+ genericPreview.showProcessingAction = false;
7980 }
8081
8182 var actions = get_actions_data();