on xenial help sign in
Properly fix tests
6ba7b7bAndrea Cimitan
tests/qmltests/Dash/ScopeSettings/tst_ScopeSettingNumber.qml+2−3
@@ -51,9 +51,9 @@ Rectangle {
51 property real newNumber: 11.7
51 property real newNumber: 11.7
52
52
53 function init() {
53 function init() {
54− spy.clear();
55 control.focus = false;
54 control.focus = false;
56 control.text = settingData.value;
55 control.text = settingData.value;
56+ spy.clear();
57 }
57 }
58
58
59 function test_updated_on_unfocus() {
59 function test_updated_on_unfocus() {
@@ -90,9 +90,8 @@ Rectangle {
90 control.selectAll();
90 control.selectAll();
91 control.cut();
91 control.cut();
92 control.insert(0, "not valid");
92 control.insert(0, "not valid");
93− var spyCount = spy.count; // because SignalSpy is stupid and doesn't reset on clear()
94 control.accepted();
93 control.accepted();
95− compare(spy.count, spyCount);
94+ compare(spy.count, 0);
96 compare(control.displayText, "");
95 compare(control.displayText, "");
97 }
96 }
98 }
97 }