зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1034726 - AsyncShutdown payload now represents stacks as an array on a CLOSED TREE. r=yoric
This commit is contained in:
Родитель
8168b217e1
Коммит
370246da5b
|
@ -453,7 +453,7 @@ function Barrier(name) {
|
|||
frames.push(frame.filename + ":" + frame.name + ":" + frame.lineNumber);
|
||||
frame = frame.caller;
|
||||
}
|
||||
let stack = Task.Debugging.generateReadableStack(frames.join("\n"));
|
||||
let stack = Task.Debugging.generateReadableStack(frames.join("\n")).split("\n");
|
||||
|
||||
let set = this._conditions.get(condition);
|
||||
if (!set) {
|
||||
|
|
|
@ -293,8 +293,8 @@ add_task(function* test_state() {
|
|||
Assert.equal(state.filename, filename);
|
||||
Assert.equal(state.lineNumber, lineNumber + 1);
|
||||
Assert.equal(state.name, BLOCKER_NAME);
|
||||
Assert.ok(state.stack.contains("test_state"), "The stack contains the caller function's name");
|
||||
Assert.ok(state.stack.contains(filename), "The stack contains the calling file's name");
|
||||
Assert.ok(state.stack.some(x => x.contains("test_state")), "The stack contains the caller function's name");
|
||||
Assert.ok(state.stack.some(x => x.contains(filename)), "The stack contains the calling file's name");
|
||||
|
||||
deferred.resolve();
|
||||
yield promiseDone;
|
||||
|
|
Загрузка…
Ссылка в новой задаче