michael@0: // Specifying a non-debuggee global in a Debugger.prototype.findScripts query should michael@0: // cause the query to return no scripts. michael@0: michael@0: var g1 = newGlobal(); michael@0: g1.eval('function f(){}'); michael@0: michael@0: var g2 = newGlobal(); michael@0: g2.eval('function g(){}'); michael@0: michael@0: var dbg = new Debugger(g1); michael@0: assertEq(dbg.findScripts({global:g1}).length > 0, true); michael@0: assertEq(dbg.findScripts({global:g2}).length, 0); michael@0: assertEq(dbg.findScripts({global:this}).length, 0);