aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeconsole/data/consoleLog.qml
blob: 2692abb82e75c5f1aed33fe3f1c2c928665806f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import QtQuick 2.0

QtObject {
    id: root
    Component.onCompleted: {
        var a = [1, 2]
        var b = {a: "hello", d: 1 }
        var c
        var d = 12
        var e = function() { return 5;}
        var f = true
        var g = {toString: function() { throw new Error('toString'); }}


        console.log("completed", "ok")
        console.log("completed ok")
        console.debug("completed ok")
        console.warn("completed ok")
        console.error("completed ok")
        console.log(a)
        console.log(b)
        console.log(c)
        console.log(d)
        console.log(e)
        console.log(f)
        console.log(root)
        console.log(g)
        console.log(1, "pong!", new Object)
        console.log(1, ["ping","pong"], new Object, 2)
        console.log(exception) //This has to be at the end
    }
}