diff options
author | Kai Koehne <kai.koehne@nokia.com> | 2011-11-22 15:32:46 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-29 15:30:20 +0100 |
commit | fa59f1e675ca39990e56380e659e9e6490370c83 (patch) | |
tree | e68073a972ab9227d169e7c852527016f28ee86e /tests/auto/declarative/debugger | |
parent | 409aecbe1e30aa1319ea72bf830c405827e13d21 (diff) |
Debugger: Disable breakpoint relocation in JS
Because we pass scripts lazily to v8, breakpoints can be relocated to
lines unexpected to the user. Therefore disable breakpoint relocation
alltogether for the time being.
Change-Id: I34b4b9b1267270014c3a17cb6cad1e3c7eded074
Reviewed-by: Aurindam Jana <aurindam.jana@nokia.com>
Diffstat (limited to 'tests/auto/declarative/debugger')
-rw-r--r-- | tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp index 1c946178ff..0646abbcd3 100644 --- a/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp +++ b/tests/auto/declarative/debugger/qdeclarativedebugjs/tst_qdeclarativedebugjs.cpp @@ -1062,7 +1062,7 @@ void tst_QDeclarativeDebugJS::gc() //void gc() QVERIFY(init()); - client->setBreakpoint(QLatin1String(SCRIPT), QLatin1String(TEST_JSFILE), 2, -1, true); + client->setBreakpoint(QLatin1String(SCRIPT), QLatin1String(TEST_JSFILE), 43, -1, true); client->startDebugging(); QVERIFY(QDeclarativeDebugTest::waitForSignal(client, SIGNAL(stopped()))); @@ -1172,6 +1172,7 @@ void tst_QDeclarativeDebugJS::setBreakpointInScriptOnComment() client->setBreakpoint(QLatin1String(SCRIPT), QLatin1String(TEST_JSFILE), sourceLine, -1, true); client->startDebugging(); + QEXPECT_FAIL("", "Relocation of breakpoints is disabled right now", Abort); QVERIFY(QDeclarativeDebugTest::waitForSignal(client, SIGNAL(stopped()))); QString jsonString(client->response); @@ -1193,6 +1194,7 @@ void tst_QDeclarativeDebugJS::setBreakpointInScriptOnEmptyLine() client->setBreakpoint(QLatin1String(SCRIPT), QLatin1String(TEST_JSFILE), sourceLine, -1, true); client->startDebugging(); + QEXPECT_FAIL("", "Relocation of breakpoints is disabled right now", Abort); QVERIFY(QDeclarativeDebugTest::waitForSignal(client, SIGNAL(stopped()))); QString jsonString(client->response); @@ -1271,8 +1273,8 @@ void tst_QDeclarativeDebugJS::changeBreakpoint() { //void changeBreakpoint(int breakpoint, bool enabled = false, QString condition = QString(), int ignoreCount = -1) - int sourceLine1 = 77; - int sourceLine2 = 78; + int sourceLine1 = 78; + int sourceLine2 = 79; QVERIFY(init()); client->setBreakpoint(QLatin1String(SCRIPT), QLatin1String(TEST_QMLFILE), sourceLine1, -1, true); @@ -1385,8 +1387,8 @@ void tst_QDeclarativeDebugJS::clearBreakpoint() { //void clearBreakpoint(int breakpoint); - int sourceLine1 = 77; - int sourceLine2 = 78; + int sourceLine1 = 78; + int sourceLine2 = 79; QVERIFY(init()); client->setBreakpoint(QLatin1String(SCRIPT), QLatin1String(TEST_QMLFILE), sourceLine1, -1, true); |