Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / inspector / compiler-source-mapping-debug.html
blobc3e2fb7759f2382d8642164f43ae72b7e67c09f6
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="debugger-test.js"></script>
5 <script src="console-test.js"></script>
6 <script src="network-test.js"></script>
7 <script src="resources/compiled.js"></script>
9 <script>
11 function clickButton()
13 document.getElementById('test').click();
16 function installScriptWithPoorSourceMap()
18 var script = document.createElement("script");
19 script.setAttribute("src", "resources/compiled-with-wrong-source-map-url.js");
20 document.head.appendChild(script);
23 function test()
25 InspectorTest.runDebuggerTestSuite([
26 function testSetBreakpoint(next)
28 InspectorTest.showScriptSource("source1.js", didShowSource);
30 function didShowSource(sourceFrame)
32 InspectorTest.addResult("Script source was shown.");
33 InspectorTest.setBreakpoint(sourceFrame, 14, "", true);
34 InspectorTest.waitUntilPaused(paused);
35 InspectorTest.evaluateInPage("setTimeout(clickButton, 0)");
38 function paused(callFrames)
40 InspectorTest.captureStackTrace(callFrames);
41 InspectorTest.resumeExecution(next);
44 ]);
47 </script>
49 </head>
51 <body onload="runTest()">
52 <p>Tests installing compiler source map in scripts panel.</p>
53 </body>
54 </html>