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

Side by Side Diff: test/inspector/debugger/wasm-stepping.js

Issue 2713023004: [inspector] added reconnect method for tests (Closed)
Patch Set: rebased Created 3 years, 9 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 2017 the V8 project authors. All rights reserved. 1 // Copyright 2017 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 load('test/mjsunit/wasm/wasm-constants.js'); 5 utils.load('test/mjsunit/wasm/wasm-constants.js');
6 load('test/mjsunit/wasm/wasm-module-builder.js'); 6 utils.load('test/mjsunit/wasm/wasm-module-builder.js');
7 7
8 var builder = new WasmModuleBuilder(); 8 var builder = new WasmModuleBuilder();
9 9
10 var func_a_idx = 10 var func_a_idx =
11 builder.addFunction('wasm_A', kSig_v_v).addBody([kExprNop, kExprNop]).index; 11 builder.addFunction('wasm_A', kSig_v_v).addBody([kExprNop, kExprNop]).index;
12 12
13 // wasm_B calls wasm_A <param0> times. 13 // wasm_B calls wasm_A <param0> times.
14 builder.addFunction('wasm_B', kSig_v_i) 14 builder.addFunction('wasm_B', kSig_v_i)
15 .addBody([ 15 .addBody([
16 // clang-format off 16 // clang-format off
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 line); 151 line);
152 } 152 }
153 153
154 function handlePaused(msg) { 154 function handlePaused(msg) {
155 var loc = msg.params.callFrames[0].location; 155 var loc = msg.params.callFrames[0].location;
156 printPauseLocation(loc.scriptId, loc.lineNumber, loc.columnNumber); 156 printPauseLocation(loc.scriptId, loc.lineNumber, loc.columnNumber);
157 var action = step_actions.shift(); 157 var action = step_actions.shift();
158 InspectorTest.log('Step action: ' + action); 158 InspectorTest.log('Step action: ' + action);
159 Protocol.Debugger[action](); 159 Protocol.Debugger[action]();
160 } 160 }
OLDNEW
« no previous file with comments | « test/inspector/debugger/wasm-stack.js ('k') | test/inspector/heap-profiler/take-heap-snapshot-on-pause.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698