Changeset 269023 in webkit
- Timestamp:
- Oct 26, 2020 11:39:08 PM (21 months ago)
- Location:
- trunk
- Files:
-
- 37 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/inspector/debugger/break-on-exception-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/debugger/break-on-uncaught-exception-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/debugger/resources/breakpoint-options-utilities.js (modified) (2 diffs)
-
LayoutTests/inspector/debugger/setPauseOnAssertions-expected.txt (modified) (4 diffs)
-
LayoutTests/inspector/debugger/setPauseOnDebuggerStatements-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/debugger/setPauseOnMicrotasks-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/attribute-modified-style-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/dom-breakpoint-attribute-modified-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/dom-breakpoint-node-removed-ancestor-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/dom-breakpoint-node-removed-direct-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/dom-breakpoint-subtree-modified-add-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/dom-breakpoint-subtree-modified-remove-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/event-animation-frame-breakpoints-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/event-interval-breakpoints-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/event-listener-breakpoints-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/event-timeout-breakpoints-expected.txt (modified) (2 diffs)
-
LayoutTests/inspector/dom-debugger/url-breakpoints-all-requests-expected.txt (modified) (4 diffs)
-
LayoutTests/inspector/dom-debugger/url-breakpoints-containing-expected.txt (modified) (4 diffs)
-
LayoutTests/inspector/dom-debugger/url-breakpoints-matching-expected.txt (modified) (4 diffs)
-
Source/JavaScriptCore/ChangeLog (modified) (1 diff)
-
Source/JavaScriptCore/debugger/Debugger.cpp (modified) (4 diffs)
-
Source/JavaScriptCore/debugger/Debugger.h (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/InjectedScript.cpp (modified) (1 diff)
-
Source/JavaScriptCore/inspector/InjectedScript.h (modified) (1 diff)
-
Source/JavaScriptCore/inspector/InjectedScriptSource.js (modified) (2 diffs)
-
Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp (modified) (3 diffs)
-
Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h (modified) (2 diffs)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js (modified) (3 diffs)
-
Source/WebInspectorUI/UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js (modified) (2 diffs)
-
Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Views/BreakpointPopover.js (modified) (4 diffs)
-
Source/WebInspectorUI/UserInterface/Views/ConsolePrompt.js (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Views/EventBreakpointPopover.js (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Views/TextEditor.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r269021 r269023 1 2020-10-26 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: console command line API should be exposed to breakpoint conditions/actions 4 https://bugs.webkit.org/show_bug.cgi?id=218141 5 <rdar://problem/70636727> 6 7 Reviewed by Brian Burg. 8 9 * inspector/debugger/resources/breakpoint-options-utilities.js: 10 * inspector/debugger/break-on-exception-expected.txt: 11 * inspector/debugger/break-on-uncaught-exception-expected.txt: 12 * inspector/debugger/setPauseOnAssertions-expected.txt: 13 * inspector/debugger/setPauseOnDebuggerStatements-expected.txt: 14 * inspector/debugger/setPauseOnMicrotasks-expected.txt: 15 * inspector/dom-debugger/attribute-modified-style-expected.txt: 16 * inspector/dom-debugger/dom-breakpoint-attribute-modified-expected.txt: 17 * inspector/dom-debugger/dom-breakpoint-node-removed-ancestor-expected.txt: 18 * inspector/dom-debugger/dom-breakpoint-node-removed-direct-expected.txt: 19 * inspector/dom-debugger/dom-breakpoint-subtree-modified-add-expected.txt: 20 * inspector/dom-debugger/dom-breakpoint-subtree-modified-remove-expected.txt: 21 * inspector/dom-debugger/event-animation-frame-breakpoints-expected.txt: 22 * inspector/dom-debugger/event-interval-breakpoints-expected.txt: 23 * inspector/dom-debugger/event-listener-breakpoints-expected.txt: 24 * inspector/dom-debugger/event-timeout-breakpoints-expected.txt: 25 * inspector/dom-debugger/url-breakpoints-all-requests-expected.txt: 26 * inspector/dom-debugger/url-breakpoints-containing-expected.txt: 27 * inspector/dom-debugger/url-breakpoints-matching-expected.txt: 28 1 29 2020-10-26 Carlos Alberto Lopez Perez <clopez@igalia.com> 2 30 -
trunk/LayoutTests/inspector/debugger/break-on-exception-expected.txt
r266534 r269023 50 50 51 51 Setting condition to 'true'... 52 53 Triggering breakpoint... 54 PASS: Should pause. 55 56 Triggering breakpoint... 57 PASS: Should pause. 58 59 -- Running test case: BreakOnAnyException.Options.Condition.ConsoleCommandLineAPI 60 Adding saved console value 'false'... 61 62 Setting condition to saved console value... 63 64 Triggering breakpoint... 65 PASS: Should not pause. 66 67 Triggering breakpoint... 68 PASS: Should not pause. 69 70 Adding saved console value 'true'... 71 Setting condition to saved console value... 52 72 53 73 Triggering breakpoint... … … 127 147 PASS: Should not pause. 128 148 149 -- Running test case: BreakOnAnyException.Options.Actions.Evaluate.ConsoleCommandLineAPI 150 Adding saved console value '1'... 151 152 Adding evaluate action using saved console value... 153 154 Triggering breakpoint... 155 PASS: Should execute breakpoint action. 156 PASS: Should pause. 157 158 Adding saved console value '2'... 159 Editing evaluate action using saved console value... 160 161 Triggering breakpoint... 162 PASS: Should execute breakpoint action. 163 PASS: Should pause. 164 165 Adding saved console value '3'... 166 Editing evaluate action using saved console value... 167 Enabling auto-continue... 168 169 Triggering breakpoint... 170 PASS: Should execute breakpoint action. 171 PASS: Should not pause. 172 173 Adding saved console value '4'... 174 Editing evaluate action using saved console value... 175 176 Triggering breakpoint... 177 PASS: Should execute breakpoint action. 178 PASS: Should not pause. 179 -
trunk/LayoutTests/inspector/debugger/break-on-uncaught-exception-expected.txt
r266534 r269023 49 49 50 50 Setting condition to 'true'... 51 52 Triggering breakpoint... 53 PASS: Should pause. 54 55 Triggering breakpoint... 56 PASS: Should pause. 57 58 -- Running test case: BreakOnUncaughtException.Options.Condition.ConsoleCommandLineAPI 59 Adding saved console value 'false'... 60 61 Setting condition to saved console value... 62 63 Triggering breakpoint... 64 PASS: Should not pause. 65 66 Triggering breakpoint... 67 PASS: Should not pause. 68 69 Adding saved console value 'true'... 70 Setting condition to saved console value... 51 71 52 72 Triggering breakpoint... … … 126 146 PASS: Should not pause. 127 147 148 -- Running test case: BreakOnUncaughtException.Options.Actions.Evaluate.ConsoleCommandLineAPI 149 Adding saved console value '1'... 150 151 Adding evaluate action using saved console value... 152 153 Triggering breakpoint... 154 PASS: Should execute breakpoint action. 155 PASS: Should pause. 156 157 Adding saved console value '2'... 158 Editing evaluate action using saved console value... 159 160 Triggering breakpoint... 161 PASS: Should execute breakpoint action. 162 PASS: Should pause. 163 164 Adding saved console value '3'... 165 Editing evaluate action using saved console value... 166 Enabling auto-continue... 167 168 Triggering breakpoint... 169 PASS: Should execute breakpoint action. 170 PASS: Should not pause. 171 172 Adding saved console value '4'... 173 Editing evaluate action using saved console value... 174 175 Triggering breakpoint... 176 PASS: Should execute breakpoint action. 177 PASS: Should not pause. 178 -
trunk/LayoutTests/inspector/debugger/resources/breakpoint-options-utilities.js
r266669 r269023 57 57 }); 58 58 59 suite.addTestCase({ 60 name: suite.name + "." + testCaseNamePrefix + "Options.Condition.ConsoleCommandLineAPI", 61 description: "Check the console command line API is exposed to the breakpoint condition.", 62 async test() { 63 let pauseCount = 0; 64 65 let pausedListener = WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.Paused, (event) => { 66 ++pauseCount; 67 WI.debuggerManager.resume(); 68 }); 69 70 InspectorTest.log("Adding saved console value 'false'..."); 71 let firstEvaluateResult = await RuntimeAgent.evaluate.invoke({ 72 expression: "false", 73 objectGroup: "test", 74 includeCommandLineAPI: true, 75 doNotPauseOnExceptionsAndMuteConsole: true, 76 saveResult: true, 77 }); 78 InspectorTest.assert(!firstEvaluateResult.wasThrown, "Should not throw."); 79 InspectorTest.assert(firstEvaluateResult.savedResultIndex, "Should have saved result index."); 80 81 let breakpoint = await createBreakpoint(); 82 83 InspectorTest.newline(); 84 85 InspectorTest.log("Setting condition to saved console value..."); 86 breakpoint.condition = "$" + firstEvaluateResult.savedResultIndex; 87 88 for (let i = 1; i <= 4; ++i) { 89 if (i === 3) { 90 InspectorTest.newline(); 91 92 InspectorTest.log("Adding saved console value 'true'..."); 93 let secondEvaluateResult = await RuntimeAgent.evaluate.invoke({ 94 expression: "true", 95 objectGroup: "test", 96 includeCommandLineAPI: true, 97 doNotPauseOnExceptionsAndMuteConsole: true, 98 saveResult: true, 99 }); 100 InspectorTest.assert(!secondEvaluateResult.wasThrown, "Should not throw."); 101 InspectorTest.assert(secondEvaluateResult.savedResultIndex, "Should have saved result index."); 102 103 InspectorTest.log("Setting condition to saved console value..."); 104 breakpoint.condition = "$" + secondEvaluateResult.savedResultIndex; 105 } 106 107 InspectorTest.newline(); 108 109 InspectorTest.log("Triggering breakpoint..."); 110 await triggerBreakpoint(breakpoint); 111 112 if (i <= 2) 113 InspectorTest.expectEqual(pauseCount, 0, "Should not pause."); 114 else 115 InspectorTest.expectEqual(pauseCount, i - 2, "Should pause."); 116 } 117 118 removeBreakpoint(breakpoint); 119 120 WI.debuggerManager.removeEventListener(WI.DebuggerManager.Event.Paused, pausedListener); 121 }, 122 }); 123 59 124 if (!skip?.ignoreCount) { 60 125 suite.addTestCase({ … … 205 270 }, 206 271 }); 272 273 suite.addTestCase({ 274 name: suite.name + "." + testCaseNamePrefix + "Options.Actions.Evaluate.ConsoleCommandLineAPI", 275 description: "Check the console command line API is exposed to breakpoint actions.", 276 async test() { 277 let pauseCount = 0; 278 279 let pausedListener = WI.debuggerManager.addEventListener(WI.DebuggerManager.Event.Paused, (event) => { 280 ++pauseCount; 281 WI.debuggerManager.resume(); 282 }); 283 284 InspectorTest.log("Adding saved console value '1'..."); 285 let firstEvaluateResult = await RuntimeAgent.evaluate.invoke({ 286 expression: "1", 287 objectGroup: "test", 288 includeCommandLineAPI: true, 289 doNotPauseOnExceptionsAndMuteConsole: true, 290 saveResult: true, 291 }); 292 InspectorTest.assert(!firstEvaluateResult.wasThrown, "Should not throw."); 293 InspectorTest.assert(firstEvaluateResult.savedResultIndex, "Should have saved result index."); 294 295 let breakpoint = await createBreakpoint(); 296 297 InspectorTest.newline(); 298 299 InspectorTest.log("Adding evaluate action using saved console value..."); 300 let action = new WI.BreakpointAction(WI.BreakpointAction.Type.Evaluate, {data: `window.BREAKPOINT_ACTION_EVALUATE = $${firstEvaluateResult.savedResultIndex};`}); 301 breakpoint.addAction(action); 302 303 for (let i = 1; i <= 4; ++i) { 304 if (i > 1) { 305 InspectorTest.newline(); 306 307 InspectorTest.log(`Adding saved console value '${i}'...`); 308 let secondEvaluateResult = await RuntimeAgent.evaluate.invoke({ 309 expression: String(i), 310 objectGroup: "test", 311 includeCommandLineAPI: true, 312 doNotPauseOnExceptionsAndMuteConsole: true, 313 saveResult: true, 314 }); 315 InspectorTest.assert(!secondEvaluateResult.wasThrown, "Should not throw."); 316 InspectorTest.assert(secondEvaluateResult.savedResultIndex, "Should have saved result index."); 317 318 InspectorTest.log("Editing evaluate action using saved console value..."); 319 action.data = `window.BREAKPOINT_ACTION_EVALUATE = $${secondEvaluateResult.savedResultIndex};`; 320 321 if (i === 3) { 322 InspectorTest.log("Enabling auto-continue..."); 323 breakpoint.autoContinue = true; 324 } 325 } 326 327 InspectorTest.newline(); 328 329 InspectorTest.log("Triggering breakpoint..."); 330 await triggerBreakpoint(breakpoint); 331 332 let breakpointActionEvaluateResult = await InspectorTest.evaluateInPage(`window.BREAKPOINT_ACTION_EVALUATE`); 333 InspectorTest.expectEqual(breakpointActionEvaluateResult, i, "Should execute breakpoint action."); 334 335 if (i <= 2) 336 InspectorTest.expectEqual(pauseCount, i, "Should pause."); 337 else 338 InspectorTest.expectEqual(pauseCount, 2, "Should not pause."); 339 } 340 341 removeBreakpoint(breakpoint); 342 343 WI.debuggerManager.removeEventListener(WI.DebuggerManager.Event.Paused, pausedListener); 344 }, 345 }); 207 346 }; 208 347 }); -
trunk/LayoutTests/inspector/debugger/setPauseOnAssertions-expected.txt
r266534 r269023 1 CONSOLE MESSAGE: Failing assertion 2 CONSOLE MESSAGE: Failing assertion 3 CONSOLE MESSAGE: Failing assertion 4 CONSOLE MESSAGE: Failing assertion 1 5 CONSOLE MESSAGE: Failing assertion 2 6 CONSOLE MESSAGE: Failing assertion … … 16 20 CONSOLE MESSAGE: Failing assertion 17 21 CONSOLE MESSAGE: BREAKPOINT ACTION LOG 4 22 CONSOLE MESSAGE: Failing assertion 23 CONSOLE MESSAGE: Failing assertion 24 CONSOLE MESSAGE: Failing assertion 25 CONSOLE MESSAGE: Failing assertion 18 26 CONSOLE MESSAGE: Failing assertion 19 27 CONSOLE MESSAGE: Failing assertion … … 42 50 43 51 Setting condition to 'true'... 52 53 Triggering breakpoint... 54 PASS: Should pause. 55 56 Triggering breakpoint... 57 PASS: Should pause. 58 59 -- Running test case: Debugger.setPauseOnAssertions.Options.Condition.ConsoleCommandLineAPI 60 Adding saved console value 'false'... 61 62 Setting condition to saved console value... 63 64 Triggering breakpoint... 65 PASS: Should not pause. 66 67 Triggering breakpoint... 68 PASS: Should not pause. 69 70 Adding saved console value 'true'... 71 Setting condition to saved console value... 44 72 45 73 Triggering breakpoint... … … 119 147 PASS: Should not pause. 120 148 149 -- Running test case: Debugger.setPauseOnAssertions.Options.Actions.Evaluate.ConsoleCommandLineAPI 150 Adding saved console value '1'... 151 152 Adding evaluate action using saved console value... 153 154 Triggering breakpoint... 155 PASS: Should execute breakpoint action. 156 PASS: Should pause. 157 158 Adding saved console value '2'... 159 Editing evaluate action using saved console value... 160 161 Triggering breakpoint... 162 PASS: Should execute breakpoint action. 163 PASS: Should pause. 164 165 Adding saved console value '3'... 166 Editing evaluate action using saved console value... 167 Enabling auto-continue... 168 169 Triggering breakpoint... 170 PASS: Should execute breakpoint action. 171 PASS: Should not pause. 172 173 Adding saved console value '4'... 174 Editing evaluate action using saved console value... 175 176 Triggering breakpoint... 177 PASS: Should execute breakpoint action. 178 PASS: Should not pause. 179 -
trunk/LayoutTests/inspector/debugger/setPauseOnDebuggerStatements-expected.txt
r266534 r269023 24 24 25 25 Setting condition to 'true'... 26 27 Triggering breakpoint... 28 PASS: Should pause. 29 30 Triggering breakpoint... 31 PASS: Should pause. 32 33 -- Running test case: Debugger.setPauseOnDebuggerStatements.Options.Condition.ConsoleCommandLineAPI 34 Adding saved console value 'false'... 35 36 Setting condition to saved console value... 37 38 Triggering breakpoint... 39 PASS: Should not pause. 40 41 Triggering breakpoint... 42 PASS: Should not pause. 43 44 Adding saved console value 'true'... 45 Setting condition to saved console value... 26 46 27 47 Triggering breakpoint... … … 101 121 PASS: Should not pause. 102 122 123 -- Running test case: Debugger.setPauseOnDebuggerStatements.Options.Actions.Evaluate.ConsoleCommandLineAPI 124 Adding saved console value '1'... 125 126 Adding evaluate action using saved console value... 127 128 Triggering breakpoint... 129 PASS: Should execute breakpoint action. 130 PASS: Should pause. 131 132 Adding saved console value '2'... 133 Editing evaluate action using saved console value... 134 135 Triggering breakpoint... 136 PASS: Should execute breakpoint action. 137 PASS: Should pause. 138 139 Adding saved console value '3'... 140 Editing evaluate action using saved console value... 141 Enabling auto-continue... 142 143 Triggering breakpoint... 144 PASS: Should execute breakpoint action. 145 PASS: Should not pause. 146 147 Adding saved console value '4'... 148 Editing evaluate action using saved console value... 149 150 Triggering breakpoint... 151 PASS: Should execute breakpoint action. 152 PASS: Should not pause. 153 -
trunk/LayoutTests/inspector/debugger/setPauseOnMicrotasks-expected.txt
r266534 r269023 36 36 37 37 Setting condition to 'true'... 38 39 Triggering breakpoint... 40 PASS: Should pause. 41 42 Triggering breakpoint... 43 PASS: Should pause. 44 45 -- Running test case: Debugger.setPauseOnMicrotasks.Options.Condition.ConsoleCommandLineAPI 46 Adding saved console value 'false'... 47 48 Setting condition to saved console value... 49 50 Triggering breakpoint... 51 PASS: Should not pause. 52 53 Triggering breakpoint... 54 PASS: Should not pause. 55 56 Adding saved console value 'true'... 57 Setting condition to saved console value... 38 58 39 59 Triggering breakpoint... … … 113 133 PASS: Should not pause. 114 134 135 -- Running test case: Debugger.setPauseOnMicrotasks.Options.Actions.Evaluate.ConsoleCommandLineAPI 136 Adding saved console value '1'... 137 138 Adding evaluate action using saved console value... 139 140 Triggering breakpoint... 141 PASS: Should execute breakpoint action. 142 PASS: Should pause. 143 144 Adding saved console value '2'... 145 Editing evaluate action using saved console value... 146 147 Triggering breakpoint... 148 PASS: Should execute breakpoint action. 149 PASS: Should pause. 150 151 Adding saved console value '3'... 152 Editing evaluate action using saved console value... 153 Enabling auto-continue... 154 155 Triggering breakpoint... 156 PASS: Should execute breakpoint action. 157 PASS: Should not pause. 158 159 Adding saved console value '4'... 160 Editing evaluate action using saved console value... 161 162 Triggering breakpoint... 163 PASS: Should execute breakpoint action. 164 PASS: Should not pause. 165 -
trunk/LayoutTests/inspector/dom-debugger/attribute-modified-style-expected.txt
r266669 r269023 91 91 PASS: Should pause. 92 92 93 -- Running test case: DOMBreakpoint.AttributeModified.Style.Options.Condition.ConsoleCommandLineAPI 94 Adding saved console value 'false'... 95 Adding "attribute-modified:1,HTML,1,BODY,1,DIV" DOM Breakpoint... 96 97 Setting condition to saved console value... 98 99 Triggering breakpoint... 100 PASS: Should not pause. 101 102 Triggering breakpoint... 103 PASS: Should not pause. 104 105 Adding saved console value 'true'... 106 Setting condition to saved console value... 107 108 Triggering breakpoint... 109 PASS: Should pause. 110 111 Triggering breakpoint... 112 PASS: Should pause. 113 93 114 -- Running test case: DOMBreakpoint.AttributeModified.Style.Options.IgnoreCount 94 115 Adding "attribute-modified:1,HTML,1,BODY,1,DIV" DOM Breakpoint... … … 164 185 PASS: Should not pause. 165 186 187 -- Running test case: DOMBreakpoint.AttributeModified.Style.Options.Actions.Evaluate.ConsoleCommandLineAPI 188 Adding saved console value '1'... 189 Adding "attribute-modified:1,HTML,1,BODY,1,DIV" DOM Breakpoint... 190 191 Adding evaluate action using saved console value... 192 193 Triggering breakpoint... 194 PASS: Should execute breakpoint action. 195 PASS: Should pause. 196 197 Adding saved console value '2'... 198 Editing evaluate action using saved console value... 199 200 Triggering breakpoint... 201 PASS: Should execute breakpoint action. 202 PASS: Should pause. 203 204 Adding saved console value '3'... 205 Editing evaluate action using saved console value... 206 Enabling auto-continue... 207 208 Triggering breakpoint... 209 PASS: Should execute breakpoint action. 210 PASS: Should not pause. 211 212 Adding saved console value '4'... 213 Editing evaluate action using saved console value... 214 215 Triggering breakpoint... 216 PASS: Should execute breakpoint action. 217 PASS: Should not pause. 218 -
trunk/LayoutTests/inspector/dom-debugger/dom-breakpoint-attribute-modified-expected.txt
r266669 r269023 52 52 53 53 Setting condition to 'true'... 54 55 Triggering breakpoint... 56 PASS: Should pause. 57 58 Triggering breakpoint... 59 PASS: Should pause. 60 61 -- Running test case: DOMBreakpoint.AttributeModified.Options.Condition.ConsoleCommandLineAPI 62 Adding saved console value 'false'... 63 Adding "attribute-modified:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 64 65 Setting condition to saved console value... 66 67 Triggering breakpoint... 68 PASS: Should not pause. 69 70 Triggering breakpoint... 71 PASS: Should not pause. 72 73 Adding saved console value 'true'... 74 Setting condition to saved console value... 54 75 55 76 Triggering breakpoint... … … 132 153 PASS: Should not pause. 133 154 155 -- Running test case: DOMBreakpoint.AttributeModified.Options.Actions.Evaluate.ConsoleCommandLineAPI 156 Adding saved console value '1'... 157 Adding "attribute-modified:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 158 159 Adding evaluate action using saved console value... 160 161 Triggering breakpoint... 162 PASS: Should execute breakpoint action. 163 PASS: Should pause. 164 165 Adding saved console value '2'... 166 Editing evaluate action using saved console value... 167 168 Triggering breakpoint... 169 PASS: Should execute breakpoint action. 170 PASS: Should pause. 171 172 Adding saved console value '3'... 173 Editing evaluate action using saved console value... 174 Enabling auto-continue... 175 176 Triggering breakpoint... 177 PASS: Should execute breakpoint action. 178 PASS: Should not pause. 179 180 Adding saved console value '4'... 181 Editing evaluate action using saved console value... 182 183 Triggering breakpoint... 184 PASS: Should execute breakpoint action. 185 PASS: Should not pause. 186 -
trunk/LayoutTests/inspector/dom-debugger/dom-breakpoint-node-removed-ancestor-expected.txt
r266669 r269023 53 53 54 54 Setting condition to 'true'... 55 56 Triggering breakpoint... 57 PASS: Should pause. 58 59 Triggering breakpoint... 60 PASS: Should pause. 61 62 -- Running test case: DOMBreakpoint.NodeRemoved.Ancestor.Options.Condition.ConsoleCommandLineAPI 63 Adding saved console value 'false'... 64 Adding "node-removed:1,HTML,1,BODY,1,DIV,0,DIV,0,DIV" DOM Breakpoint... 65 66 Setting condition to saved console value... 67 68 Triggering breakpoint... 69 PASS: Should not pause. 70 71 Triggering breakpoint... 72 PASS: Should not pause. 73 74 Adding saved console value 'true'... 75 Setting condition to saved console value... 55 76 56 77 Triggering breakpoint... … … 116 137 PASS: Should not pause. 117 138 139 -- Running test case: DOMBreakpoint.NodeRemoved.Ancestor.Options.Actions.Evaluate.ConsoleCommandLineAPI 140 Adding saved console value '1'... 141 Adding "node-removed:1,HTML,1,BODY,1,DIV,0,DIV,0,DIV" DOM Breakpoint... 142 143 Adding evaluate action using saved console value... 144 145 Triggering breakpoint... 146 PASS: Should execute breakpoint action. 147 PASS: Should pause. 148 149 Adding saved console value '2'... 150 Editing evaluate action using saved console value... 151 152 Triggering breakpoint... 153 PASS: Should execute breakpoint action. 154 PASS: Should pause. 155 156 Adding saved console value '3'... 157 Editing evaluate action using saved console value... 158 Enabling auto-continue... 159 160 Triggering breakpoint... 161 PASS: Should execute breakpoint action. 162 PASS: Should not pause. 163 164 Adding saved console value '4'... 165 Editing evaluate action using saved console value... 166 167 Triggering breakpoint... 168 PASS: Should execute breakpoint action. 169 PASS: Should not pause. 170 -
trunk/LayoutTests/inspector/dom-debugger/dom-breakpoint-node-removed-direct-expected.txt
r266669 r269023 52 52 53 53 Setting condition to 'true'... 54 55 Triggering breakpoint... 56 PASS: Should pause. 57 58 Triggering breakpoint... 59 PASS: Should pause. 60 61 -- Running test case: DOMBreakpoint.NodeRemoved.Direct.Options.Condition.ConsoleCommandLineAPI 62 Adding saved console value 'false'... 63 Adding "node-removed:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 64 65 Setting condition to saved console value... 66 67 Triggering breakpoint... 68 PASS: Should not pause. 69 70 Triggering breakpoint... 71 PASS: Should not pause. 72 73 Adding saved console value 'true'... 74 Setting condition to saved console value... 54 75 55 76 Triggering breakpoint... … … 115 136 PASS: Should not pause. 116 137 138 -- Running test case: DOMBreakpoint.NodeRemoved.Direct.Options.Actions.Evaluate.ConsoleCommandLineAPI 139 Adding saved console value '1'... 140 Adding "node-removed:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 141 142 Adding evaluate action using saved console value... 143 144 Triggering breakpoint... 145 PASS: Should execute breakpoint action. 146 PASS: Should pause. 147 148 Adding saved console value '2'... 149 Editing evaluate action using saved console value... 150 151 Triggering breakpoint... 152 PASS: Should execute breakpoint action. 153 PASS: Should pause. 154 155 Adding saved console value '3'... 156 Editing evaluate action using saved console value... 157 Enabling auto-continue... 158 159 Triggering breakpoint... 160 PASS: Should execute breakpoint action. 161 PASS: Should not pause. 162 163 Adding saved console value '4'... 164 Editing evaluate action using saved console value... 165 166 Triggering breakpoint... 167 PASS: Should execute breakpoint action. 168 PASS: Should not pause. 169 -
trunk/LayoutTests/inspector/dom-debugger/dom-breakpoint-subtree-modified-add-expected.txt
r266669 r269023 53 53 54 54 Setting condition to 'true'... 55 56 Triggering breakpoint... 57 PASS: Should pause. 58 59 Triggering breakpoint... 60 PASS: Should pause. 61 62 -- Running test case: DOMBreakpoint.SubtreeModified.Add.Options.Condition.ConsoleCommandLineAPI 63 Adding saved console value 'false'... 64 Adding "subtree-modified:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 65 66 Setting condition to saved console value... 67 68 Triggering breakpoint... 69 PASS: Should not pause. 70 71 Triggering breakpoint... 72 PASS: Should not pause. 73 74 Adding saved console value 'true'... 75 Setting condition to saved console value... 55 76 56 77 Triggering breakpoint... … … 133 154 PASS: Should not pause. 134 155 156 -- Running test case: DOMBreakpoint.SubtreeModified.Add.Options.Actions.Evaluate.ConsoleCommandLineAPI 157 Adding saved console value '1'... 158 Adding "subtree-modified:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 159 160 Adding evaluate action using saved console value... 161 162 Triggering breakpoint... 163 PASS: Should execute breakpoint action. 164 PASS: Should pause. 165 166 Adding saved console value '2'... 167 Editing evaluate action using saved console value... 168 169 Triggering breakpoint... 170 PASS: Should execute breakpoint action. 171 PASS: Should pause. 172 173 Adding saved console value '3'... 174 Editing evaluate action using saved console value... 175 Enabling auto-continue... 176 177 Triggering breakpoint... 178 PASS: Should execute breakpoint action. 179 PASS: Should not pause. 180 181 Adding saved console value '4'... 182 Editing evaluate action using saved console value... 183 184 Triggering breakpoint... 185 PASS: Should execute breakpoint action. 186 PASS: Should not pause. 187 -
trunk/LayoutTests/inspector/dom-debugger/dom-breakpoint-subtree-modified-remove-expected.txt
r266669 r269023 53 53 54 54 Setting condition to 'true'... 55 56 Triggering breakpoint... 57 PASS: Should pause. 58 59 Triggering breakpoint... 60 PASS: Should pause. 61 62 -- Running test case: DOMBreakpoint.SubtreeModified.Remove.Options.Condition.ConsoleCommandLineAPI 63 Adding saved console value 'false'... 64 Adding "subtree-modified:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 65 66 Setting condition to saved console value... 67 68 Triggering breakpoint... 69 PASS: Should not pause. 70 71 Triggering breakpoint... 72 PASS: Should not pause. 73 74 Adding saved console value 'true'... 75 Setting condition to saved console value... 55 76 56 77 Triggering breakpoint... … … 133 154 PASS: Should not pause. 134 155 156 -- Running test case: DOMBreakpoint.SubtreeModified.Remove.Options.Actions.Evaluate.ConsoleCommandLineAPI 157 Adding saved console value '1'... 158 Adding "subtree-modified:1,HTML,1,BODY,1,DIV,0,DIV" DOM Breakpoint... 159 160 Adding evaluate action using saved console value... 161 162 Triggering breakpoint... 163 PASS: Should execute breakpoint action. 164 PASS: Should pause. 165 166 Adding saved console value '2'... 167 Editing evaluate action using saved console value... 168 169 Triggering breakpoint... 170 PASS: Should execute breakpoint action. 171 PASS: Should pause. 172 173 Adding saved console value '3'... 174 Editing evaluate action using saved console value... 175 Enabling auto-continue... 176 177 Triggering breakpoint... 178 PASS: Should execute breakpoint action. 179 PASS: Should not pause. 180 181 Adding saved console value '4'... 182 Editing evaluate action using saved console value... 183 184 Triggering breakpoint... 185 PASS: Should execute breakpoint action. 186 PASS: Should not pause. 187 -
trunk/LayoutTests/inspector/dom-debugger/event-animation-frame-breakpoints-expected.txt
r266538 r269023 58 58 59 59 Setting condition to 'true'... 60 61 Triggering breakpoint... 62 PASS: Should pause. 63 64 Triggering breakpoint... 65 PASS: Should pause. 66 67 -- Running test case: DOMDebugger.Event.AnimationFrame.Options.Condition.ConsoleCommandLineAPI 68 Adding saved console value 'false'... 69 Creating "animation-frame" Event Breakpoint... 70 Adding "animation-frame" Event Breakpoint... 71 72 Setting condition to saved console value... 73 74 Triggering breakpoint... 75 PASS: Should not pause. 76 77 Triggering breakpoint... 78 PASS: Should not pause. 79 80 Adding saved console value 'true'... 81 Setting condition to saved console value... 60 82 61 83 Triggering breakpoint... … … 141 163 PASS: Should not pause. 142 164 165 -- Running test case: DOMDebugger.Event.AnimationFrame.Options.Actions.Evaluate.ConsoleCommandLineAPI 166 Adding saved console value '1'... 167 Creating "animation-frame" Event Breakpoint... 168 Adding "animation-frame" Event Breakpoint... 169 170 Adding evaluate action using saved console value... 171 172 Triggering breakpoint... 173 PASS: Should execute breakpoint action. 174 PASS: Should pause. 175 176 Adding saved console value '2'... 177 Editing evaluate action using saved console value... 178 179 Triggering breakpoint... 180 PASS: Should execute breakpoint action. 181 PASS: Should pause. 182 183 Adding saved console value '3'... 184 Editing evaluate action using saved console value... 185 Enabling auto-continue... 186 187 Triggering breakpoint... 188 PASS: Should execute breakpoint action. 189 PASS: Should not pause. 190 191 Adding saved console value '4'... 192 Editing evaluate action using saved console value... 193 194 Triggering breakpoint... 195 PASS: Should execute breakpoint action. 196 PASS: Should not pause. 197 -
trunk/LayoutTests/inspector/dom-debugger/event-interval-breakpoints-expected.txt
r266538 r269023 85 85 PASS: Should pause. 86 86 87 -- Running test case: DOMDebugger.Event.Interval.Options.Condition.ConsoleCommandLineAPI 88 Adding saved console value 'false'... 89 Creating "interval" Event Breakpoint... 90 Adding "interval" Event Breakpoint... 91 92 Setting condition to saved console value... 93 94 Triggering breakpoint... 95 PASS: Should not pause. 96 97 Triggering breakpoint... 98 PASS: Should not pause. 99 100 Adding saved console value 'true'... 101 Setting condition to saved console value... 102 103 Triggering breakpoint... 104 PASS: Should pause. 105 106 Triggering breakpoint... 107 PASS: Should pause. 108 87 109 -- Running test case: DOMDebugger.Event.Interval.Options.IgnoreCount 88 110 Creating "interval" Event Breakpoint... … … 161 183 PASS: Should not pause. 162 184 185 -- Running test case: DOMDebugger.Event.Interval.Options.Actions.Evaluate.ConsoleCommandLineAPI 186 Adding saved console value '1'... 187 Creating "interval" Event Breakpoint... 188 Adding "interval" Event Breakpoint... 189 190 Adding evaluate action using saved console value... 191 192 Triggering breakpoint... 193 PASS: Should execute breakpoint action. 194 PASS: Should pause. 195 196 Adding saved console value '2'... 197 Editing evaluate action using saved console value... 198 199 Triggering breakpoint... 200 PASS: Should execute breakpoint action. 201 PASS: Should pause. 202 203 Adding saved console value '3'... 204 Editing evaluate action using saved console value... 205 Enabling auto-continue... 206 207 Triggering breakpoint... 208 PASS: Should execute breakpoint action. 209 PASS: Should not pause. 210 211 Adding saved console value '4'... 212 Editing evaluate action using saved console value... 213 214 Triggering breakpoint... 215 PASS: Should execute breakpoint action. 216 PASS: Should not pause. 217 -
trunk/LayoutTests/inspector/dom-debugger/event-listener-breakpoints-expected.txt
r266538 r269023 147 147 PASS: Should pause. 148 148 149 -- Running test case: DOMDebugger.Event.Listener.Options.Condition.ConsoleCommandLineAPI 150 Adding saved console value 'false'... 151 Creating "click" Event Breakpoint... 152 Adding "listener:click" Event Breakpoint... 153 154 Setting condition to saved console value... 155 156 Triggering breakpoint... 157 PASS: Should not pause. 158 159 Triggering breakpoint... 160 PASS: Should not pause. 161 162 Adding saved console value 'true'... 163 Setting condition to saved console value... 164 165 Triggering breakpoint... 166 PASS: Should pause. 167 168 Triggering breakpoint... 169 PASS: Should pause. 170 149 171 -- Running test case: DOMDebugger.Event.Listener.Options.IgnoreCount 150 172 Creating "click" Event Breakpoint... … … 223 245 PASS: Should not pause. 224 246 247 -- Running test case: DOMDebugger.Event.Listener.Options.Actions.Evaluate.ConsoleCommandLineAPI 248 Adding saved console value '1'... 249 Creating "click" Event Breakpoint... 250 Adding "listener:click" Event Breakpoint... 251 252 Adding evaluate action using saved console value... 253 254 Triggering breakpoint... 255 PASS: Should execute breakpoint action. 256 PASS: Should pause. 257 258 Adding saved console value '2'... 259 Editing evaluate action using saved console value... 260 261 Triggering breakpoint... 262 PASS: Should execute breakpoint action. 263 PASS: Should pause. 264 265 Adding saved console value '3'... 266 Editing evaluate action using saved console value... 267 Enabling auto-continue... 268 269 Triggering breakpoint... 270 PASS: Should execute breakpoint action. 271 PASS: Should not pause. 272 273 Adding saved console value '4'... 274 Editing evaluate action using saved console value... 275 276 Triggering breakpoint... 277 PASS: Should execute breakpoint action. 278 PASS: Should not pause. 279 -
trunk/LayoutTests/inspector/dom-debugger/event-timeout-breakpoints-expected.txt
r266538 r269023 58 58 59 59 Setting condition to 'true'... 60 61 Triggering breakpoint... 62 PASS: Should pause. 63 64 Triggering breakpoint... 65 PASS: Should pause. 66 67 -- Running test case: DOMDebugger.Event.Timer.Options.Condition.ConsoleCommandLineAPI 68 Adding saved console value 'false'... 69 Creating "timeout" Event Breakpoint... 70 Adding "timeout" Event Breakpoint... 71 72 Setting condition to saved console value... 73 74 Triggering breakpoint... 75 PASS: Should not pause. 76 77 Triggering breakpoint... 78 PASS: Should not pause. 79 80 Adding saved console value 'true'... 81 Setting condition to saved console value... 60 82 61 83 Triggering breakpoint... … … 141 163 PASS: Should not pause. 142 164 165 -- Running test case: DOMDebugger.Event.Timer.Options.Actions.Evaluate.ConsoleCommandLineAPI 166 Adding saved console value '1'... 167 Creating "timeout" Event Breakpoint... 168 Adding "timeout" Event Breakpoint... 169 170 Adding evaluate action using saved console value... 171 172 Triggering breakpoint... 173 PASS: Should execute breakpoint action. 174 PASS: Should pause. 175 176 Adding saved console value '2'... 177 Editing evaluate action using saved console value... 178 179 Triggering breakpoint... 180 PASS: Should execute breakpoint action. 181 PASS: Should pause. 182 183 Adding saved console value '3'... 184 Editing evaluate action using saved console value... 185 Enabling auto-continue... 186 187 Triggering breakpoint... 188 PASS: Should execute breakpoint action. 189 PASS: Should not pause. 190 191 Adding saved console value '4'... 192 Editing evaluate action using saved console value... 193 194 Triggering breakpoint... 195 PASS: Should execute breakpoint action. 196 PASS: Should not pause. 197 -
trunk/LayoutTests/inspector/dom-debugger/url-breakpoints-all-requests-expected.txt
r266538 r269023 45 45 PASS: Should pause. 46 46 47 -- Running test case: URLBreakpoint.BreakOnAll.Fetch.Options.Condition.ConsoleCommandLineAPI 48 Adding saved console value 'false'... 49 Adding All Requests URL Breakpoint... 50 51 Setting condition to saved console value... 52 53 Triggering breakpoint... 54 Request Fetch "resources/dataFetch.json"... 55 PASS: Should not pause. 56 57 Triggering breakpoint... 58 Request Fetch "resources/dataFetch.json"... 59 PASS: Should not pause. 60 61 Adding saved console value 'true'... 62 Setting condition to saved console value... 63 64 Triggering breakpoint... 65 Request Fetch "resources/dataFetch.json"... 66 PASS: Should pause. 67 68 Triggering breakpoint... 69 Request Fetch "resources/dataFetch.json"... 70 PASS: Should pause. 71 47 72 -- Running test case: URLBreakpoint.BreakOnAll.Fetch.Options.IgnoreCount 48 73 Adding All Requests URL Breakpoint... … … 124 149 125 150 Editing evaluate action... 151 152 Triggering breakpoint... 153 Request Fetch "resources/dataFetch.json"... 154 PASS: Should execute breakpoint action. 155 PASS: Should not pause. 156 157 -- Running test case: URLBreakpoint.BreakOnAll.Fetch.Options.Actions.Evaluate.ConsoleCommandLineAPI 158 Adding saved console value '1'... 159 Adding All Requests URL Breakpoint... 160 161 Adding evaluate action using saved console value... 162 163 Triggering breakpoint... 164 Request Fetch "resources/dataFetch.json"... 165 PASS: Should execute breakpoint action. 166 PASS: Should pause. 167 168 Adding saved console value '2'... 169 Editing evaluate action using saved console value... 170 171 Triggering breakpoint... 172 Request Fetch "resources/dataFetch.json"... 173 PASS: Should execute breakpoint action. 174 PASS: Should pause. 175 176 Adding saved console value '3'... 177 Editing evaluate action using saved console value... 178 Enabling auto-continue... 179 180 Triggering breakpoint... 181 Request Fetch "resources/dataFetch.json"... 182 PASS: Should execute breakpoint action. 183 PASS: Should not pause. 184 185 Adding saved console value '4'... 186 Editing evaluate action using saved console value... 126 187 127 188 Triggering breakpoint... … … 164 225 PASS: Should pause. 165 226 227 -- Running test case: URLBreakpoint.BreakOnAll.XHR.Options.Condition.ConsoleCommandLineAPI 228 Adding saved console value 'false'... 229 Adding All Requests URL Breakpoint... 230 231 Setting condition to saved console value... 232 233 Triggering breakpoint... 234 Request XHR "resources/dataXHR.json"... 235 PASS: Should not pause. 236 237 Triggering breakpoint... 238 Request XHR "resources/dataXHR.json"... 239 PASS: Should not pause. 240 241 Adding saved console value 'true'... 242 Setting condition to saved console value... 243 244 Triggering breakpoint... 245 Request XHR "resources/dataXHR.json"... 246 PASS: Should pause. 247 248 Triggering breakpoint... 249 Request XHR "resources/dataXHR.json"... 250 PASS: Should pause. 251 166 252 -- Running test case: URLBreakpoint.BreakOnAll.XHR.Options.IgnoreCount 167 253 Adding All Requests URL Breakpoint... … … 249 335 PASS: Should not pause. 250 336 337 -- Running test case: URLBreakpoint.BreakOnAll.XHR.Options.Actions.Evaluate.ConsoleCommandLineAPI 338 Adding saved console value '1'... 339 Adding All Requests URL Breakpoint... 340 341 Adding evaluate action using saved console value... 342 343 Triggering breakpoint... 344 Request XHR "resources/dataXHR.json"... 345 PASS: Should execute breakpoint action. 346 PASS: Should pause. 347 348 Adding saved console value '2'... 349 Editing evaluate action using saved console value... 350 351 Triggering breakpoint... 352 Request XHR "resources/dataXHR.json"... 353 PASS: Should execute breakpoint action. 354 PASS: Should pause. 355 356 Adding saved console value '3'... 357 Editing evaluate action using saved console value... 358 Enabling auto-continue... 359 360 Triggering breakpoint... 361 Request XHR "resources/dataXHR.json"... 362 PASS: Should execute breakpoint action. 363 PASS: Should not pause. 364 365 Adding saved console value '4'... 366 Editing evaluate action using saved console value... 367 368 Triggering breakpoint... 369 Request XHR "resources/dataXHR.json"... 370 PASS: Should execute breakpoint action. 371 PASS: Should not pause. 372 -
trunk/LayoutTests/inspector/dom-debugger/url-breakpoints-containing-expected.txt
r266538 r269023 45 45 PASS: Should pause. 46 46 47 -- Running test case: URLBreakpoint.BreakOnContainingText.Fetch.Options.Condition.ConsoleCommandLineAPI 48 Adding saved console value 'false'... 49 Adding "text:data" URL Breakpoint... 50 51 Setting condition to saved console value... 52 53 Triggering breakpoint... 54 Request Fetch "resources/dataFetch.json"... 55 PASS: Should not pause. 56 57 Triggering breakpoint... 58 Request Fetch "resources/dataFetch.json"... 59 PASS: Should not pause. 60 61 Adding saved console value 'true'... 62 Setting condition to saved console value... 63 64 Triggering breakpoint... 65 Request Fetch "resources/dataFetch.json"... 66 PASS: Should pause. 67 68 Triggering breakpoint... 69 Request Fetch "resources/dataFetch.json"... 70 PASS: Should pause. 71 47 72 -- Running test case: URLBreakpoint.BreakOnContainingText.Fetch.Options.IgnoreCount 48 73 Adding "text:data" URL Breakpoint... … … 124 149 125 150 Editing evaluate action... 151 152 Triggering breakpoint... 153 Request Fetch "resources/dataFetch.json"... 154 PASS: Should execute breakpoint action. 155 PASS: Should not pause. 156 157 -- Running test case: URLBreakpoint.BreakOnContainingText.Fetch.Options.Actions.Evaluate.ConsoleCommandLineAPI 158 Adding saved console value '1'... 159 Adding "text:data" URL Breakpoint... 160 161 Adding evaluate action using saved console value... 162 163 Triggering breakpoint... 164 Request Fetch "resources/dataFetch.json"... 165 PASS: Should execute breakpoint action. 166 PASS: Should pause. 167 168 Adding saved console value '2'... 169 Editing evaluate action using saved console value... 170 171 Triggering breakpoint... 172 Request Fetch "resources/dataFetch.json"... 173 PASS: Should execute breakpoint action. 174 PASS: Should pause. 175 176 Adding saved console value '3'... 177 Editing evaluate action using saved console value... 178 Enabling auto-continue... 179 180 Triggering breakpoint... 181 Request Fetch "resources/dataFetch.json"... 182 PASS: Should execute breakpoint action. 183 PASS: Should not pause. 184 185 Adding saved console value '4'... 186 Editing evaluate action using saved console value... 126 187 127 188 Triggering breakpoint... … … 164 225 PASS: Should pause. 165 226 227 -- Running test case: URLBreakpoint.BreakOnContainingText.XHR.Options.Condition.ConsoleCommandLineAPI 228 Adding saved console value 'false'... 229 Adding "text:data" URL Breakpoint... 230 231 Setting condition to saved console value... 232 233 Triggering breakpoint... 234 Request XHR "resources/dataXHR.json"... 235 PASS: Should not pause. 236 237 Triggering breakpoint... 238 Request XHR "resources/dataXHR.json"... 239 PASS: Should not pause. 240 241 Adding saved console value 'true'... 242 Setting condition to saved console value... 243 244 Triggering breakpoint... 245 Request XHR "resources/dataXHR.json"... 246 PASS: Should pause. 247 248 Triggering breakpoint... 249 Request XHR "resources/dataXHR.json"... 250 PASS: Should pause. 251 166 252 -- Running test case: URLBreakpoint.BreakOnContainingText.XHR.Options.IgnoreCount 167 253 Adding "text:data" URL Breakpoint... … … 249 335 PASS: Should not pause. 250 336 337 -- Running test case: URLBreakpoint.BreakOnContainingText.XHR.Options.Actions.Evaluate.ConsoleCommandLineAPI 338 Adding saved console value '1'... 339 Adding "text:data" URL Breakpoint... 340 341 Adding evaluate action using saved console value... 342 343 Triggering breakpoint... 344 Request XHR "resources/dataXHR.json"... 345 PASS: Should execute breakpoint action. 346 PASS: Should pause. 347 348 Adding saved console value '2'... 349 Editing evaluate action using saved console value... 350 351 Triggering breakpoint... 352 Request XHR "resources/dataXHR.json"... 353 PASS: Should execute breakpoint action. 354 PASS: Should pause. 355 356 Adding saved console value '3'... 357 Editing evaluate action using saved console value... 358 Enabling auto-continue... 359 360 Triggering breakpoint... 361 Request XHR "resources/dataXHR.json"... 362 PASS: Should execute breakpoint action. 363 PASS: Should not pause. 364 365 Adding saved console value '4'... 366 Editing evaluate action using saved console value... 367 368 Triggering breakpoint... 369 Request XHR "resources/dataXHR.json"... 370 PASS: Should execute breakpoint action. 371 PASS: Should not pause. 372 -
trunk/LayoutTests/inspector/dom-debugger/url-breakpoints-matching-expected.txt
r266538 r269023 45 45 PASS: Should pause. 46 46 47 -- Running test case: URLBreakpoint.BreakOnMatchingRegularExpression.Fetch.Options.Condition.ConsoleCommandLineAPI 48 Adding saved console value 'false'... 49 Adding "regex:data[A-Z]*.(json|txt|png)" URL Breakpoint... 50 51 Setting condition to saved console value... 52 53 Triggering breakpoint... 54 Request Fetch "resources/dataFetch.json"... 55 PASS: Should not pause. 56 57 Triggering breakpoint... 58 Request Fetch "resources/dataFetch.json"... 59 PASS: Should not pause. 60 61 Adding saved console value 'true'... 62 Setting condition to saved console value... 63 64 Triggering breakpoint... 65 Request Fetch "resources/dataFetch.json"... 66 PASS: Should pause. 67 68 Triggering breakpoint... 69 Request Fetch "resources/dataFetch.json"... 70 PASS: Should pause. 71 47 72 -- Running test case: URLBreakpoint.BreakOnMatchingRegularExpression.Fetch.Options.IgnoreCount 48 73 Adding "regex:data[A-Z]*.(json|txt|png)" URL Breakpoint... … … 124 149 125 150 Editing evaluate action... 151 152 Triggering breakpoint... 153 Request Fetch "resources/dataFetch.json"... 154 PASS: Should execute breakpoint action. 155 PASS: Should not pause. 156 157 -- Running test case: URLBreakpoint.BreakOnMatchingRegularExpression.Fetch.Options.Actions.Evaluate.ConsoleCommandLineAPI 158 Adding saved console value '1'... 159 Adding "regex:data[A-Z]*.(json|txt|png)" URL Breakpoint... 160 161 Adding evaluate action using saved console value... 162 163 Triggering breakpoint... 164 Request Fetch "resources/dataFetch.json"... 165 PASS: Should execute breakpoint action. 166 PASS: Should pause. 167 168 Adding saved console value '2'... 169 Editing evaluate action using saved console value... 170 171 Triggering breakpoint... 172 Request Fetch "resources/dataFetch.json"... 173 PASS: Should execute breakpoint action. 174 PASS: Should pause. 175 176 Adding saved console value '3'... 177 Editing evaluate action using saved console value... 178 Enabling auto-continue... 179 180 Triggering breakpoint... 181 Request Fetch "resources/dataFetch.json"... 182 PASS: Should execute breakpoint action. 183 PASS: Should not pause. 184 185 Adding saved console value '4'... 186 Editing evaluate action using saved console value... 126 187 127 188 Triggering breakpoint... … … 164 225 PASS: Should pause. 165 226 227 -- Running test case: URLBreakpoint.BreakOnMatchingRegularExpression.XHR.Options.Condition.ConsoleCommandLineAPI 228 Adding saved console value 'false'... 229 Adding "regex:data[A-Z]*.(json|txt|png)" URL Breakpoint... 230 231 Setting condition to saved console value... 232 233 Triggering breakpoint... 234 Request XHR "resources/dataXHR.json"... 235 PASS: Should not pause. 236 237 Triggering breakpoint... 238 Request XHR "resources/dataXHR.json"... 239 PASS: Should not pause. 240 241 Adding saved console value 'true'... 242 Setting condition to saved console value... 243 244 Triggering breakpoint... 245 Request XHR "resources/dataXHR.json"... 246 PASS: Should pause. 247 248 Triggering breakpoint... 249 Request XHR "resources/dataXHR.json"... 250 PASS: Should pause. 251 166 252 -- Running test case: URLBreakpoint.BreakOnMatchingRegularExpression.XHR.Options.IgnoreCount 167 253 Adding "regex:data[A-Z]*.(json|txt|png)" URL Breakpoint... … … 249 335 PASS: Should not pause. 250 336 337 -- Running test case: URLBreakpoint.BreakOnMatchingRegularExpression.XHR.Options.Actions.Evaluate.ConsoleCommandLineAPI 338 Adding saved console value '1'... 339 Adding "regex:data[A-Z]*.(json|txt|png)" URL Breakpoint... 340 341 Adding evaluate action using saved console value... 342 343 Triggering breakpoint... 344 Request XHR "resources/dataXHR.json"... 345 PASS: Should execute breakpoint action. 346 PASS: Should pause. 347 348 Adding saved console value '2'... 349 Editing evaluate action using saved console value... 350 351 Triggering breakpoint... 352 Request XHR "resources/dataXHR.json"... 353 PASS: Should execute breakpoint action. 354 PASS: Should pause. 355 356 Adding saved console value '3'... 357 Editing evaluate action using saved console value... 358 Enabling auto-continue... 359 360 Triggering breakpoint... 361 Request XHR "resources/dataXHR.json"... 362 PASS: Should execute breakpoint action. 363 PASS: Should not pause. 364 365 Adding saved console value '4'... 366 Editing evaluate action using saved console value... 367 368 Triggering breakpoint... 369 Request XHR "resources/dataXHR.json"... 370 PASS: Should execute breakpoint action. 371 PASS: Should not pause. 372 -
trunk/Source/JavaScriptCore/ChangeLog
r269020 r269023 1 2020-10-26 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: console command line API should be exposed to breakpoint conditions/actions 4 https://bugs.webkit.org/show_bug.cgi?id=218141 5 <rdar://problem/70636727> 6 7 Reviewed by Brian Burg. 8 9 * debugger/Debugger.h: 10 (JSC::Debugger::Client::scopeExtensionObject): Added. 11 * debugger/Debugger.cpp: 12 (JSC::Debugger::setClient): Added. 13 (JSC::Debugger::evaluateBreakpointCondition): 14 (JSC::Debugger::evaluateBreakpointActions): 15 Introduce an optional `Debugger::Client` virtual class that can be used to adjust behavior 16 in various situations. Right now it is used when evaluating breakpoint conditions/actions 17 to get a scope extension object. 18 19 * inspector/agents/InspectorDebuggerAgent.h: 20 * inspector/agents/InspectorDebuggerAgent.cpp: 21 (Inspector::InspectorDebuggerAgent::internalEnable): 22 (Inspector::InspectorDebuggerAgent::internalDisable): 23 (Inspector::InspectorDebuggerAgent::scopeExtensionObject): Added. 24 Implement `Debugger::Client` and provide a newly created `CommandLineAPI` instance. 25 26 * inspector/InjectedScript.h: 27 * inspector/InjectedScript.cpp: 28 (Inspector::InjectedScript::createCommandLineAPIObject const): Added. 29 * inspector/InjectedScriptSource.js: 30 (let.InjectedScript.prototype.createCommandLineAPIObject): Added. 31 (let.InjectedScript.prototype._evaluateOn): 32 Expose a way for the C++ to create `CommandLineAPI` instances. 33 1 34 2020-10-15 Tadeu Zagallo <tzagallo@apple.com> 2 35 -
trunk/Source/JavaScriptCore/debugger/Debugger.cpp
r266534 r269023 238 238 } 239 239 240 void Debugger::setClient(Client* client) 241 { 242 ASSERT(!!m_client != !!client); 243 m_client = client; 244 } 245 240 246 void Debugger::addObserver(Observer& observer) 241 247 { … … 610 616 NakedPtr<Exception> exception; 611 617 DebuggerCallFrame& debuggerCallFrame = currentDebuggerCallFrame(); 612 JSObject* scopeExtensionObject = nullptr;618 JSObject* scopeExtensionObject = m_client ? m_client->scopeExtensionObject(*this, globalObject, debuggerCallFrame) : nullptr; 613 619 JSValue result = debuggerCallFrame.evaluateWithScopeExtension(condition, scopeExtensionObject, exception); 614 620 … … 644 650 case Breakpoint::Action::Type::Evaluate: { 645 651 NakedPtr<Exception> exception; 646 JSObject* scopeExtensionObject = nullptr;652 JSObject* scopeExtensionObject = m_client ? m_client->scopeExtensionObject(*this, globalObject, debuggerCallFrame) : nullptr; 647 653 debuggerCallFrame.evaluateWithScopeExtension(action.data, scopeExtensionObject, exception); 648 654 if (exception) … … 659 665 case Breakpoint::Action::Type::Probe: { 660 666 NakedPtr<Exception> exception; 661 JSObject* scopeExtensionObject = nullptr;667 JSObject* scopeExtensionObject = m_client ? m_client->scopeExtensionObject(*this, globalObject, debuggerCallFrame) : nullptr; 662 668 JSValue result = debuggerCallFrame.evaluateWithScopeExtension(action.data, scopeExtensionObject, exception); 663 669 JSC::JSGlobalObject* debuggerGlobalObject = debuggerCallFrame.globalObject(); -
trunk/Source/JavaScriptCore/debugger/Debugger.h
r266534 r269023 141 141 void registerCodeBlock(CodeBlock*); 142 142 143 class Client { 144 public: 145 virtual ~Client() = default; 146 147 virtual JSObject* scopeExtensionObject(Debugger&, JSGlobalObject*, DebuggerCallFrame&) { return nullptr; } 148 }; 149 150 void setClient(Client*); 151 143 152 // FIXME: <https://webkit.org/b/162773> Web Inspector: Simplify Debugger::Script to use SourceProvider 144 153 struct Script { … … 326 335 bool m_dispatchingFunctionToObservers { false }; 327 336 337 Client* m_client { nullptr }; 328 338 ProfilingClient* m_profilingClient { nullptr }; 329 339 -
trunk/Source/JavaScriptCore/inspector/InjectedScript.cpp
r266885 r269023 443 443 } 444 444 445 JSC::JSObject* InjectedScript::createCommandLineAPIObject(JSC::JSValue callFrame) const 446 { 447 ASSERT(!hasNoValue()); 448 Deprecated::ScriptFunctionCall function(injectedScriptObject(), "createCommandLineAPIObject"_s, inspectorEnvironment()->functionCallHandler()); 449 function.appendArgument(callFrame); 450 451 auto callResult = callFunctionWithEvalEnabled(function); 452 ASSERT(callResult); 453 return callResult ? asObject(callResult.value()) : nullptr; 454 } 455 445 456 JSC::JSValue InjectedScript::arrayFromVector(Vector<JSC::JSValue>&& vector) 446 457 { -
trunk/Source/JavaScriptCore/inspector/InjectedScript.h
r266885 r269023 92 92 void releaseObjectGroup(const String& objectGroup); 93 93 94 JSC::JSObject* createCommandLineAPIObject(JSC::JSValue callFrame = { }) const; 95 94 96 private: 95 97 JSC::JSValue arrayFromVector(Vector<JSC::JSValue>&&); -
trunk/Source/JavaScriptCore/inspector/InjectedScriptSource.js
r255675 r269023 410 410 } 411 411 412 createCommandLineAPIObject(callFrame) 413 { 414 return new CommandLineAPI(callFrame || null); 415 } 416 412 417 // CommandLineAPI 413 418 … … 566 571 let commandLineAPI = null; 567 572 if (includeCommandLineAPI) 568 commandLineAPI = new CommandLineAPI(isEvalOnCallFrame ? object : null);573 commandLineAPI = this.createCommandLineAPIObject(isEvalOnCallFrame ? object : null); 569 574 return evalFunction.call(object, expression, commandLineAPI); 570 575 } -
trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.cpp
r268629 r269023 241 241 m_enabled = true; 242 242 243 m_debugger.setClient(this); 243 244 m_debugger.addObserver(*this); 244 245 … … 262 263 listener->debuggerWasDisabled(); 263 264 265 m_debugger.setClient(nullptr); 264 266 m_debugger.removeObserver(*this, isBeingDestroyed); 265 267 … … 1100 1102 1101 1103 return { }; 1104 } 1105 1106 JSC::JSObject* InspectorDebuggerAgent::scopeExtensionObject(JSC::Debugger& debugger, JSC::JSGlobalObject* globalObject, JSC::DebuggerCallFrame& debuggerCallFrame) 1107 { 1108 auto injectedScript = m_injectedScriptManager.injectedScriptFor(globalObject); 1109 ASSERT(!injectedScript.hasNoValue()); 1110 if (injectedScript.hasNoValue()) 1111 return JSC::Debugger::Client::scopeExtensionObject(debugger, globalObject, debuggerCallFrame); 1112 1113 auto* debuggerGlobalObject = debuggerCallFrame.scope()->globalObject(); 1114 auto callFrame = toJS(debuggerGlobalObject, debuggerGlobalObject, JavaScriptCallFrame::create(debuggerCallFrame).ptr()); 1115 return injectedScript.createCommandLineAPIObject(callFrame); 1102 1116 } 1103 1117 -
trunk/Source/JavaScriptCore/inspector/agents/InspectorDebuggerAgent.h
r266885 r269023 50 50 class InjectedScriptManager; 51 51 52 class JS_EXPORT_PRIVATE InspectorDebuggerAgent : public InspectorAgentBase, public DebuggerBackendDispatcherHandler, public JSC::Debugger::Observer { 52 class JS_EXPORT_PRIVATE InspectorDebuggerAgent 53 : public InspectorAgentBase 54 , public DebuggerBackendDispatcherHandler 55 , public JSC::Debugger::Client 56 , public JSC::Debugger::Observer { 53 57 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); 54 58 WTF_MAKE_FAST_ALLOCATED; … … 92 96 Protocol::ErrorStringOr<void> setShouldBlackboxURL(const String& url, bool shouldBlackbox, Optional<bool>&& caseSensitive, Optional<bool>&& isRegex) final; 93 97 98 // JSC::Debugger::Client 99 JSC::JSObject* scopeExtensionObject(JSC::Debugger&, JSC::JSGlobalObject*, JSC::DebuggerCallFrame&) final; 100 94 101 // JSC::Debugger::Observer 95 102 void didParseSource(JSC::SourceID, const JSC::Debugger::Script&) final; -
trunk/Source/WebInspectorUI/ChangeLog
r268982 r269023 1 2020-10-26 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: console command line API should be exposed to breakpoint conditions/actions 4 https://bugs.webkit.org/show_bug.cgi?id=218141 5 <rdar://problem/70636727> 6 7 Reviewed by Brian Burg. 8 9 * UserInterface/Controllers/CodeMirrorCompletionController.js: 10 (WI.CodeMirrorCompletionController): 11 (WI.CodeMirrorCompletionController.prototype.get mode): Added. 12 (WI.CodeMirrorCompletionController.prototype.get delegate): Deleted. 13 * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js: 14 (WI.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded): 15 (WI.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded.shouldExposeEvent): Added. 16 (WI.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded.shouldExposeException): Added. 17 (WI.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded.receivedPropertyNames): 18 Introduce a `Mode` enum that can be fetched by completion providers to adjust functionality. 19 20 * UserInterface/Views/BreakpointPopover.js: 21 (WI.BreakpointPopover.appendContextMenuItems): 22 (WI.BreakpointPopover.prototype.show): 23 (WI.BreakpointPopover.prototype.breakpointActionViewCodeMirrorCompletionControllerMode): Added. 24 (WI.BreakpointPopover.prototype.get codeMirrorCompletionControllerMode): Added. 25 * UserInterface/Views/EventBreakpointPopover.js: 26 (WI.EventBreakpointPopover.prototype.get codeMirrorCompletionControllerMode): Added. 27 * UserInterface/Views/BreakpointActionView.js: 28 (WI.BreakpointActionView.prototype._updateBody): 29 Use a `Mode` that always exposes `$event`/`$exception` depending on the breakpoint type. 30 31 * UserInterface/Views/ConsolePrompt.js: 32 (WI.ConsolePrompt): 33 Use a `Mode` that only exposes `$event`/`$exception` when paused for an event/exeption. 34 35 * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: 36 (WI.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked): 37 Use a `Mode` that always exposes `$event`/`$exception` since watch expressions track values 38 over time, and may therefore not always have an `$event`/`$exception` set. 39 40 * UserInterface/Views/TextEditor.js: 41 (WI.TextEditor): 42 Use the default `Mode` that never exposes `$event`/`$exception`. 43 1 44 2020-10-26 Patrick Angle <pangle@apple.com> 2 45 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/CodeMirrorCompletionController.js
r249185 r269023 26 26 WI.CodeMirrorCompletionController = class CodeMirrorCompletionController extends WI.Object 27 27 { 28 constructor(codeMirror, delegate, stopCharactersRegex) 29 { 28 constructor(mode, codeMirror, delegate, stopCharactersRegex) 29 { 30 console.assert(Object.values(WI.CodeMirrorCompletionController.Mode).includes(mode), mode); 31 console.assert(codeMirror instanceof CodeMirror, codeMirror); 32 30 33 super(); 31 34 32 console.assert(codeMirror); 33 35 this._mode = mode; 34 36 this._codeMirror = codeMirror; 35 37 this._stopCharactersRegex = stopCharactersRegex || null; … … 75 77 // Public 76 78 77 get delegate() 78 { 79 return this._delegate; 80 } 79 get mode() { return this._mode; } 81 80 82 81 addExtendedCompletionProvider(modeName, provider) … … 899 898 }; 900 899 900 WI.CodeMirrorCompletionController.Mode = { 901 Basic: "basic", 902 EventBreakpoint: "event-breakpoint", 903 ExceptionBreakpoint: "exception-breakpoint", 904 FullConsoleCommandLineAPI: "full-console-command-line-api", 905 PausedConsoleCommandLineAPI: "paused-console-command-line-api", 906 }; 907 901 908 WI.CodeMirrorCompletionController.UpdatePromise = { 902 909 Canceled: "code-mirror-completion-controller-canceled", -
trunk/Source/WebInspectorUI/UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js
r251227 r269023 141 141 // but this optimization gives us more of a win. We clear the cache after 30 seconds or when stepping in the 142 142 // debugger to make sure we don't use stale properties in most cases. 143 if (this._last Base === base && this._lastPropertyNames) {143 if (this._lastMode === completionController.mode && this._lastBase === base && this._lastPropertyNames) { 144 144 receivedPropertyNames.call(this, this._lastPropertyNames); 145 145 return; 146 146 } 147 147 148 this._lastMode = completionController.mode; 148 149 this._lastBase = base; 149 150 this._lastPropertyNames = null; … … 279 280 280 281 let target = WI.runtimeManager.activeExecutionContext.target; 281 282 if (WI.debuggerManager.paused) { 283 let targetData = WI.debuggerManager.dataForTarget(target); 284 if (targetData.pauseReason === WI.DebuggerManager.PauseReason.Listener || targetData.pauseReason === WI.DebuggerManager.PauseReason.EventListener) { 285 propertyNames.push("$event"); 286 if (savedResultAlias) 287 propertyNames.push(savedResultAlias + "event"); 288 } else if (targetData.pauseReason === WI.DebuggerManager.PauseReason.Exception) { 289 propertyNames.push("$exception"); 290 if (savedResultAlias) 291 propertyNames.push(savedResultAlias + "exception"); 282 let targetData = WI.debuggerManager.paused ? WI.debuggerManager.dataForTarget(target) : {}; 283 284 function shouldExposeEvent() { 285 switch (completionController.mode) { 286 case WI.CodeMirrorCompletionController.Mode.FullConsoleCommandLineAPI: 287 case WI.CodeMirrorCompletionController.Mode.EventBreakpoint: 288 return true; 289 case WI.CodeMirrorCompletionController.Mode.PausedConsoleCommandLineAPI: 290 return targetData.pauseReason === WI.DebuggerManager.PauseReason.Listener || targetData.pauseReason === WI.DebuggerManager.PauseReason.EventListener; 292 291 } 292 return false; 293 } 294 if (shouldExposeEvent()) { 295 propertyNames.push("$event"); 296 if (savedResultAlias) 297 propertyNames.push(savedResultAlias + "event"); 298 } 299 300 function shouldExposeException() { 301 switch (completionController.mode) { 302 case WI.CodeMirrorCompletionController.Mode.FullConsoleCommandLineAPI: 303 case WI.CodeMirrorCompletionController.Mode.ExceptionBreakpoint: 304 return true; 305 case WI.CodeMirrorCompletionController.Mode.PausedConsoleCommandLineAPI: 306 return targetData.pauseReason === WI.DebuggerManager.PauseReason.Exception; 307 } 308 return false; 309 } 310 if (shouldExposeException()) { 311 propertyNames.push("$exception"); 312 if (savedResultAlias) 313 propertyNames.push(savedResultAlias + "exception"); 293 314 } 294 315 -
trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointActionView.js
r266480 r269023 165 165 this._codeMirrorViewport = {from: null, to: null}; 166 166 167 var completionController = new WI.CodeMirrorCompletionController(this._ codeMirror);167 var completionController = new WI.CodeMirrorCompletionController(this._delegate.breakpointActionViewCodeMirrorCompletionControllerMode(this, this._codeMirror), this._codeMirror); 168 168 completionController.addExtendedCompletionProvider("javascript", WI.javaScriptRuntimeCompletionProvider); 169 169 -
trunk/Source/WebInspectorUI/UserInterface/Views/BreakpointPopover.js
r266534 r269023 56 56 contextMenu.appendItem(WI.UIString("Edit Breakpoint\u2026"), () => { 57 57 const delegate = null; 58 let popover = new WI.BreakpointPopover(delegate, breakpoint); 58 let popover; 59 if (breakpoint instanceof WI.EventBreakpoint) 60 popover = new WI.EventBreakpointPopover(delegate, breakpoint); 61 else if (breakpoint instanceof WI.URLBreakpoint) 62 popover = new WI.URLBreakpointPopover(delegate, breakpoint); 63 else 64 popover = new WI.BreakpointPopover(delegate, breakpoint); 59 65 popover.show(targetElement); 60 66 }); … … 165 171 this._conditionCodeMirror.on("change", this._handleConditionCodeMirrorChange.bind(this)); 166 172 167 let completionController = new WI.CodeMirrorCompletionController(this. _conditionCodeMirror, this);173 let completionController = new WI.CodeMirrorCompletionController(this.codeMirrorCompletionControllerMode, this._conditionCodeMirror, this); 168 174 completionController.addExtendedCompletionProvider("javascript", WI.javaScriptRuntimeCompletionProvider); 169 175 … … 274 280 // BreakpointActionView delegate 275 281 282 breakpointActionViewCodeMirrorCompletionControllerMode(breakpointActionView, codeMirror) 283 { 284 return this.codeMirrorCompletionControllerMode; 285 } 286 276 287 breakpointActionViewAppendActionView(breakpointActionView, newBreakpointAction) 277 288 { … … 309 320 310 321 // Protected 322 323 get codeMirrorCompletionControllerMode() 324 { 325 // Overridden by subclasses if needed. 326 327 if (this._breakpoint === WI.debuggerManager.allExceptionsBreakpoint || this._breakpoint === WI.debuggerManager.uncaughtExceptionsBreakpoint) 328 return WI.CodeMirrorCompletionController.Mode.ExceptionBreakpoint; 329 330 return WI.CodeMirrorCompletionController.Mode.Basic; 331 } 311 332 312 333 populateContent() -
trunk/Source/WebInspectorUI/UserInterface/Views/ConsolePrompt.js
r257396 r269023 57 57 this._codeMirror.addKeyMap(keyMap); 58 58 59 this._completionController = new WI.CodeMirrorCompletionController( this._codeMirror, this);59 this._completionController = new WI.CodeMirrorCompletionController(WI.CodeMirrorCompletionController.Mode.PausedConsoleCommandLineAPI, this._codeMirror, this); 60 60 this._completionController.addExtendedCompletionProvider("javascript", WI.javaScriptRuntimeCompletionProvider); 61 61 -
trunk/Source/WebInspectorUI/UserInterface/Views/EventBreakpointPopover.js
r266480 r269023 62 62 63 63 // Protected 64 65 get codeMirrorCompletionControllerMode() 66 { 67 return WI.CodeMirrorCompletionController.Mode.EventBreakpoint; 68 } 64 69 65 70 populateContent() -
trunk/Source/WebInspectorUI/UserInterface/Views/ScopeChainDetailsSidebarPanel.js
r263115 r269023 380 380 }); 381 381 382 let completionController = new WI.CodeMirrorCompletionController( this._codeMirror);382 let completionController = new WI.CodeMirrorCompletionController(WI.CodeMirrorCompletionController.Mode.FullConsoleCommandLineAPI, this._codeMirror); 383 383 completionController.addExtendedCompletionProvider("javascript", WI.javaScriptRuntimeCompletionProvider); 384 384 -
trunk/Source/WebInspectorUI/UserInterface/Views/TextEditor.js
r260589 r269023 46 46 this._codeMirror.getScrollerElement().addEventListener("click", this._openClickedLinks.bind(this), true); 47 47 48 this._completionController = new WI.CodeMirrorCompletionController( this._codeMirror, this);48 this._completionController = new WI.CodeMirrorCompletionController(WI.CodeMirrorCompletionController.Mode.Basic, this._codeMirror, this); 49 49 this._tokenTrackingController = new WI.CodeMirrorTokenTrackingController(this._codeMirror, this); 50 50
Note: See TracChangeset
for help on using the changeset viewer.