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

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

Issue 299443016: DevTools: Decouple debugger model from UI entities (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge DebuggerScriptMapping into DebuggerWorkspaceBinding Created 6 years, 4 months 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 | Annotate | Revision Log
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.inspectorView.showPanel("sources"); 21 var panel = WebInspector.inspectorView.showPanel("sources");
22 var liveEditSupport = WebInspector.DebuggerScriptMapping.registry.instance(W ebInspector.targetManager.targets()[0]).liveEditSupport(); 22 var liveEditSupport = WebInspector.debuggerWorkspaceBinding.liveEditSupport( WebInspector.targetManager.targets()[0]);
23 23
24 function pathToFileName(path) 24 function pathToFileName(path)
25 { 25 {
26 return path.substring(path.lastIndexOf("/") + 1); 26 return path.substring(path.lastIndexOf("/") + 1);
27 } 27 }
28 28
29 function dumpBreakpointStorageAndLocations() 29 function dumpBreakpointStorageAndLocations()
30 { 30 {
31 var breakpointManager = WebInspector.breakpointManager; 31 var breakpointManager = WebInspector.breakpointManager;
32 var breakpoints = breakpointManager._storage._setting.get(); 32 var breakpoints = breakpointManager._storage._setting.get();
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 ]); 442 ]);
443 }; 443 };
444 444
445 </script> 445 </script>
446 </head> 446 </head>
447 <body onload="runTest()"> 447 <body onload="runTest()">
448 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame during live edit.</p> 448 <p>Tests breakpoints are correctly dimmed and restored in JavaScriptSourceFrame during live edit.</p>
449 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a> 449 <a href="https://bugs.webkit.org/show_bug.cgi?id=99598">Bug 99598</a>
450 </body> 450 </body>
451 </html> 451 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698