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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector-protocol/debugger/debugger-scope-skip-variables-with-empty-name.js

Issue 2968523003: [DevTools] Migrate inspector-protocol/debugger tests to new harness (Closed)
Patch Set: all tests Created 3 years, 5 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
(Empty)
1 (async function(testRunner) {
2 let {page, session, dp} = await testRunner.startBlank('');
3
4 dp.Debugger.enable();
5 dp.Runtime.evaluate({expression: `
6 function testFunction() {
7 for (var a of [1]) {
8 ++a;
9 debugger;
10 }
11 }
12 testFunction();
13 `});
14
15 var message = await dp.Debugger.oncePaused();
16 var scopeChain = message.params.callFrames[0].scopeChain;
17 var localScopeObjectIds = [];
18 for (var scope of scopeChain) {
19 if (scope.type === 'local')
20 localScopeObjectIds.push(scope.object.objectId);
21 }
22
23 for (var objectId of localScopeObjectIds)
24 testRunner.logObject((await dp.Runtime.getProperties({objectId})).result);
25
26 await dp.Debugger.resume();
27 testRunner.completeTest();
28 })
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698