Bug 1148593 - Create async stack in callback objects. r=bz, r=fitzgen

This commit is contained in:
Tom Tromey
2015-07-24 07:01:00 -04:00
parent 13fa8dec3d
commit 5acaf7f263
23 changed files with 421 additions and 55 deletions

View File

@@ -29,8 +29,10 @@ function* ifTestingSupported() {
isnot($(".call-item-stack", callItem.target), null,
"There should be a stack container available now for the draw call.");
is($all(".call-item-stack-fn", callItem.target).length, 4,
"There should be 4 functions on the stack for the draw call.");
// We may have more than 4 functions, depending on whether async
// stacks are available.
ok($all(".call-item-stack-fn", callItem.target).length >= 4,
"There should be at least 4 functions on the stack for the draw call.");
let jumpedToSource = once(window, EVENTS.SOURCE_SHOWN_IN_JS_DEBUGGER);
EventUtils.sendMouseEvent({ type: "mousedown" }, $(".call-item-location", callItem.target));