summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeecmascript/data
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-03-30 06:37:28 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-03-30 06:38:04 (GMT)
commitb9b305f6c7bc960101bfd883ca6e3df889483481 (patch)
tree2e7decae370a45b8c9123a2b48b47e3bb0ca232d /tests/auto/declarative/qdeclarativeecmascript/data
parent1190f901cbcc62ab50c66bf0a7c41bfba923da7f (diff)
downloadQt-b9b305f6c7bc960101bfd883ca6e3df889483481.zip
Qt-b9b305f6c7bc960101bfd883ca6e3df889483481.tar.gz
Qt-b9b305f6c7bc960101bfd883ca6e3df889483481.tar.bz2
Correctly construct boolean JSValue's
Task-number: QTBUG-9205
Diffstat (limited to 'tests/auto/declarative/qdeclarativeecmascript/data')
-rw-r--r--tests/auto/declarative/qdeclarativeecmascript/data/strictlyEquals.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/declarative/qdeclarativeecmascript/data/strictlyEquals.qml b/tests/auto/declarative/qdeclarativeecmascript/data/strictlyEquals.qml
new file mode 100644
index 0000000..b9e455d
--- /dev/null
+++ b/tests/auto/declarative/qdeclarativeecmascript/data/strictlyEquals.qml
@@ -0,0 +1,17 @@
+import Qt 4.6
+
+QtObject {
+ property bool test1: (a === true)
+ property bool test2: !(a === false)
+ property bool test3: (b === 11.2)
+ property bool test4: !(b === 9)
+ property bool test5: (c === 9)
+ property bool test6: !(c === 13)
+ property bool test7: (d === "Hello world")
+ property bool test8: !(d === "Hi")
+
+ property bool a: true
+ property real b: 11.2
+ property int c: 9
+ property string d: "Hello world"
+}