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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inline-source-map-loading.html

Issue 2875533002: DevTools: inline SourceMaps should report data url as their url. (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/inline-source-map-loading-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4
5 <script>
6
7 function test() {
8 var client = {};
9 var sourceMap = {
10 "file":"compiled.js",
11 "mappings":"AAASA,QAAAA,IAAG,CAACC,CAAD,CAAaC,CAAb,CACZ,CACI,MAAOD,EAAP, CAAoBC,CADxB,CAIA,IAAIC,OAAS;",
12 "sources":["source.js"],
13 "sourcesContent":["<source content>"]
14 };
15 var sourceMapURL = "data:application/json;base64," + btoa(JSON.stringify(sou rceMap));
16 var scriptSource = "\n//# sourceMappingURL=" + sourceMapURL + "\n";
17 InspectorTest.evaluateInPage(scriptSource);
18 InspectorTest.debuggerModel.sourceMapManager().addEventListener(SDK.SourceMa pManager.Events.SourceMapAttached, onSourceMap);
19
20 function onSourceMap(event) {
21 var sourceMap = event.data.sourceMap;
22 InspectorTest.addResult('SourceMap Loaded:');
23 InspectorTest.addResult('url: ' + sourceMap.url());
24 InspectorTest.addResult('compiledURL: ' + sourceMap.compiledURL());
25 InspectorTest.completeTest();
26 }
27 }
28
29 </script>
30
31 </head>
32
33 <body onload="runTest()">
34 <p>Verify that inline sourcemap has proper URL and compiledURL.</p>
35 </body>
36 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/inline-source-map-loading-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698