3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
8 function testFunction()
10 var x = Math.sqrt(10);
16 var currentSourceFrame;
17 InspectorTest.setQuiet(true);
18 var pageURL = "js-with-inline-stylesheets.html";
19 InspectorTest.runDebuggerTestSuite([
20 function testSetBreakpoint(next)
22 InspectorTest.showScriptSource(pageURL, didShowScriptSource);
24 function didShowScriptSource(sourceFrame)
26 currentSourceFrame = sourceFrame;
27 InspectorTest.addResult("Script source was shown.");
28 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true);
29 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause);
32 function didPause(callFrames)
34 InspectorTest.addResult("Script execution paused.");
35 InspectorTest.captureStackTrace(callFrames);
36 InspectorTest.dumpBreakpointSidebarPane();
37 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointDecoration", breakpointRemoved);
38 InspectorTest.removeBreakpoint(currentSourceFrame, 9);
41 function breakpointRemoved()
43 InspectorTest.resumeExecution(didResume);
48 InspectorTest.dumpBreakpointSidebarPane();
49 InspectorTest.addResult("Script execution resumed.");
65 <body onload="runTest()">
67 Tests that JS sourcemapping for inline scripts followed by inline stylesheets does not break.