@@ -36,11 +36,6 @@ Rectangle {
3636 widgetData: settingData
3737 }
3838
39− ScopeSettingList {
40− id: scopeSettingFresh
41− initialValue: 2
42− }
43−
4439 SignalSpy {
4540 id: spy
4641 target: scopeSetting
@@ -60,9 +55,11 @@ Rectangle {
6055 }
6156
6257 function test_initialValue() {
63− var controlFresh = findChild(scopeSettingFresh, "control");
64− scopeSettingFresh.widgetData = settingData;
65− tryCompare(controlFresh, "selectedIndex", 2);
58+ var newObject = Qt.createQmlObject('import "../../../../qml/Dash/ScopeSettings" \n\
59+ ScopeSettingList { initialValue: 2; }', root, "dynamicScopeSettingList");
60+ newObject.widgetData = settingData;
61+ var controlDynamic = findChild(newObject, "control");
62+ tryCompare(controlDynamic, "selectedIndex", 2);
6663 }
6764
6865 function test_updated_data() {