on xenial help sign in
Workaround test
commitbcc82db8f6efecec027e40783618733d182fc8b3 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateSat 16 Aug 2014, 10:16 (12 years ago) parent7e52a60
1 file changed+2−1
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+2−1
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+2−1
@@ -90,8 +90,9 @@ Rectangle {
9090 control.selectAll();
9191 control.cut();
9292 control.insert(0, "not valid");
93+ var spyCount = spy.count; // because SignalSpy is stupid and doesn't reset on clear()
9394 control.accepted();
94− compare(spy.count, 0);
95+ compare(spy.count, spyCount);
9596 compare(control.displayText, "");
9697 }
9798 }