3 <script src=
"../../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../../http/tests/inspector/console-test.js"></script>
5 <script src=
"../../../http/tests/inspector/debugger-test.js"></script>
11 throw new Error("globalObj.func");
15 function testFunction()
20 throw new Error("localObj.func");
28 InspectorTest
.startDebuggerTest(step1
, true);
30 function injectedFunction()
35 throw new Error("injectedObj.func");
38 return injectedObj
.func();
43 InspectorTest
.runTestFunctionAndWaitUntilPaused(step2
);
48 InspectorTest
.evaluateInPage(String(injectedFunction
), step3
);
53 InspectorTest
.evaluateInConsole("injectedFunction()", step4
);
58 InspectorTest
.evaluateInConsole("localObj.func()", step5
);
63 InspectorTest
.evaluateInConsole("globalObj.func()", dumpConsoleMessages
);
66 function dumpConsoleMessages()
68 InspectorTest
.addResult("Dumping console messages:\n");
69 InspectorTest
.dumpConsoleMessages(false, false, formatter
);
70 InspectorTest
.completeDebuggerTest();
73 function formatter(element
, message
) {
74 return message
.messageText
;
81 <body onload=
"runTest()">
83 Tests that evaluation in console that throws works fine when script is paused.