| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="inspector-test.js"></script> | 3 <script src="inspector-test.js"></script> |
| 4 <script src="debugger-test.js"></script> | 4 <script src="debugger-test.js"></script> |
| 5 <script src="resources/compiled.js"></script> | 5 <script src="resources/compiled.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function clickButton() | 9 function clickButton() |
| 10 { | 10 { |
| 11 document.getElementById('test').click(); | 11 document.getElementById('test').click(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 function test() | 14 function test() |
| 15 { | 15 { |
| 16 InspectorTest.runDebuggerTestSuite([ | 16 InspectorTest.runDebuggerTestSuite([ |
| 17 function testSetBreakpoint(next) | 17 function testSetBreakpoint(next) |
| 18 { | 18 { |
| 19 WebInspector.settings.sourceMapsEnabled.set(true); | 19 WebInspector.settings.jsSourceMapsEnabled.get = function() { return
true; }; |
| 20 InspectorTest.reloadPage(pageReloaded); | 20 InspectorTest.reloadPage(pageReloaded); |
| 21 | 21 |
| 22 function pageReloaded() | 22 function pageReloaded() |
| 23 { | 23 { |
| 24 InspectorTest.showScriptSource("source1.js", didShowSource); | 24 InspectorTest.showScriptSource("source1.js", didShowSource); |
| 25 } | 25 } |
| 26 | 26 |
| 27 function didShowSource(sourceFrame) | 27 function didShowSource(sourceFrame) |
| 28 { | 28 { |
| 29 InspectorTest.addResult("Script source was shown."); | 29 InspectorTest.addResult("Script source was shown."); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 </script> | 44 </script> |
| 45 | 45 |
| 46 </head> | 46 </head> |
| 47 | 47 |
| 48 <body onload="runTest()"> | 48 <body onload="runTest()"> |
| 49 <p>Tests installing compiler source map in scripts panel.</p> | 49 <p>Tests installing compiler source map in scripts panel.</p> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| OLD | NEW |