@@ -33,6 +33,11 @@ Rectangle {
33 ScopeSettingList {
33 ScopeSettingList {
34 id: scopeSetting
34 id: scopeSetting
35 width: parent.width
35 width: parent.width
36+ widgetData: settingData
40+ id: scopeSettingFresh
36 initialValue: 2
41 initialValue: 2
@@ -49,19 +54,15 @@ Rectangle {
50 property var control: findChild(scopeSetting, "control")
55 property var control: findChild(scopeSetting, "control")
52− function initTestCase() {
53− scopeSetting.widgetData = settingData;
56 function cleanup() {
57 function cleanup() {
57 control.selectedIndex = 0;
58 control.selectedIndex = 0;
58 spy.clear();
59 spy.clear();
61− function test_0initialValue() {
62+ function test_initialValue() {
62− // this works because is the first test to run
63+ var controlFresh = findChild(scopeSettingFresh, "control");
64+ scopeSettingFresh.widgetData = settingData;
63− tryCompare(control, "selectedIndex", 2);
65+ tryCompare(controlFresh, "selectedIndex", 2);
64− scopeSetting.initialValue = -1;
67 function test_updated_data() {
68 function test_updated_data() {