on xenial help sign in
Added missing formatting
commita8cb70b9ea0663857259f8f5eecdc0d3a5b49ff4 authorNick Dedekind <nicholas.dedekind@gmail.com> dateThu 16 Jan 2014, 11:06 (13 years ago) parent35393db
1 file changed+10−10
tests/qmltests/Panel/tst_Indicators.qml+10−10
tests/qmltests/Panel/tst_Indicators.qml+10−10
@@ -103,9 +103,9 @@ Item {
103103 // tests changing the lateral position of the revealer activates the correct indicator items.
104104
105105 var indicatorRow = findChild(indicators, "indicatorRow")
106− verify(indicatorRow !== null)
106+ verify(indicatorRow !== null);
107107 var indicatorRowItems = findChild(indicatorRow, "indicatorRowItems");
108− verify(indicatorRowItems !== null)
108+ verify(indicatorRowItems !== null);
109109
110110 for (var i = 0; i < indicatorRowItems.count; i++) {
111111 var indicatorItem = findChild(indicatorRowItems, "item" + i);
@@ -114,12 +114,12 @@ Item {
114114 continue;
115115
116116 var indicatorPosition = indicators.mapFromItem(indicatorItem,
117− indicatorItem.width/2, indicatorItem.height/2)
117+ indicatorItem.width/2, indicatorItem.height/2);
118118
119119 touchFlick(indicators,
120120 indicatorPosition.x, indicatorPosition.y,
121121 indicatorPosition.x, indicators.openedHeight * 0.4,
122− true /* beginTouch */, false /* endTouch */)
122+ true /* beginTouch */, false /* endTouch */);
123123
124124 compare(indicatorRow.currentItem, indicatorItem,
125125 "Incorrect item activated at position " + i);
@@ -127,10 +127,10 @@ Item {
127127 touchFlick(indicators,
128128 indicatorPosition.x, indicators.openedHeight * 0.4,
129129 indicatorPosition.x, indicatorPosition.y,
130− false /* beginTouch */, true /* endTouch */)
130+ false /* beginTouch */, true /* endTouch */);
131131
132132 // wait until fully closed
133− tryCompare(indicators, "height", indicators.panelHeight)
133+ tryCompare(indicators, "height", indicators.panelHeight);
134134 }
135135 }
136136
@@ -143,20 +143,20 @@ Item {
143143 function test_progress_changes_state_to_not_initial() {
144144 indicators.height = indicators.openedHeight / 2
145145 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.");
147147 }
148148
149149 function test_progress_changes_state_to_locked() {
150150 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.");
152152 }
153153
154154 function test_partially_open() {
155155 indicators.height = indicators.openedHeight / 2
156156 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");
158158 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");
160160 }
161161
162162 function test_fully_open() {