on xenial help sign in
This makes the tests pass here, let's see if CI is happy?
d7a19d2Albert Astals
tests/qmltests/Dash/tst_GenericScopeView.qml+6−1
@@ -329,7 +329,7 @@ Item {
329 tryCompare(previewListView, "open", false);
329 tryCompare(previewListView, "open", false);
330 }
330 }
331
331
332− function test_filter_expand_expand() {
332+ function test_filter_expand_expand_collapse() {
333 // wait for the item to be there
333 // wait for the item to be there
334 tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeaderapplications.scope") != null; }, true);
334 tryCompareFunction(function() { return findChild(genericScopeView, "dashSectionHeaderapplications.scope") != null; }, true);
335
335
@@ -365,6 +365,10 @@ Item {
365 tryCompare(category0, "filtered", false);
365 tryCompare(category0, "filtered", false);
366 tryCompare(category2, "filtered", true);
366 tryCompare(category2, "filtered", true);
367 tryCompare(category2FilterGrid, "filter", true);
367 tryCompare(category2FilterGrid, "filter", true);
368+ mouseClick(header0, header0.width / 2, header0.height / 2);
369+ mouseClick(header0, header0.width / 2, header0.height / 2);
370+ tryCompare(category0, "filtered", true);
371+ tryCompare(category2, "filtered", true);
368 }
372 }
369
373
370 function test_bug1271676_no_move_y_no_preview() {
374 function test_bug1271676_no_move_y_no_preview() {
@@ -385,6 +389,7 @@ Item {
385 function test_narrow_delegate_ranges_expand() {
389 function test_narrow_delegate_ranges_expand() {
386 tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true);
390 tryCompareFunction(function() { return findChild(genericScopeView, "dashCategory0") != undefined; }, true);
387 var category = findChild(genericScopeView, "dashCategory0")
391 var category = findChild(genericScopeView, "dashCategory0")
392+ tryCompare(category, "filtered", true);
388
393
389 shell.width = units.gu(20)
394 shell.width = units.gu(20)
390 var categoryListView = findChild(genericScopeView, "categoryListView");
395 var categoryListView = findChild(genericScopeView, "categoryListView");