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 src="./resources/foo.js"></script> | 8 <script src="./resources/foo.js"></script> |
9 <script> | 9 <script> |
10 | 10 |
11 function test() | 11 function test() |
12 { | 12 { |
13 var fs = new InspectorTest.TestFileSystem("file:///var/www"); | 13 var fs = new InspectorTest.TestFileSystem("file:///var/www"); |
14 var fsEntry = InspectorTest.addFooJSFile(fs); | 14 var fsEntry = InspectorTest.addFooJSFile(fs); |
15 | 15 |
16 var networkCode, fileSystemCode; | 16 var networkCode, fileSystemCode; |
17 | 17 |
18 InspectorTest.runTestSuite([ | 18 InspectorTest.runTestSuite([ |
19 function addFileSystem(next) | 19 function addFileSystem(next) |
20 { | 20 { |
21 fs.reportCreated(next); | 21 fs.reportCreated(next); |
22 }, | 22 }, |
23 | 23 |
24 function addFileMapping(next) | 24 function addFileMapping(next) |
25 { | 25 { |
26 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); | 26 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); |
27 Workspace.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http:
//127.0.0.1:8000", "/"); | 27 Persistence.fileSystemMapping.addFileMapping(fs.fileSystemPath, "htt
p://127.0.0.1:8000", "/"); |
28 | 28 |
29 function onBindingCreated(binding) | 29 function onBindingCreated(binding) |
30 { | 30 { |
31 InspectorTest.addResult("Binding created: " + binding); | 31 InspectorTest.addResult("Binding created: " + binding); |
32 networkCode = binding.network; | 32 networkCode = binding.network; |
33 fileSystemCode = binding.fileSystem; | 33 fileSystemCode = binding.fileSystem; |
34 next(); | 34 next(); |
35 } | 35 } |
36 }, | 36 }, |
37 | 37 |
(...skipping 23 matching lines...) Expand all Loading... |
61 } | 61 } |
62 } | 62 } |
63 ]); | 63 ]); |
64 }; | 64 }; |
65 </script> | 65 </script> |
66 </head> | 66 </head> |
67 <body onload="runTest()"> | 67 <body onload="runTest()"> |
68 <p>Tests that persistence syncs network and filesystem UISourceCodes.</p> | 68 <p>Tests that persistence syncs network and filesystem UISourceCodes.</p> |
69 </body> | 69 </body> |
70 </html> | 70 </html> |
OLD | NEW |