aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2017-06-15 08:57:58 +0200
committerLiang Qi <liang.qi@qt.io>2017-06-15 09:10:12 +0200
commit9f3aefb086c5f9d6b9dd192689bdd473da07186a (patch)
tree93349812f4a46305edf5e27f7e737d952e0d9a3a /src/imports
parenta021bd87755ccfbe49e132f942ded935c9719b00 (diff)
parentd2bb2e202427ebae545a408f065c893f3d837061 (diff)
Merge remote-tracking branch 'origin/5.9' into dev
Conflicts: src/qml/compiler/qv4codegen.cpp Change-Id: I3c41b9fc9ba7d41741e4dd400402ae80dd7726d9
Diffstat (limited to 'src/imports')
-rw-r--r--src/imports/testlib/TestCase.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/imports/testlib/TestCase.qml b/src/imports/testlib/TestCase.qml
index dbed896c59..7ff51bb6d6 100644
--- a/src/imports/testlib/TestCase.qml
+++ b/src/imports/testlib/TestCase.qml
@@ -757,6 +757,10 @@ Item {
bProperties.push(i); // collect exp's properties
}
+ if (aProperties.length == 0 && bProperties.length == 0) { // at least a special case for QUrl
+ return eq && (JSON.stringify(act) == JSON.stringify(exp));
+ }
+
// Ensures identical properties name
return eq && qtest_compareInternal(aProperties.sort(), bProperties.sort());