@@ -70,16 +70,11 @@ Rectangle {
70 when: windowShown
70 when: windowShown
72 function test_optionSelector() {
72 function test_optionSelector() {
73− var initialHeight = factory.implicitHeight;
73+ var expandingItem = findChild(factory, "expandingItem");
74− var currentHeight = 0;
75 // Open the selector
74 // Open the selector
76 mouseClick(factory);
75 mouseClick(factory);
77 // wait for it to stop growing
76 // wait for it to stop growing
78− while (currentHeight != factory.implicitHeight) {
77+ tryCompare(factory, "implicitHeight", expandingItem.expandedHeight);
79− currentHeight = factory.implicitHeight;
82− verify(initialHeight < currentHeight);
84 // Check the first option
79 // Check the first option
85 var option0 = findChild(factory, "testOptionSelectorFilterlabel0");
80 var option0 = findChild(factory, "testOptionSelectorFilterlabel0");