@@ -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 }