зеркало из https://github.com/mozilla/gecko-dev.git
Tests for bug 744731, which luke accidentally fixed in rev b863ef9946b8. no_r=just-passing-tests.
--HG-- extra : rebase_source : e15699f34f19be134b952c6be826e6f0277b6d5c
This commit is contained in:
Родитель
6cb4e54466
Коммит
6b6111eca7
|
@ -0,0 +1,12 @@
|
|||
// Bug 744731 - findScripts() finds active debugger evalInGlobal scripts.
|
||||
|
||||
var g = newGlobal('new-compartment');
|
||||
var dbg = new Debugger;
|
||||
var gw = dbg.addDebuggee(g);
|
||||
var hits = 0;
|
||||
dbg.onDebuggerStatement = function (frame) {
|
||||
hits++;
|
||||
assertEq(dbg.findScripts().indexOf(dbg.getNewestFrame().script) !== -1, true);
|
||||
};
|
||||
gw.evalInGlobal("debugger;");
|
||||
assertEq(hits, 1);
|
|
@ -0,0 +1,15 @@
|
|||
// Bug 744731 - findScripts() finds active debugger frame.eval scripts.
|
||||
|
||||
var g = newGlobal('new-compartment');
|
||||
var dbg = new Debugger;
|
||||
var gw = dbg.addDebuggee(g);
|
||||
var hits = 0;
|
||||
dbg.onDebuggerStatement = function (frame) {
|
||||
dbg.onDebuggerStatement = function (frame) {
|
||||
hits++;
|
||||
assertEq(dbg.findScripts().indexOf(dbg.getNewestFrame().script) !== -1, true);
|
||||
};
|
||||
frame.eval("debugger;");
|
||||
};
|
||||
g.eval("debugger;");
|
||||
assertEq(hits, 1);
|
Загрузка…
Ссылка в новой задаче