on xenial help sign in
Added test
commit2892641cedb3852b0c9ef20a426f18852037d50a authorAndrea Cimitan <andrea.cimitan@gmail.com> dateFri 22 Jan 2016, 09:22 (11 years ago) parent48fb276
1 file changed+20
tests/qmltests/Dash/tst_GenericScopeView.qml+20
tests/qmltests/Dash/tst_GenericScopeView.qml+20
@@ -666,6 +666,26 @@ Item {
666666 var shape = findChildsByType(artShapeLoader, "UCUbuntuShape");
667667 compare(shape.borderSource, undefined);
668668 }
669+
670+ function test_clickScopeSizing() {
671+ genericScopeView.scope = scopes.getScopeFromAll("clickscope");
672+ waitForRendering(genericScopeView);
673+
674+ var categoryListView = findChild(genericScopeView, "categoryListView");
675+ waitForRendering(categoryListView);
676+
677+ var categorypredefined = findChild(categoryListView, "dashCategorypredefined");
678+ waitForRendering(categorypredefined);
679+
680+ var cardTool = findChild(categorypredefined, "cardTool");
681+
682+ compare(cardTool.cardWidth, units.gu(9));
683+ shell.width = units.gu(46);
684+ waitForRendering(genericScopeView);
685+ compare(cardTool.cardWidth, units.gu(10));
686+
687+ shell.width = units.gu(120)
688+ }
669689 }
670690 }
671691}