提交 82d951bb 编写于 作者: I isidor

Fix failing Debug tests

fixes #76325
上级 75795624
......@@ -133,7 +133,7 @@ suite('Debug - Model', () => {
assert.equal(model.getSessions(true).length, 1);
});
test.skip('threads multiple wtih allThreadsStopped', () => {
test('threads multiple wtih allThreadsStopped', () => {
const threadId1 = 1;
const threadName1 = 'firstThread';
const threadId2 = 2;
......@@ -154,20 +154,15 @@ suite('Debug - Model', () => {
}]
});
model.rawUpdate({
sessionId: session.getId(),
threads: [{
id: threadId2,
name: threadName2
}]
});
// Stopped event with all threads stopped
model.rawUpdate({
sessionId: session.getId(),
threads: [{
id: threadId1,
name: threadName1
}, {
id: threadId2,
name: threadName2
}],
stoppedDetails: {
reason: stoppedReason,
......@@ -221,7 +216,7 @@ suite('Debug - Model', () => {
assert.equal(session.getAllThreads().length, 0);
});
test.skip('threads mutltiple without allThreadsStopped', () => {
test('threads mutltiple without allThreadsStopped', () => {
const sessionStub = sinon.spy(rawSession, 'stackTrace');
const stoppedThreadId = 1;
......@@ -243,20 +238,15 @@ suite('Debug - Model', () => {
}]
});
model.rawUpdate({
sessionId: session.getId(),
threads: [{
id: runningThreadId,
name: runningThreadName
}]
});
// Stopped event with only one thread stopped
model.rawUpdate({
sessionId: session.getId(),
threads: [{
id: 1,
name: stoppedThreadName
}, {
id: runningThreadId,
name: runningThreadName
}],
stoppedDetails: {
reason: stoppedReason,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册