~saviq/ubuntu/saucy/qtdeclarative-opensource-src/add-qtquick-delegate-range

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Timo Jyrinki
  • Date: 2013-02-05 14:17:19 UTC
  • Revision ID: package-import@ubuntu.com-20130205141719-qqeyml8wslpyez52
Tags: upstream-5.0.1
ImportĀ upstreamĀ versionĀ 5.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 2.0
 
2
 
 
3
QtObject {
 
4
    property string string1: "aaba"
 
5
    property string string2: "aa"
 
6
    property string string3: "aaab"
 
7
    property string string4: "c"
 
8
    property string string5: string2 + string4
 
9
 
 
10
    property bool test1: string1 > string2
 
11
    property bool test2: string2 < string1
 
12
    property bool test3: string1 > string3
 
13
    property bool test4: string3 < string1
 
14
    property bool test5: string1 < string4
 
15
    property bool test6: string4 > string1
 
16
    property bool test7: string1 < string5
 
17
    property bool test8: string5 > string1
 
18
 
 
19
    property bool test9: string1 == "aaba"
 
20
    property bool test10: string1 != "baa"
 
21
    property bool test11: string1 === "aaba"
 
22
    property bool test12: string1 !== "baa"
 
23
    property bool test13: string4 == "c"
 
24
    property bool test14: string4 != "d"
 
25
    property bool test15: string4 === "c"
 
26
    property bool test16: string4 !== "d"
 
27
    property bool test17: string5 === "aac"
 
28
    property bool test18: string5 !== "aad"
 
29
 
 
30
    property bool test19: string1 >= string2
 
31
    property bool test20: string2 <= string1
 
32
    property bool test21: string1 >= string3
 
33
    property bool test22: string3 <= string1
 
34
    property bool test23: string1 <= string4
 
35
    property bool test24: string4 >= string1
 
36
    property bool test25: string4 <= "c"
 
37
    property bool test26: string4 >= "c"
 
38
    property bool test27: string5 <= "aac"
 
39
    property bool test28: string5 >= "aac"
 
40
}
 
41