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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-navigator.html

Issue 2529303003: DevTools: move FileSystemMapping from Workspace to Persistence (Closed)
Patch Set: fix tests Created 4 years 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
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
(...skipping 22 matching lines...) Expand all
33 function onUISourceCodesAdded() 33 function onUISourceCodesAdded()
34 { 34 {
35 InspectorTest.dumpNavigatorView(sourcesNavigator); 35 InspectorTest.dumpNavigatorView(sourcesNavigator);
36 next(); 36 next();
37 } 37 }
38 }, 38 },
39 39
40 function addFileMapping(next) 40 function addFileMapping(next)
41 { 41 {
42 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); 42 InspectorTest.waitForBinding("foo.js").then(onBindingCreated);
43 Workspace.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http: //127.0.0.1:8000", "/"); 43 Persistence.fileSystemMapping.addFileMapping(fs.fileSystemPath, "htt p://127.0.0.1:8000", "/");
44 44
45 function onBindingCreated(binding) 45 function onBindingCreated(binding)
46 { 46 {
47 InspectorTest.dumpNavigatorView(sourcesNavigator); 47 InspectorTest.dumpNavigatorView(sourcesNavigator);
48 next(); 48 next();
49 } 49 }
50 }, 50 },
51 51
52 function removeFileMapping(next) 52 function removeFileMapping(next)
53 { 53 {
54 Persistence.persistence.addEventListener(Persistence.Persistence.Eve nts.BindingRemoved, onBindingRemoved); 54 Persistence.persistence.addEventListener(Persistence.Persistence.Eve nts.BindingRemoved, onBindingRemoved);
55 Workspace.fileSystemMapping.removeFileMapping(fs.fileSystemPath, "ht tp://127.0.0.1:8000", "/"); 55 Persistence.fileSystemMapping.removeFileMapping(fs.fileSystemPath, " http://127.0.0.1:8000", "/");
56 56
57 function onBindingRemoved(event) 57 function onBindingRemoved(event)
58 { 58 {
59 var binding = event.data; 59 var binding = event.data;
60 if (binding.network.name() !== "foo.js") 60 if (binding.network.name() !== "foo.js")
61 return 61 return
62 Persistence.persistence.removeEventListener(Persistence.Persiste nce.Events.BindingRemoved, onBindingRemoved); 62 Persistence.persistence.removeEventListener(Persistence.Persiste nce.Events.BindingRemoved, onBindingRemoved);
63 InspectorTest.dumpNavigatorView(sourcesNavigator); 63 InspectorTest.dumpNavigatorView(sourcesNavigator);
64 next(); 64 next();
65 } 65 }
66 }, 66 },
67 ]); 67 ]);
68 }; 68 };
69 </script> 69 </script>
70 </head> 70 </head>
71 <body onload="runTest()"> 71 <body onload="runTest()">
72 <p>Verify that navigator view removes mapped UISourceCodes.</p> 72 <p>Verify that navigator view removes mapped UISourceCodes.</p>
73 </body> 73 </body>
74 </html> 74 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698