aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmlprofilerservice/data
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@digia.com>2014-01-31 11:22:01 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-13 10:43:07 +0100
commit8609402bd7f4019f17bd4f314a4ee49b6cee267f (patch)
tree987e3d2f20fb7adea347098c3c4825272e3db106 /tests/auto/qml/debugger/qqmlprofilerservice/data
parenteb8a09145759f53786706c748afb813e1475feef (diff)
Test case for V4 profiler and its adapter
Change-Id: I64af195a16189cd1306ca80d13c0ef002fa31f59 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'tests/auto/qml/debugger/qqmlprofilerservice/data')
-rw-r--r--tests/auto/qml/debugger/qqmlprofilerservice/data/javascript.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/qml/debugger/qqmlprofilerservice/data/javascript.qml b/tests/auto/qml/debugger/qqmlprofilerservice/data/javascript.qml
new file mode 100644
index 0000000000..0555d49652
--- /dev/null
+++ b/tests/auto/qml/debugger/qqmlprofilerservice/data/javascript.qml
@@ -0,0 +1,17 @@
+import QtQuick 2.0
+
+Rectangle {
+ function something(i) {
+ if (i > 10) {
+ something(i / 4);
+ } else {
+ console.log("done");
+ }
+ }
+
+ width: 400
+ height: 400
+
+ onWidthChanged: something(width);
+ Component.onCompleted: width = 500;
+}