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

Side by Side Diff: test/inspector/debugger/scope-skip-variables-with-empty-name.js

Issue 2891213002: [inspector] Refactor protocol-test.js (Closed)
Patch Set: comments addressed 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.addScript( 5 let {session, contextGroup, Protocol} = InspectorTest.start('Tests that scopes d o not report variables with empty names');
6
7 contextGroup.addScript(
6 `function testFunction() 8 `function testFunction()
7 { 9 {
8 for (var a of [1]) { 10 for (var a of [1]) {
9 ++a; 11 ++a;
10 debugger; 12 debugger;
11 } 13 }
12 }`); 14 }`);
13 15
14 Protocol.Debugger.enable(); 16 Protocol.Debugger.enable();
15 Protocol.Debugger.oncePaused().then(dumpScopeOnPause); 17 Protocol.Debugger.oncePaused().then(dumpScopeOnPause);
(...skipping 17 matching lines...) Expand all
33 } 35 }
34 } 36 }
35 37
36 function dumpProperties(message) 38 function dumpProperties(message)
37 { 39 {
38 InspectorTest.logMessage(message); 40 InspectorTest.logMessage(message);
39 --waitScopeObjects; 41 --waitScopeObjects;
40 if (!waitScopeObjects) 42 if (!waitScopeObjects)
41 Protocol.Debugger.resume().then(InspectorTest.completeTest); 43 Protocol.Debugger.resume().then(InspectorTest.completeTest);
42 } 44 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698