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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/persistence-move-breakpoints.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 17 matching lines...) Expand all
28 function onSourceFrame(sourceFrame) 28 function onSourceFrame(sourceFrame)
29 { 29 {
30 InspectorTest.setBreakpoint(sourceFrame, 0, "", true); 30 InspectorTest.setBreakpoint(sourceFrame, 0, "", true);
31 InspectorTest.waitBreakpointSidebarPane().then(InspectorTest.dum pBreakpointSidebarPane).then(next); 31 InspectorTest.waitBreakpointSidebarPane().then(InspectorTest.dum pBreakpointSidebarPane).then(next);
32 } 32 }
33 }, 33 },
34 34
35 function addFileMapping(next) 35 function addFileMapping(next)
36 { 36 {
37 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); 37 InspectorTest.waitForBinding("foo.js").then(onBindingCreated);
38 Workspace.fileSystemMapping.addFileMapping(fs.fileSystemPath, "http: //127.0.0.1:8000", "/"); 38 Persistence.fileSystemMapping.addFileMapping(fs.fileSystemPath, "htt p://127.0.0.1:8000", "/");
39 39
40 function onBindingCreated(binding) 40 function onBindingCreated(binding)
41 { 41 {
42 InspectorTest.waitBreakpointSidebarPane().then(InspectorTest.dum pBreakpointSidebarPane).then(next); 42 InspectorTest.waitBreakpointSidebarPane().then(InspectorTest.dum pBreakpointSidebarPane).then(next);
43 } 43 }
44 }, 44 },
45 45
46 function removeFileMapping(next) 46 function removeFileMapping(next)
47 { 47 {
48 Persistence.persistence.addEventListener(Persistence.Persistence.Eve nts.BindingRemoved, onBindingRemoved); 48 Persistence.persistence.addEventListener(Persistence.Persistence.Eve nts.BindingRemoved, onBindingRemoved);
49 Workspace.fileSystemMapping.removeFileMapping(fs.fileSystemPath, "ht tp://127.0.0.1:8000", "/"); 49 Persistence.fileSystemMapping.removeFileMapping(fs.fileSystemPath, " http://127.0.0.1:8000", "/");
50 50
51 function onBindingRemoved(event) 51 function onBindingRemoved(event)
52 { 52 {
53 var binding = event.data; 53 var binding = event.data;
54 if (binding.network.name() !== "foo.js") 54 if (binding.network.name() !== "foo.js")
55 return 55 return
56 Persistence.persistence.removeEventListener(Persistence.Persiste nce.Events.BindingRemoved, onBindingRemoved); 56 Persistence.persistence.removeEventListener(Persistence.Persiste nce.Events.BindingRemoved, onBindingRemoved);
57 InspectorTest.waitBreakpointSidebarPane().then(dumpBreakpointSid ebarPane).then(next); 57 InspectorTest.waitBreakpointSidebarPane().then(dumpBreakpointSid ebarPane).then(next);
58 } 58 }
59 }, 59 },
(...skipping 11 matching lines...) Expand all
71 InspectorTest.addResult(" " + uiLocation.uiSourceCode.url() +":" + uiLocation.lineNumber); 71 InspectorTest.addResult(" " + uiLocation.uiSourceCode.url() +":" + uiLocation.lineNumber);
72 } 72 }
73 } 73 }
74 }; 74 };
75 </script> 75 </script>
76 </head> 76 </head>
77 <body onload="runTest()"> 77 <body onload="runTest()">
78 <p>Verify that breakpoints are moved appropriately</p> 78 <p>Verify that breakpoints are moved appropriately</p>
79 </body> 79 </body>
80 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698