Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / debugger-pause-on-failed-assertion.html
blob5bc651c25e85e2f9774636610a812b2bf074c4fb
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>
7 function failAssertion()
9 console.assert(false);
12 function handleClick()
14 failAssertion();
17 var test = function()
19 InspectorTest.startDebuggerTest(step1);
21 function step1()
23 InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
24 InspectorTest.showScriptSource("debugger-pause-on-failed-assertion.html", step2);
27 function step2()
29 InspectorTest.addResult("Script source was shown.");
30 InspectorTest.evaluateInPage("setTimeout(handleClick, 0)");
31 InspectorTest.waitUntilPaused(step3);
34 function step3(callFrames)
36 InspectorTest.captureStackTrace(callFrames);
37 InspectorTest.completeDebuggerTest();
41 </script>
42 </head>
44 <body onload="runTest()">
45 <p>
46 Tests that debugger breaks on failed assertion when pause on exception mode is enabled.
47 </p>
49 </body>
50 </html>