aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/misctypetest.qml
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@digia.com>2013-11-12 09:50:29 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-11-15 13:07:52 +0100
commit0dc17ae4d8b01582d9a9d2fa89f0d72cd022f5cf (patch)
treec427b62e6f20f17b71f1f0de0d59cd5fc8b6d5ae /tests/auto/qml/qqmlecmascript/data/misctypetest.qml
parentd7a876d0025290e506622af85403fa3c5fed795b (diff)
Fix === operator for value types
Fix === comparison for urls and other QML value types. Task-number: QTBUG-33546 Change-Id: I4a7066e6bbc7de7c599fe2c7b2fdfb75e0ff5196 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'tests/auto/qml/qqmlecmascript/data/misctypetest.qml')
-rw-r--r--tests/auto/qml/qqmlecmascript/data/misctypetest.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/auto/qml/qqmlecmascript/data/misctypetest.qml b/tests/auto/qml/qqmlecmascript/data/misctypetest.qml
new file mode 100644
index 0000000000..60ff53a2b4
--- /dev/null
+++ b/tests/auto/qml/qqmlecmascript/data/misctypetest.qml
@@ -0,0 +1,28 @@
+import QtQuick 2.0
+import Qt.test 1.0
+
+Item {
+ MiscTypeTest {
+ id: mtt
+ }
+
+ function test_invalid_url_equal()
+ {
+ return mtt.invalidUrl() == mtt.invalidUrl();
+ }
+
+ function test_invalid_url_refequal()
+ {
+ return mtt.invalidUrl() === mtt.invalidUrl();
+ }
+
+ function test_valid_url_equal()
+ {
+ return mtt.validUrl() == mtt.validUrl();
+ }
+
+ function test_valid_url_refequal()
+ {
+ return mtt.validUrl() === mtt.validUrl();
+ }
+}