| 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="workspace-test.js"></script> | 5 <script src="workspace-test.js"></script> |
| 6 | 6 |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 function didRequestContent(content, contentEncoded, mimeType) | 307 function didRequestContent(content, contentEncoded, mimeType) |
| 308 { | 308 { |
| 309 InspectorTest.addResult("<source content> === " + content); | 309 InspectorTest.addResult("<source content> === " + content); |
| 310 next(); | 310 next(); |
| 311 } | 311 } |
| 312 } | 312 } |
| 313 }, | 313 }, |
| 314 | 314 |
| 315 function testSourceMapCouldNotBeLoaded(next) | 315 function testSourceMapCouldNotBeLoaded(next) |
| 316 { | 316 { |
| 317 WebInspector.settings.sourceMapsEnabled.set(true); | 317 WebInspector.settings.jsSourceMapsEnabled.get = function() { return
true; } |
| 318 WebInspector.debuggerModel._reset(); | 318 WebInspector.debuggerModel._reset(); |
| 319 InspectorTest.createWorkspace(); | 319 InspectorTest.createWorkspace(); |
| 320 var debuggerScriptMapping = new WebInspector.DebuggerScriptMapping(I
nspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceProvider); | 320 var debuggerScriptMapping = new WebInspector.DebuggerScriptMapping(I
nspectorTest.testWorkspace, InspectorTest.testNetworkWorkspaceProvider); |
| 321 | 321 |
| 322 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(compiledUISourc
eCodeAdded); | 322 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(compiledUISourc
eCodeAdded); |
| 323 var script = InspectorTest.createScriptMock("compiled.js", 0, 0, tru
e, ""); | 323 var script = InspectorTest.createScriptMock("compiled.js", 0, 0, tru
e, ""); |
| 324 | 324 |
| 325 function compiledUISourceCodeAdded(uiSourceCode) | 325 function compiledUISourceCodeAdded(uiSourceCode) |
| 326 { | 326 { |
| 327 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(originalUIS
ourceCodeAdded); | 327 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(originalUIS
ourceCodeAdded); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 369 }; | 369 }; |
| 370 | 370 |
| 371 </script> | 371 </script> |
| 372 | 372 |
| 373 </head> | 373 </head> |
| 374 | 374 |
| 375 <body onload="runTest()"> | 375 <body onload="runTest()"> |
| 376 <p>Tests SourceMap and CompilerScriptMapping.</p> | 376 <p>Tests SourceMap and CompilerScriptMapping.</p> |
| 377 </body> | 377 </body> |
| 378 </html> | 378 </html> |
| OLD | NEW |