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>
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
);
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
);
51 <body onload=
"runTest()">
52 <p>Tests installing compiler source map in scripts panel.
</p>