@@ -136,8 +136,7 @@ IndicatorTest {
138 function wait_for_expansion_to_settle() {
138 function wait_for_expansion_to_settle() {
139− tryCompare(heightAnimation, "running", false);
139+ waitUntilTransitionsEnd(indicatorsBar);
140− wait(UbuntuAnimation.SnapDuration); // put a little extra wait in for things to settle
143 // Rough check that expanding a selected item keeps it within the area of the original item.
142 // Rough check that expanding a selected item keeps it within the area of the original item.
@@ -151,7 +150,6 @@ IndicatorTest {
151 indicatorsBar.expanded = true;
150 indicatorsBar.expanded = true;
152 wait_for_expansion_to_settle();
151 wait_for_expansion_to_settle();
155 // mappedPosition contained within mappedRect
153 // mappedPosition contained within mappedRect
156 tryCompareFunction(function() {
154 tryCompareFunction(function() {
157 var mappedRect = indicatorsBar.mapFromItem(dataItem, 0, 0, dataItem.width, dataItem.height);
155 var mappedRect = indicatorsBar.mapFromItem(dataItem, 0, 0, dataItem.width, dataItem.height);
@@ -203,8 +201,8 @@ IndicatorTest {
204 function test_visibleIndicators_data() {
202 function test_visibleIndicators_data() {
206− { visible: [true, false, true, false, true, true] },
204+ { visible: [true, false, true, false, true, true, false, true] },
207− { visible: [false, false, false, false, false, false] }
205+ { visible: [false, false, false, false, false, false, true, false] }