on xenial help sign in
tests fixed
1db270fDiego Sarmentero
tests/qmltests/Dash/Apps/tst_AppPreview.qml+6−2
@@ -97,6 +97,9 @@ Item {
97 }
97 }
98
98
99 function fake_call(id, data){
99 function fake_call(id, data){
100+ console.log("\n");
101+ console.log(data);
102+ console.log("\n");
100 root.calls[root.calls.length] = [id, data];
103 root.calls[root.calls.length] = [id, data];
101 }
104 }
102
105
@@ -137,11 +140,12 @@ Item {
137 for(var i = 0; i < buttons.count; i++) {
140 for(var i = 0; i < buttons.count; i++) {
138 var button = findChild(appPreview, "button" + i);
141 var button = findChild(appPreview, "button" + i);
139 mouseClick(button, 1, 1);
142 mouseClick(button, 1, 1);
143+ appPreview.showProcessingAction = false;
140 }
144 }
141
145
142 var actions = data.actions;
146 var actions = data.actions;
143− for(var i = 0; i < actions.length; i++) {
147+ for(var j = 0; j < actions.length; j++) {
144− compare(root.calls[i][0], actions[i].id, "Id of action not found.");
148+ compare(root.calls[j][0], actions[j].id, "Id of action not found.");
145 }
149 }
146 }
150 }
147
151
tests/qmltests/Dash/Movie/tst_MoviePreview.qml+1
@@ -74,6 +74,7 @@ Item {
74 for(var i = 0; i < buttons.count; i++) {
74 for(var i = 0; i < buttons.count; i++) {
75 var button = findChild(moviePreview, "button" + i);
75 var button = findChild(moviePreview, "button" + i);
76 mouseClick(button, 1, 1);
76 mouseClick(button, 1, 1);
77+ moviePreview.showProcessingAction = false;
77 }
78 }
78
79
79 var actions = get_actions_data();
80 var actions = get_actions_data();
tests/qmltests/Dash/tst_GenericPreview.qml+1
@@ -76,6 +76,7 @@ Item {
76 for(var i = 0; i < buttons.count; i++) {
76 for(var i = 0; i < buttons.count; i++) {
77 var button = findChild(genericPreview, "button" + i);
77 var button = findChild(genericPreview, "button" + i);
78 mouseClick(button, 1, 1);
78 mouseClick(button, 1, 1);
79+ genericPreview.showProcessingAction = false;
79 }
80 }
80
81
81 var actions = get_actions_data();
82 var actions = get_actions_data();