Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / sources / debugger-pause / eval-on-pause-blocked.html
blobe5b59ed7e5d5bea8658a6bf9fd45c183085f1aac
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 <meta http-equiv="Content-Security-Policy" content="script-src 'unsafe-inline'">
7 <script>
8 function testFunction()
10 var foo = 2012;
11 debugger;
14 var test = function()
16 InspectorTest.startDebuggerTest(step1);
18 function step1()
20 InspectorTest.runTestFunctionAndWaitUntilPaused(step2);
23 function step2()
25 InspectorTest.evaluateInConsole("foo", step3);
28 function step3(result)
30 InspectorTest.addResult("Evaluated in console in the top frame context: foo = " + result);
31 InspectorTest.completeDebuggerTest();
35 </script>
36 </head>
37 <body onload="runTest()">
38 <p>
39 Test that evaluation in the context of top frame will not be blocked by Content-Security-Policy.
40 <a href="https://bugs.webkit.org/show_bug.cgi?id=77203">Bug 77203.</a>
41 </p>
43 </body>
44 </html>