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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/live-edit-breakpoints.html

Issue 1523193002: DevTools: merge UISourceCode's parentPath, name, originURL and uri. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebaselined Created 5 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="../../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../../http/tests/inspector/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/live-edit-test.js"></script> 5 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
6 <script src="resources/edit-me-breakpoints.js"></script> 6 <script src="resources/edit-me-breakpoints.js"></script>
7 <script> 7 <script>
8 function loadDynamicAnonymousScript() 8 function loadDynamicAnonymousScript()
9 { 9 {
10 function testFunction() 10 function testFunction()
11 { 11 {
12 debugger; 12 debugger;
13 } 13 }
14 var scriptElement = document.createElement("script"); 14 var scriptElement = document.createElement("script");
15 scriptElement.textContent = String(testFunction); 15 scriptElement.textContent = String(testFunction);
16 docuemnt.head.appendChild(scriptElement); 16 docuemnt.head.appendChild(scriptElement);
17 } 17 }
18 18
19 function test() 19 function test()
20 { 20 {
21 var panel = WebInspector.panels.sources; 21 var panel = WebInspector.panels.sources;
22 22
23 function pathToFileName(path) 23 function pathToFileName(path)
24 { 24 {
25 return path.substring(path.lastIndexOf("/") + 1); 25 return path.substring(path.lastIndexOf("/") + 1).replace(/VM[\d]+/, "VMX X");
26 } 26 }
27 27
28 function dumpBreakpointStorageAndLocations() 28 function dumpBreakpointStorageAndLocations()
29 { 29 {
30 var breakpointManager = WebInspector.breakpointManager; 30 var breakpointManager = WebInspector.breakpointManager;
31 var breakpoints = breakpointManager._storage._setting.get(); 31 var breakpoints = breakpointManager._storage._setting.get();
32 InspectorTest.addResult(" Dumping breakpoint storage"); 32 InspectorTest.addResult(" Dumping breakpoint storage");
33 for (var i = 0; i < breakpoints.length; ++i) 33 for (var i = 0; i < breakpoints.length; ++i)
34 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].s ourceFileId) + ":" + breakpoints[i].lineNumber + ", enabled:" + breakpoints[i].e nabled); 34 InspectorTest.addResult(" " + pathToFileName(breakpoints[i].s ourceFileId) + ":" + breakpoints[i].lineNumber + ", enabled:" + breakpoints[i].e nabled);
35 35
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 ]); 311 ]);
312 }; 312 };
313 313
314 </script> 314 </script>
315 </head> 315 </head>
316 <body onload="runTest()"> 316 <body onload="runTest()">
317 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame during live edit.</p> 317 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame during live edit.</p>
318 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> 318 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a>
319 </body> 319 </body>
320 </html> 320 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698