diff options
Diffstat (limited to 'tests/auto/declarative_core/tst_placesearchmodel.qml')
-rw-r--r-- | tests/auto/declarative_core/tst_placesearchmodel.qml | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/tests/auto/declarative_core/tst_placesearchmodel.qml b/tests/auto/declarative_core/tst_placesearchmodel.qml index 8ec3c0a2..aef710d9 100644 --- a/tests/auto/declarative_core/tst_placesearchmodel.qml +++ b/tests/auto/declarative_core/tst_placesearchmodel.qml @@ -66,17 +66,8 @@ TestCase { name: "foo" } - Plugin { - id: uninitializedPlugin - } - - GeoCircle { - id: testSearchArea - center { - latitude: 10 - longitude: 20 - } - radius: 5000 + Plugin { + id: uninitializedPlugin } Category { @@ -104,9 +95,11 @@ TestCase { } function test_setAndGet_data() { + var testSearchArea = QtLocation.circle(QtLocation.coordinate(10, 20), 5000); + return [ { tag: "plugin", property: "plugin", signal: "pluginChanged", value: testPlugin }, - { tag: "searchArea", property: "searchArea", signal: "searchAreaChanged", value: testSearchArea }, + { tag: "searchArea", property: "searchArea", signal: "searchAreaChanged", value: testSearchArea, reset: QtLocation.shape() }, { tag: "offset", property: "offset", signal: "offsetChanged", value: 10, reset: 0 }, { tag: "limit", property: "limit", signal: "limitChanged", value: 10, reset: -1 }, |