Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-error-on-call-frame.html
blob15eb27a1432f4adc833f05daa507c6692a861ecb
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../http/tests/inspector/console-test.js"></script>
6 <script>
7 function testFunction()
9 var i = 0;
10 debugger;
13 function test()
15 InspectorTest.startDebuggerTest(step1);
17 function step1()
19 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
22 function step2()
24 InspectorTest.evaluateInConsole("console.error(42)", step3);
27 function step3()
29 InspectorTest.resumeExecution(step4);
32 function step4()
34 InspectorTest.expandConsoleMessages(onExpanded);
37 function onExpanded()
39 var result = InspectorTest.dumpConsoleMessagesIntoArray().join("\n");
40 result = result.replace(/(\(program\)):\d+/g, "$1");
41 InspectorTest.addResult(result);
42 InspectorTest.completeDebuggerTest();
45 </script>
46 </head>
47 <body onload="runTest()">
48 <p>Tests that console.error does not throw exception when executed in console on call frame.</p>
49 </body>
50 </html>