Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / debugger-eval-while-paused-throws.html
blob14f7f8dd7dbcca2072c57fb8e9dd4a838524c6e8
1 <html>
2 <head>
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>
6 <script>
8 var globalObj = {
9 func: function()
11 throw new Error("globalObj.func");
15 function testFunction()
17 var localObj = {
18 func: function()
20 throw new Error("localObj.func");
23 debugger;
26 var test = function()
28 InspectorTest.startDebuggerTest(step1, true);
30 function injectedFunction()
32 var injectedObj = {
33 func: function()
35 throw new Error("injectedObj.func");
38 return injectedObj.func();
41 function step1()
43 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
46 function step2()
48 InspectorTest.evaluateInPage(String(injectedFunction), step3);
51 function step3()
53 InspectorTest.evaluateInConsole("injectedFunction()", step4);
56 function step4()
58 InspectorTest.evaluateInConsole("localObj.func()", step5);
61 function 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;
78 </script>
79 </head>
81 <body onload="runTest()">
82 <p>
83 Tests that evaluation in console that throws works fine when script is paused.
84 </p>
85 </body>
86 </html>