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

Side by Side Diff: LayoutTests/inspector/sources/debugger/breakpoint-manager.html

Issue 323503002: Devtools: Support disabling and enabling of debugger in TargetBreakpoints (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Test that adds/removes breakpoint while debugger is turned off Created 6 years, 6 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 4
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 var workspace; 9 var workspace;
10 var uiSourceCodes = {}; 10 var uiSourceCodes = {};
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 this._sourceMapping = sourceMapping; 88 this._sourceMapping = sourceMapping;
89 this._breakpoints = {}; 89 this._breakpoints = {};
90 } 90 }
91 91
92 DebuggerModelMock.prototype = { 92 DebuggerModelMock.prototype = {
93 target: function() 93 target: function()
94 { 94 {
95 return mockTarget; 95 return mockTarget;
96 }, 96 },
97 97
98 debuggerEnabled: function()
99 {
100 return true;
101 },
102
98 _addScript: function(scriptId, url) 103 _addScript: function(scriptId, url)
99 { 104 {
100 this._scripts[scriptId] = new WebInspector.Script(mockTarget, script Id, url); 105 this._scripts[scriptId] = new WebInspector.Script(mockTarget, script Id, url);
101 this._scripts[scriptId].pushSourceMapping(this._sourceMapping); 106 this._scripts[scriptId].pushSourceMapping(this._sourceMapping);
102 }, 107 },
103 108
104 _scriptForURL: function(url) 109 _scriptForURL: function(url)
105 { 110 {
106 for (var scriptId in this._scripts) { 111 for (var scriptId in this._scripts) {
107 var script = this._scripts[scriptId]; 112 var script = this._scripts[scriptId];
(...skipping 681 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 794
790 </script> 795 </script>
791 796
792 </head> 797 </head>
793 798
794 <body onload="runTest()"> 799 <body onload="runTest()">
795 <p>Tests BreakpointManager class.</p> 800 <p>Tests BreakpointManager class.</p>
796 801
797 </body> 802 </body>
798 </html> 803 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698