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 <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 Loading... |
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> |
OLD | NEW |