aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/debugger/qqmldebugjs
diff options
context:
space:
mode:
authorAurindam Jana <aurindam.jana@nokia.com>2012-04-17 11:00:18 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-17 11:10:04 +0200
commit812997036a44733c3407d925f42d98c4ff0e6c6f (patch)
tree45e6b027c82468e7c82db5203bb9b164efb7a0c0 /tests/auto/qml/debugger/qqmldebugjs
parent18d6bf40169a5765ee35f00131d470fd64125e22 (diff)
QV8DebugService: v8::AfterCompile Events
Do not send v8::AfterCompile events. This speeds up the debugger. Change-Id: I84f5d90e24878af42d514e5d26c9e051502605f6 Reviewed-by: Kai Koehne <kai.koehne@nokia.com>
Diffstat (limited to 'tests/auto/qml/debugger/qqmldebugjs')
-rw-r--r--tests/auto/qml/debugger/qqmldebugjs/data/test.qml6
-rw-r--r--tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp33
2 files changed, 9 insertions, 30 deletions
diff --git a/tests/auto/qml/debugger/qqmldebugjs/data/test.qml b/tests/auto/qml/debugger/qqmldebugjs/data/test.qml
index 200f26b1c3..e6c6faa912 100644
--- a/tests/auto/qml/debugger/qqmldebugjs/data/test.qml
+++ b/tests/auto/qml/debugger/qqmldebugjs/data/test.qml
@@ -50,5 +50,11 @@ Item {
var c
var d = 12
}
+ function foo() {
+ var a = [1, 2]
+ var b = {a: "hello", d: 1 }
+ var c
+ var d = 12
+ }
}
diff --git a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
index 8293ec6cda..b93be16e0e 100644
--- a/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
+++ b/tests/auto/qml/debugger/qqmldebugjs/tst_qqmldebugjs.cpp
@@ -107,7 +107,6 @@ const char *GARBAGECOLLECTOR = "gc";
const char *CONNECT = "connect";
const char *INTERRUPT = "interrupt";
-const char *BREAKAFTERCOMPILE = "breakaftercompile";
const char *REQUEST = "request";
const char *IN = "in";
@@ -173,7 +172,6 @@ private slots:
void connect();
void interrupt();
- void breakAfterCompile();
void getVersion();
void getVersionWhenAttaching();
@@ -270,7 +268,6 @@ public:
void connect();
void interrupt();
- void breakAfterCompile(bool enabled);
void continueDebugging(StepAction stepAction, int stepCount = 1);
void evaluate(QString expr, bool global = false, bool disableBreak = false, int frame = -1, const QVariantMap &addContext = QVariantMap());
@@ -301,7 +298,6 @@ signals:
void enabled();
void connected();
void interruptRequested();
- void breakAfterCompileRequested();
void result();
void stopped();
void scriptsResult();
@@ -334,14 +330,6 @@ void QJSDebugClient::interrupt()
sendMessage(packMessage(INTERRUPT));
}
-void QJSDebugClient::breakAfterCompile(bool enabled)
-{
- QByteArray request;
- QDataStream rs(&request, QIODevice::WriteOnly);
- rs << enabled;
- sendMessage(packMessage(BREAKAFTERCOMPILE, request));
-}
-
void QJSDebugClient::continueDebugging(StepAction action, int count)
{
// { "seq" : <number>,
@@ -957,9 +945,6 @@ void QJSDebugClient::messageReceived(const QByteArray &data)
emit stopped();
}
- } else if (type == BREAKAFTERCOMPILE) {
- emit breakAfterCompileRequested();
-
}
}
}
@@ -1074,18 +1059,6 @@ void tst_QQmlDebugJS::interrupt()
QVERIFY(QQmlDebugTest::waitForSignal(client, SIGNAL(interruptRequested())));
}
-void tst_QQmlDebugJS::breakAfterCompile()
-{
- //void breakAfterCompile(bool enabled)
-
- QVERIFY(init());
- client->breakAfterCompile(true);
- client->connect();
-
- QVERIFY(QQmlDebugTest::waitForSignal(client, SIGNAL(breakAfterCompileRequested())));
- QVERIFY(QQmlDebugTest::waitForSignal(client, SIGNAL(stopped())));
-}
-
void tst_QQmlDebugJS::getVersion()
{
//void version()
@@ -1146,9 +1119,9 @@ void tst_QQmlDebugJS::listBreakpoints()
{
//void listBreakpoints()
- int sourceLine1 = 47;
- int sourceLine2 = 48;
- int sourceLine3 = 49;
+ int sourceLine1 = 53;
+ int sourceLine2 = 54;
+ int sourceLine3 = 55;
QVERIFY(init());
client->connect();