test_stepping-11.js (646B)
1 /* Any copyright is dedicated to the Public Domain. 2 http://creativecommons.org/publicdomain/zero/1.0/ */ 3 4 "use strict"; 5 6 /** 7 * Check basic stepping for console evaluations. 8 */ 9 10 add_task( 11 threadFrontTest(async ({ commands, threadFront }) => { 12 dumpn("Evaluating test code and waiting for first debugger statement"); 13 14 commands.scriptCommand.execute(`(function(){ 15 debugger; 16 var a = 1; 17 var b = 2; 18 })();`); 19 20 await waitForEvent(threadFront, "paused"); 21 const packet = await stepOver(threadFront); 22 Assert.equal(packet.frame.where.line, 3, "step to line 3"); 23 await threadFront.resume(); 24 }) 25 );