summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/visual
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:26:49 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2009-11-23 04:26:49 (GMT)
commit3c4df26a8d184b728395c8aad26b05626176b7b5 (patch)
tree8c5a16a3822f61fbeb0b2405009aeab480ffe98b /tests/auto/declarative/visual
parenta8549cfee8b6ec393dcea6314e6ac7d6c102dc07 (diff)
downloadQt-3c4df26a8d184b728395c8aad26b05626176b7b5.zip
Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.tar.gz
Qt-3c4df26a8d184b728395c8aad26b05626176b7b5.tar.bz2
Use console.log, not print.
Diffstat (limited to 'tests/auto/declarative/visual')
-rw-r--r--tests/auto/declarative/visual/focusscope/test.qml10
-rw-r--r--tests/auto/declarative/visual/focusscope/test3.qml4
-rw-r--r--tests/auto/declarative/visual/webview/zooming/zooming.qml4
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/auto/declarative/visual/focusscope/test.qml b/tests/auto/declarative/visual/focusscope/test.qml
index 77ffb84..dd6d726 100644
--- a/tests/auto/declarative/visual/focusscope/test.qml
+++ b/tests/auto/declarative/visual/focusscope/test.qml
@@ -5,13 +5,13 @@ Rectangle {
width: 800
height: 600
- Keys.onDigit9Pressed: print("Error - Root")
+ Keys.onDigit9Pressed: console.log("Error - Root")
FocusScope {
id: MyScope
focus: true
- Keys.onDigit9Pressed: print("Error - FocusScope")
+ Keys.onDigit9Pressed: console.log("Error - FocusScope")
Rectangle {
height: 120
@@ -27,7 +27,7 @@ Rectangle {
width: 100; height: 100; color: "green"
border.width: 5
border.color: wantsFocus?"blue":"black"
- Keys.onDigit9Pressed: print("Top Left");
+ Keys.onDigit9Pressed: console.log("Top Left");
KeyNavigation.right: Item2
focus: true
@@ -44,7 +44,7 @@ Rectangle {
border.width: 5
border.color: wantsFocus?"blue":"black"
KeyNavigation.left: Item1
- Keys.onDigit9Pressed: print("Top Right");
+ Keys.onDigit9Pressed: console.log("Top Right");
Rectangle {
width: 50; height: 50; anchors.centerIn: parent
@@ -64,7 +64,7 @@ Rectangle {
border.width: 5
border.color: wantsFocus?"blue":"black"
- Keys.onDigit9Pressed: print("Bottom Left");
+ Keys.onDigit9Pressed: console.log("Bottom Left");
KeyNavigation.up: MyScope
Rectangle {
diff --git a/tests/auto/declarative/visual/focusscope/test3.qml b/tests/auto/declarative/visual/focusscope/test3.qml
index b5feeb5..4be9dc7 100644
--- a/tests/auto/declarative/visual/focusscope/test3.qml
+++ b/tests/auto/declarative/visual/focusscope/test3.qml
@@ -23,10 +23,10 @@ Rectangle {
FocusScope {
id: Root
width: 50; height: 50;
- Keys.onDigit9Pressed: print("Error - " + name)
+ Keys.onDigit9Pressed: console.log("Error - " + name)
Rectangle {
focus: true
- Keys.onDigit9Pressed: print(name)
+ Keys.onDigit9Pressed: console.log(name)
width: 50; height: 50;
color: Root.ListView.isCurrentItem?"red":"green"
Text { text: name; anchors.centerIn: parent }
diff --git a/tests/auto/declarative/visual/webview/zooming/zooming.qml b/tests/auto/declarative/visual/webview/zooming/zooming.qml
index 3ac57f6..0ea9131 100644
--- a/tests/auto/declarative/visual/webview/zooming/zooming.qml
+++ b/tests/auto/declarative/visual/webview/zooming/zooming.qml
@@ -12,6 +12,6 @@ WebView {
url: "zooming.html"
preferredWidth: width
preferredHeight: height
- onDoubleClick: {print(clickX,clickY);heuristicZoom(clickX,clickY,2)}
- onZoomTo: {print(zoom);scale=zoom;x=width/2-centerX;y=height/2-centerY}
+ onDoubleClick: {console.log(clickX,clickY);heuristicZoom(clickX,clickY,2)}
+ onZoomTo: {console.log(zoom);scale=zoom;x=width/2-centerX;y=height/2-centerY}
}