| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 InspectorTest = {}; | 5 InspectorTest = {}; |
| 6 InspectorTest._dispatchTable = new Map(); | 6 InspectorTest._dispatchTable = new Map(); |
| 7 InspectorTest._requestId = 0; | 7 InspectorTest._requestId = 0; |
| 8 InspectorTest._dumpInspectorProtocolMessages = false; | 8 InspectorTest._dumpInspectorProtocolMessages = false; |
| 9 InspectorTest._eventHandler = {}; | 9 InspectorTest._eventHandler = {}; |
| 10 InspectorTest._commandsForLogging = new Set(); | 10 InspectorTest._commandsForLogging = new Set(); |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 utils.setCurrentTimeMSForTest = setCurrentTimeMSForTest; | 50 utils.setCurrentTimeMSForTest = setCurrentTimeMSForTest; |
| 51 this.setCurrentTimeMSForTest = null; | 51 this.setCurrentTimeMSForTest = null; |
| 52 utils.setMemoryInfoForTest = setMemoryInfoForTest; | 52 utils.setMemoryInfoForTest = setMemoryInfoForTest; |
| 53 this.setMemoryInfoForTest = null; | 53 this.setMemoryInfoForTest = null; |
| 54 utils.schedulePauseOnNextStatement = schedulePauseOnNextStatement; | 54 utils.schedulePauseOnNextStatement = schedulePauseOnNextStatement; |
| 55 this.schedulePauseOnNextStatement = null; | 55 this.schedulePauseOnNextStatement = null; |
| 56 utils.cancelPauseOnNextStatement = cancelPauseOnNextStatement; | 56 utils.cancelPauseOnNextStatement = cancelPauseOnNextStatement; |
| 57 this.cancelPauseOnNextStatement = null; | 57 this.cancelPauseOnNextStatement = null; |
| 58 utils.reconnect = reconnect; | 58 utils.reconnect = reconnect; |
| 59 this.reconnect = null; | 59 this.reconnect = null; |
| 60 utils.setLogConsoleApiMessageCalls = setLogConsoleApiMessageCalls; |
| 61 this.setLogConsoleApiMessageCalls = null; |
| 60 utils.createContextGroup = createContextGroup; | 62 utils.createContextGroup = createContextGroup; |
| 61 this.createContextGroup = null; | 63 this.createContextGroup = null; |
| 62 })(); | 64 })(); |
| 63 | 65 |
| 64 InspectorTest.log = utils.print.bind(null); | 66 InspectorTest.log = utils.print.bind(null); |
| 65 | 67 |
| 66 InspectorTest.logMessage = function(originalMessage) | 68 InspectorTest.logMessage = function(originalMessage) |
| 67 { | 69 { |
| 68 var message = JSON.parse(JSON.stringify(originalMessage)); | 70 var message = JSON.parse(JSON.stringify(originalMessage)); |
| 69 if (message.id) | 71 if (message.id) |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 InspectorTest.log('WARNING: run test with --expose-inspector-scripts flag to
get more details.'); | 351 InspectorTest.log('WARNING: run test with --expose-inspector-scripts flag to
get more details.'); |
| 350 InspectorTest.log('WARNING: you can additionally comment rjsmin in xxd.py to
get unminified injected-script-source.js.'); | 352 InspectorTest.log('WARNING: you can additionally comment rjsmin in xxd.py to
get unminified injected-script-source.js.'); |
| 351 InspectorTest.setupScriptMap(); | 353 InspectorTest.setupScriptMap(); |
| 352 Protocol.Debugger.enable(); | 354 Protocol.Debugger.enable(); |
| 353 Protocol.Debugger.onPaused(message => { | 355 Protocol.Debugger.onPaused(message => { |
| 354 let callFrames = message.params.callFrames; | 356 let callFrames = message.params.callFrames; |
| 355 InspectorTest.logSourceLocations(callFrames.map(frame => frame.location)); | 357 InspectorTest.logSourceLocations(callFrames.map(frame => frame.location)); |
| 356 }) | 358 }) |
| 357 } | 359 } |
| 358 } | 360 } |
| OLD | NEW |