| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function testFunction() | 8 function testFunction() |
| 9 { | 9 { |
| 10 var x = Math.sqrt(10); | 10 var x = Math.sqrt(10); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 InspectorTest.addResult("Script source was shown."); | 27 InspectorTest.addResult("Script source was shown."); |
| 28 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); | 28 InspectorTest.setBreakpoint(currentSourceFrame, 9, "", true); |
| 29 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); | 29 InspectorTest.runTestFunctionAndWaitUntilPaused(didPause); |
| 30 } | 30 } |
| 31 | 31 |
| 32 function didPause(callFrames) | 32 function didPause(callFrames) |
| 33 { | 33 { |
| 34 InspectorTest.addResult("Script execution paused."); | 34 InspectorTest.addResult("Script execution paused."); |
| 35 InspectorTest.captureStackTrace(callFrames); | 35 InspectorTest.captureStackTrace(callFrames); |
| 36 InspectorTest.dumpBreakpointSidebarPane(); | 36 InspectorTest.dumpBreakpointSidebarPane(); |
| 37 InspectorTest.addSniffer(currentSourceFrame, "_removeBreakpointD
ecoration", breakpointRemoved); | 37 InspectorTest.waitBreakpointSidebarPane().then(breakpointRemoved
); |
| 38 InspectorTest.removeBreakpoint(currentSourceFrame, 9); | 38 InspectorTest.removeBreakpoint(currentSourceFrame, 9); |
| 39 } | 39 } |
| 40 | 40 |
| 41 function breakpointRemoved() | 41 function breakpointRemoved() |
| 42 { | 42 { |
| 43 InspectorTest.resumeExecution(didResume); | 43 InspectorTest.resumeExecution(didResume); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function didResume() | 46 function didResume() |
| 47 { | 47 { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 62 | 62 |
| 63 </head> | 63 </head> |
| 64 | 64 |
| 65 <body onload="runTest()"> | 65 <body onload="runTest()"> |
| 66 <p> | 66 <p> |
| 67 Tests that JS sourcemapping for inline scripts followed by inline stylesheets do
es not break. | 67 Tests that JS sourcemapping for inline scripts followed by inline stylesheets do
es not break. |
| 68 </p> | 68 </p> |
| 69 | 69 |
| 70 </body> | 70 </body> |
| 71 </html> | 71 </html> |
| OLD | NEW |