Skip to content

Commit f0ae463

Browse files
authored
Disable variable scope variables in function in variable_scope_test.dart (#2470)
See #2469
1 parent 3354ea5 commit f0ae463

File tree

1 file changed

+24
-20
lines changed

1 file changed

+24
-20
lines changed

dwds/test/variable_scope_test.dart

Lines changed: 24 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -187,26 +187,30 @@ void main() {
187187
expect(variableNames, containsAll(['formal']));
188188
});
189189

190-
test('variables in function', () async {
191-
stack = await breakAt('nestedFunction', mainScript);
192-
final variables = getFrameVariables(stack.frames!.first);
193-
await expectDartVariables(variables);
194-
195-
final variableNames = variables.keys.toList()..sort();
196-
expect(
197-
variableNames,
198-
containsAll([
199-
'aClass',
200-
'another',
201-
'intLocalInMain',
202-
'local',
203-
'localThatsNull',
204-
'nestedFunction',
205-
'parameter',
206-
'testClass',
207-
]),
208-
);
209-
});
190+
test(
191+
'variables in function',
192+
() async {
193+
stack = await breakAt('nestedFunction', mainScript);
194+
final variables = getFrameVariables(stack.frames!.first);
195+
await expectDartVariables(variables);
196+
197+
final variableNames = variables.keys.toList()..sort();
198+
expect(
199+
variableNames,
200+
containsAll([
201+
'aClass',
202+
'another',
203+
'intLocalInMain',
204+
'local',
205+
'localThatsNull',
206+
'nestedFunction',
207+
'parameter',
208+
'testClass',
209+
]),
210+
);
211+
},
212+
skip: 'See https://github.com/dart-lang/webdev/issues/2469',
213+
);
210214

211215
test('variables in closure nested in method', () async {
212216
stack = await breakAt('nestedClosure', mainScript);

0 commit comments

Comments
 (0)