QV8DebugService: Simplify the service code
[profile/ivi/qtdeclarative.git] / tests / auto / declarative / debugger / qdeclarativedebugjs / data / test.qml
index 3bfeb10..ee1751e 100644 (file)
 ****************************************************************************/
 
 import QtQuick 2.0
-import "test.js" as Script
 
 //DO NOT CHANGE
 
-Rectangle {
-    id: root
-    width: 10; height: 10;
-    Component.onCompleted: { Script.printMessage("onCompleted"); doSomething(); }
-
-    property int result: 0
-    property int someValue: 10
-    property bool raiseException: false
-
-    function doSomething() {
-        var a = root.result;
-        var b = commonFunction();
-        var c = [1,2,3];
-        var d = Script.add(a,c[2]);
-        result += d;
-        doSomethingElse();
-    }
-
-    Timer {
-        id: timer;  interval: 1
-        onTriggered: {
-            doSomething();
-            Script.printMessage("onTriggered");
-        }
-    }
-
-    function commonFunction() {
-        console.log("commonFunction");
-        return 5;
-    }
-
-    function doSomethingElse() {
-        result = Script.add(result,8);
-        if (raiseException)
-            dummy();
+Item {
+    Component.onCompleted: {
+            var a = [1, 2]
+            var b = {a: "hello", d: 1 }
+            var c
+            var d = 12
     }
 }