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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-sync-content-nodejs.html

Issue 2422803002: DevTools: prefix node.js scripts's sourceURL with "file://" to make them a valid url (Closed)
Patch Set: WI.ParsedURL.platformPathToURL Created 4 years, 2 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/inspector/components/parsed-url.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <script src="../isolated-filesystem-test.js"></script> 6 <script src="../isolated-filesystem-test.js"></script>
7 <script src="./persistence-test.js"></script> 7 <script src="./persistence-test.js"></script>
8 <script> 8 <script>
9 9
10 function test() 10 function test()
11 { 11 {
12 // Pretend we are running under V8 front-end. 12 // Pretend we are running under V8 front-end.
13 Runtime._queryParamsObject["v8only"] = true; 13 WebInspector.targetManager.mainTarget().setIsNodeJSForTest();
14 14
15 var content = [ 15 var content = [
16 '', 16 '',
17 'var express = require("express");', 17 'var express = require("express");',
18 '//TODO' 18 '//TODO'
19 ].join("\n"); 19 ].join("\n");
20 20
21 var fsContent = WebInspector.Persistence._NodeShebang + content; 21 var fsContent = WebInspector.Persistence._NodeShebang + content;
22 var nodeContent = WebInspector.Persistence._NodePrefix + content + WebInspec tor.Persistence._NodeSuffix; 22 var nodeContent = WebInspector.Persistence._NodePrefix + content + WebInspec tor.Persistence._NodeSuffix;
23 23
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 { 89 {
90 return content.split("\n").map(line => " " + line).join("\n"); 90 return content.split("\n").map(line => " " + line).join("\n");
91 } 91 }
92 }; 92 };
93 </script> 93 </script>
94 </head> 94 </head>
95 <body onload="runTest()"> 95 <body onload="runTest()">
96 <p>Verify that syncing Node.js contents works fine.</p> 96 <p>Verify that syncing Node.js contents works fine.</p>
97 </body> 97 </body>
98 </html> 98 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/components/parsed-url.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698