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

Fix failing Debug tests

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