qMetaTypeId<QList<int> >();
QByteArray v8args = qgetenv("V8ARGS");
- if (!v8args.isEmpty())
- v8::V8::SetFlagsFromString(v8args.constData(), v8args.length());
+ // change default v8 behaviour to not relocate breakpoints across lines
+ if (!v8args.contains("breakpoint_relocation"))
+ v8args.append(" --nobreakpoint_relocation");
+ v8::V8::SetFlagsFromString(v8args.constData(), v8args.length());
v8::HandleScope handle_scope;
qPersistentRegister(m_context);
//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())));
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);
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);
{
//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);
{
//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);