Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/sources/js-sourcemaps-toggle-enabled.html

Issue 2784413003: DevTools: carefully cleanup javascript sourcemaps (Closed)
Patch Set: address comments Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698