Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger / resources / pause-on-blocked-by-csp.js
blobdbf31dfca919633b6a412e67c21220d8f647d1a0
1 function test()
3     InspectorTest.startDebuggerTest(step1);
5     function step1()
6     {
7         InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.PauseOnUncaughtExceptions);
8         InspectorTest.evaluateInPage("setTimeout(testAction, 100);");
9         InspectorTest.waitUntilPausedAndDumpStackAndResume(step2);
10     }
12     function step2()
13     {
14         InspectorTest.DebuggerAgent.setPauseOnExceptions(WebInspector.DebuggerModel.PauseOnExceptionsState.DontPauseOnExceptions);
15         InspectorTest.completeDebuggerTest();
16     }
19 window.addEventListener("load", runTest);