michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: /** michael@0: * Tests that scripts that override properties of the global object, like michael@0: * toString don't break the debugger. The test page used to cause the debugger michael@0: * to throw when trying to attach to the thread actor. michael@0: */ michael@0: michael@0: const TAB_URL = EXAMPLE_URL + "doc_global-method-override.html"; michael@0: michael@0: function test() { michael@0: initDebugger(TAB_URL).then(([aTab, aDebuggee, aPanel]) => { michael@0: let gDebugger = aPanel.panelWin; michael@0: ok(gDebugger, "Should have a debugger available."); michael@0: is(gDebugger.gThreadClient.state, "attached", "Debugger should be attached."); michael@0: michael@0: closeDebuggerAndFinish(aPanel); michael@0: }); michael@0: }