aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/v4/data/mathMax.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/qml/v4/data/mathMax.qml')
-rw-r--r--tests/auto/qml/v4/data/mathMax.qml45
1 files changed, 0 insertions, 45 deletions
diff --git a/tests/auto/qml/v4/data/mathMax.qml b/tests/auto/qml/v4/data/mathMax.qml
deleted file mode 100644
index cd8a88a3e7..0000000000
--- a/tests/auto/qml/v4/data/mathMax.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-import QtQuick 2.0
-
-Item {
- property real test1: Math.max(i1.p1, i1.p2)
- property real test2: Math.max(i1.p2, i1.p3)
-
- property real subtest3: Math.max()
- property real subtest4: Math.max(i1.p4)
- property bool test3: subtest3 === -Infinity
- property bool test4: isNaN(subtest4)
-
- property real subtest5: Math.max(i1.p5, i1.p1)
- property bool test5: isNaN(subtest5)
- property real test6: Math.max(i1.p6, i1.p3)
-
- property real test7: Math.max(i1.p7, i1.p2)
- property real subtest8: Math.max(i1.p8, i1.p2)
- property bool test8: subtest8 === Number.POSITIVE_INFINITY
-
- property real subtest9: Math.max(i1.p10, i1.p9)
- property bool test9: subtest9 === 0 && (1/subtest9) === Infinity
-
- // Reverse the inputs to Math.max
- property real subtest10: Math.max(i1.p9, i1.p10)
- property bool test10: subtest10 === 0 && (1/subtest10) === Infinity
-
- property real test11: Math.max(i1.p11, i1.p1)
- property real test12: Math.max(i1.p11, i1.p2)
- property real test13: Math.max(i1.p1, i1.p2, i1.p3)
-
- QtObject {
- id: i1
- property real p1: -3.7
- property real p2: 4.4
- property int p3: 7
- property real p4: Number.NaN
- property string p5: "hello world"
- property string p6: "82.6"
- property real p7: Number.NEGATIVE_INFINITY
- property real p8: Number.POSITIVE_INFINITY
- property real p9: 0
- property real p10: -0
- property var p11: null
- }
-}