Skip to content

Commit

Permalink
Disable variable scope variables in function in `variable_scope_tes…
Browse files Browse the repository at this point in the history
…t.dart` (#2470)

See #2469
  • Loading branch information
bkonyi authored Aug 1, 2024
1 parent 3354ea5 commit f0ae463
Showing 1 changed file with 24 additions and 20 deletions.
44 changes: 24 additions & 20 deletions dwds/test/variable_scope_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -187,26 +187,30 @@ void main() {
expect(variableNames, containsAll(['formal']));
});

test('variables in function', () async {
stack = await breakAt('nestedFunction', mainScript);
final variables = getFrameVariables(stack.frames!.first);
await expectDartVariables(variables);

final variableNames = variables.keys.toList()..sort();
expect(
variableNames,
containsAll([
'aClass',
'another',
'intLocalInMain',
'local',
'localThatsNull',
'nestedFunction',
'parameter',
'testClass',
]),
);
});
test(
'variables in function',
() async {
stack = await breakAt('nestedFunction', mainScript);
final variables = getFrameVariables(stack.frames!.first);
await expectDartVariables(variables);

final variableNames = variables.keys.toList()..sort();
expect(
variableNames,
containsAll([
'aClass',
'another',
'intLocalInMain',
'local',
'localThatsNull',
'nestedFunction',
'parameter',
'testClass',
]),
);
},
skip: 'See https://github.com/dart-lang/webdev/issues/2469',
);

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

0 comments on commit f0ae463

Please sign in to comment.