on xenial help sign in
Properly fix tests
commit6ba7b7b2d0db846daba823e01cea97506997d509 authorAndrea Cimitan <andrea.cimitan@gmail.com> dateSat 16 Aug 2014, 10:19 (12 years ago) parentbcc82db
1 file changed+2−3
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+2−3
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+2−3
@@ -51,9 +51,9 @@ Rectangle {
5151 property real newNumber: 11.7
5252
5353 function init() {
54− spy.clear();
5554 control.focus = false;
5655 control.text = settingData.value;
56+ spy.clear();
5757 }
5858
5959 function test_updated_on_unfocus() {
@@ -90,9 +90,8 @@ 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()
9493 control.accepted();
95− compare(spy.count, spyCount);
94+ compare(spy.count, 0);
9695 compare(control.displayText, "");
9796 }
9897 }