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

Side by Side Diff: test/inspector/protocol-test.js

Issue 2879923003: [inspector] added targetCallFrames for continueToLocation (Closed)
Patch Set: Created 3 years, 7 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
OLDNEW
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 var fun = testSuite.shift(); 227 var fun = testSuite.shift();
228 InspectorTest.log("\nRunning test: " + fun.name); 228 InspectorTest.log("\nRunning test: " + fun.name);
229 fun(nextTest); 229 fun(nextTest);
230 } 230 }
231 nextTest(); 231 nextTest();
232 } 232 }
233 233
234 InspectorTest.runAsyncTestSuite = async function(testSuite) { 234 InspectorTest.runAsyncTestSuite = async function(testSuite) {
235 for (var test of testSuite) { 235 for (var test of testSuite) {
236 InspectorTest.log("\nRunning test: " + test.name); 236 InspectorTest.log("\nRunning test: " + test.name);
237 await test(); 237 try {
238 await test();
239 } catch (e) {
240 InspectorTest.log(e.stack);
241 }
238 } 242 }
239 InspectorTest.completeTest(); 243 InspectorTest.completeTest();
240 } 244 }
241 245
242 InspectorTest._sendCommandPromise = function(method, params, contextGroupId) 246 InspectorTest._sendCommandPromise = function(method, params, contextGroupId)
243 { 247 {
244 var requestId = ++InspectorTest._requestId; 248 var requestId = ++InspectorTest._requestId;
245 var messageObject = { "id": requestId, "method": method, "params": params }; 249 var messageObject = { "id": requestId, "method": method, "params": params };
246 var fulfillCallback; 250 var fulfillCallback;
247 var promise = new Promise(fulfill => fulfillCallback = fulfill); 251 var promise = new Promise(fulfill => fulfillCallback = fulfill);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 InspectorTest.log('WARNING: run test with --expose-inspector-scripts flag to get more details.'); 325 InspectorTest.log('WARNING: run test with --expose-inspector-scripts flag to get more details.');
322 InspectorTest.log('WARNING: you can additionally comment rjsmin in xxd.py to get unminified injected-script-source.js.'); 326 InspectorTest.log('WARNING: you can additionally comment rjsmin in xxd.py to get unminified injected-script-source.js.');
323 InspectorTest.setupScriptMap(); 327 InspectorTest.setupScriptMap();
324 Protocol.Debugger.enable(); 328 Protocol.Debugger.enable();
325 Protocol.Debugger.onPaused(message => { 329 Protocol.Debugger.onPaused(message => {
326 let callFrames = message.params.callFrames; 330 let callFrames = message.params.callFrames;
327 InspectorTest.logSourceLocations(callFrames.map(frame => frame.location)); 331 InspectorTest.logSourceLocations(callFrames.map(frame => frame.location));
328 }) 332 })
329 } 333 }
330 } 334 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698