on xenial help sign in
Added missing formatting
a8cb70bNick Dedekind
tests/qmltests/Panel/tst_Indicators.qml+10−10
@@ -103,9 +103,9 @@ Item {
103 // tests changing the lateral position of the revealer activates the correct indicator items.
103 // tests changing the lateral position of the revealer activates the correct indicator items.
104
104
105 var indicatorRow = findChild(indicators, "indicatorRow")
105 var indicatorRow = findChild(indicators, "indicatorRow")
106− verify(indicatorRow !== null)
106+ verify(indicatorRow !== null);
107 var indicatorRowItems = findChild(indicatorRow, "indicatorRowItems");
107 var indicatorRowItems = findChild(indicatorRow, "indicatorRowItems");
108− verify(indicatorRowItems !== null)
108+ verify(indicatorRowItems !== null);
109
109
110 for (var i = 0; i < indicatorRowItems.count; i++) {
110 for (var i = 0; i < indicatorRowItems.count; i++) {
111 var indicatorItem = findChild(indicatorRowItems, "item" + i);
111 var indicatorItem = findChild(indicatorRowItems, "item" + i);
@@ -114,12 +114,12 @@ Item {
114 continue;
114 continue;
115
115
116 var indicatorPosition = indicators.mapFromItem(indicatorItem,
116 var indicatorPosition = indicators.mapFromItem(indicatorItem,
117− indicatorItem.width/2, indicatorItem.height/2)
117+ indicatorItem.width/2, indicatorItem.height/2);
118
118
119 touchFlick(indicators,
119 touchFlick(indicators,
120 indicatorPosition.x, indicatorPosition.y,
120 indicatorPosition.x, indicatorPosition.y,
121 indicatorPosition.x, indicators.openedHeight * 0.4,
121 indicatorPosition.x, indicators.openedHeight * 0.4,
122− true /* beginTouch */, false /* endTouch */)
122+ true /* beginTouch */, false /* endTouch */);
123
123
124 compare(indicatorRow.currentItem, indicatorItem,
124 compare(indicatorRow.currentItem, indicatorItem,
125 "Incorrect item activated at position " + i);
125 "Incorrect item activated at position " + i);
@@ -127,10 +127,10 @@ Item {
127 touchFlick(indicators,
127 touchFlick(indicators,
128 indicatorPosition.x, indicators.openedHeight * 0.4,
128 indicatorPosition.x, indicators.openedHeight * 0.4,
129 indicatorPosition.x, indicatorPosition.y,
129 indicatorPosition.x, indicatorPosition.y,
130− false /* beginTouch */, true /* endTouch */)
130+ false /* beginTouch */, true /* endTouch */);
131
131
132 // wait until fully closed
132 // wait until fully closed
133− tryCompare(indicators, "height", indicators.panelHeight)
133+ tryCompare(indicators, "height", indicators.panelHeight);
134 }
134 }
135 }
135 }
136
136
@@ -143,20 +143,20 @@ Item {
143 function test_progress_changes_state_to_not_initial() {
143 function test_progress_changes_state_to_not_initial() {
144 indicators.height = indicators.openedHeight / 2
144 indicators.height = indicators.openedHeight / 2
145 compare(indicators.state!="initial", true,
145 compare(indicators.state!="initial", true,
146− "Indicators should not be in initial state when partially opened.")
146+ "Indicators should not be in initial state when partially opened.");
147 }
147 }
148
148
149 function test_progress_changes_state_to_locked() {
149 function test_progress_changes_state_to_locked() {
150 indicators.height = indicators.openedHeight - indicators.panelHeight
150 indicators.height = indicators.openedHeight - indicators.panelHeight
151− compare(indicators.state, "locked", "Indicators should be locked when fully opened.")
151+ compare(indicators.state, "locked", "Indicators should be locked when fully opened.");
152 }
152 }
153
153
154 function test_partially_open() {
154 function test_partially_open() {
155 indicators.height = indicators.openedHeight / 2
155 indicators.height = indicators.openedHeight / 2
156 compare(indicators.partiallyOpened, true,
156 compare(indicators.partiallyOpened, true,
157− "Indicator should show as partially opened when height is half of openedHeight")
157+ "Indicator should show as partially opened when height is half of openedHeight");
158 compare(indicators.fullyOpened, false,
158 compare(indicators.fullyOpened, false,
159− "Indicator should not show as fully opened when height is half of openedHeight")
159+ "Indicator should not show as fully opened when height is half of openedHeight");
160 }
160 }
161
161
162 function test_fully_open() {
162 function test_fully_open() {