~loic.molinari/+junk/qtdeclarative-shadereffectsource-changes

« back to all changes in this revision

Viewing changes to tests/auto/qml/v4/data/mathCeil.qml

  • Committer: Loïc Molinari
  • Date: 2012-04-21 17:59:51 UTC
  • Revision ID: loic.molinari@canonical.com-20120421175951-bqx68caaf5zrp76l
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
Item {
 
4
    property real test1: Math.ceil(i1.p1)
 
5
    property real test2: Math.ceil(i1.p2)
 
6
 
 
7
    property real subtest3: Math.ceil()
 
8
    property real subtest4: Math.ceil(i1.p4)
 
9
    property bool test3: isNaN(subtest3)
 
10
    property bool test4: isNaN(subtest4)
 
11
 
 
12
    property real subtest5: Math.ceil(i1.p5)
 
13
    property bool test5: isNaN(subtest5)
 
14
    property real test6: Math.ceil(i1.p6)
 
15
 
 
16
    property real subtest7: Math.ceil(i1.p7)
 
17
    property real subtest8: Math.ceil(i1.p8)
 
18
    property bool test7: subtest7 === Number.NEGATIVE_INFINITY
 
19
    property bool test8: subtest8 === Number.POSITIVE_INFINITY
 
20
 
 
21
    property real test9: Math.ceil(i1.p9)
 
22
    property real subtest10: Math.ceil(i1.p10)
 
23
    property bool test10: subtest10 === 0 && (1/subtest10) === -Infinity
 
24
 
 
25
    QtObject {
 
26
        id: i1
 
27
        property real p1: -3.7
 
28
        property real p2: 4.4
 
29
        property real p4: Number.NaN
 
30
        property string p5: "hello world"
 
31
        property string p6: "82.6"
 
32
        property real p7: Number.NEGATIVE_INFINITY
 
33
        property real p8: Number.POSITIVE_INFINITY
 
34
        property real p9: 0
 
35
        property real p10: -0
 
36
    }
 
37
 }