| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../inspector-test.js"></script> |
| 4 |
| 5 <script> |
| 6 |
| 7 function addScript() { |
| 8 var script = document.createElement('script'); |
| 9 script.src = 'resources/sourcemap-script.js'; |
| 10 document.head.appendChild(script); |
| 11 } |
| 12 |
| 13 async function test() |
| 14 { |
| 15 var sourcesNavigator = new Sources.SourcesNavigatorView(); |
| 16 sourcesNavigator.show(UI.inspectorView.element); |
| 17 |
| 18 Common.moduleSetting('jsSourceMapsEnabled').set(true); |
| 19 InspectorTest.evaluateInPagePromise('addScript()'); |
| 20 await InspectorTest.waitForUISourceCode('sourcemap-typescript.ts'), |
| 21 |
| 22 InspectorTest.markStep('dumpInitialNavigator'); |
| 23 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 24 |
| 25 InspectorTest.markStep('disableJSSourceMaps'); |
| 26 Common.moduleSetting('jsSourceMapsEnabled').set(false); |
| 27 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 28 |
| 29 InspectorTest.markStep('enableJSSourceMaps'); |
| 30 Common.moduleSetting('jsSourceMapsEnabled').set(true); |
| 31 await InspectorTest.waitForUISourceCode('sourcemap-typescript.ts'), |
| 32 InspectorTest.dumpNavigatorView(sourcesNavigator, false); |
| 33 |
| 34 InspectorTest.completeTest(); |
| 35 }; |
| 36 |
| 37 </script> |
| 38 |
| 39 </head> |
| 40 |
| 41 <body id="inspect" onload="runTest()"> |
| 42 <p>Verify that JavaScript sourcemap enabling and disabling adds/removes sourcema
p sources.</p> |
| 43 |
| 44 </body> |
| 45 </html> |
| OLD | NEW |