Lines Matching refs:session
33 async function getContext(session) { argument
35 await session.waitForNotification('Runtime.executionContextCreated');
39 async function checkScriptContext(session, context) { argument
41 await session.waitForNotification('Debugger.scriptParsed');
48 const session = await instance.connectInspectorSession();
49 await session.send([
53 await session.waitForBreakOnLine(2, '[eval]');
55 await session.send({ 'method': 'Runtime.enable' });
56 await getContext(session);
57 await session.send({ 'method': 'Debugger.resume' });
58 const childContext = await getContext(session);
59 await session.waitForBreakOnLine(11, '[eval]');
62 await session.send({ 'method': 'Debugger.resume' });
63 await session.waitForBreakOnLine(15, '[eval]');
66 await session.send({ 'method': 'Debugger.resume' });
67 await checkScriptContext(session, childContext);
68 await session.waitForBreakOnLine(18, '[eval]');
71 await session.send({ 'method': 'Debugger.resume' });
72 const thirdContext = await getContext(session);
73 await checkScriptContext(session, thirdContext);
74 await session.waitForBreakOnLine(21, '[eval]');
77 await session.send({ 'method': 'Debugger.resume' });
78 const fourthContext = await getContext(session);
79 await checkScriptContext(session, fourthContext);
80 await session.waitForBreakOnLine(0, 'evalmachine.<anonymous>');
82 await session.runToCompletion();