on xenial help sign in
Remove the need for the wait
a376e05Albert Astals
tests/qmltests/Dash/tst_GenericScopeView.qml+2−1
@@ -82,8 +82,10 @@ Item {
82
82
83 function test_showDash() {
83 function test_showDash() {
84 previewListView.open = true;
84 previewListView.open = true;
85+ tryCompare(openEffect, "live", true);
85 scopes.get(0).showDash();
86 scopes.get(0).showDash();
86 tryCompare(previewListView, "open", false);
87 tryCompare(previewListView, "open", false);
88+ tryCompare(openEffect, "live", true);
87 }
89 }
88
90
89 function test_hideDash() {
91 function test_hideDash() {
@@ -102,7 +104,6 @@ Item {
102 },
104 },
103 true);
105 true);
104 var tile = findChild(genericScopeView, "delegate0");
106 var tile = findChild(genericScopeView, "delegate0");
105− wait(1000);
106 mouseClick(tile, tile.width / 2, tile.height / 2);
107 mouseClick(tile, tile.width / 2, tile.height / 2);
107 tryCompare(previewListView, "open", true);
108 tryCompare(previewListView, "open", true);
108 tryCompare(openEffect, "gap", 1);
109 tryCompare(openEffect, "gap", 1);