summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_core
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2017-08-21 14:44:34 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2017-08-23 10:43:14 +0000
commitd22e6d09f1607e694694d2ae5b2f447605a8782e (patch)
treeab2348ddc950085b8511d6c3a0900d555bb5cf11 /tests/auto/declarative_core
parentf61a0512cc56c0e86870a66fcca43e0a16e4e8e9 (diff)
downloadqtlocation-d22e6d09f1607e694694d2ae5b2f447605a8782e.tar.gz
Fix PluginParameter not working with script as property values
This patch introduces the undocumented QDeclarativeGeoServiceProviderParameter::initialized signal, to signal to the parent when a parameter becomes fully initialized, so that the parent QDeclarativeGeoServiceProvider can attach. Task-number: QTBUG-62075 Change-Id: Ie3615abf31d19f39587c5e54b202f8f2c4a711cc Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'tests/auto/declarative_core')
-rw-r--r--tests/auto/declarative_core/tst_plugin.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/declarative_core/tst_plugin.qml b/tests/auto/declarative_core/tst_plugin.qml
index 3dabba07..7b880f1d 100644
--- a/tests/auto/declarative_core/tst_plugin.qml
+++ b/tests/auto/declarative_core/tst_plugin.qml
@@ -99,9 +99,14 @@ Item {
verify(invalidPlugin.supportsRouting())
verify(invalidPlugin.supportsPlaces())
- invalidPlugin.name = ''
+ invalidPlugin.name = 'here'
compare(invalidAttachedSpy.count, 2)
+ verify(invalidPlugin.supportsMapping(Plugin.OnlineMappingFeature))
+ verify(invalidPlugin.supportsGeocoding(Plugin.OnlineGeocodingFeature))
+ verify(invalidPlugin.supportsRouting(Plugin.OnlineRoutingFeature))
+ invalidPlugin.name = ''
+ compare(invalidAttachedSpy.count, 2)
verify(!invalidPlugin.supportsMapping())
verify(!invalidPlugin.supportsGeocoding())
verify(!invalidPlugin.supportsRouting())