From f0ae4639fa51b7908b86f06381db5e827be0b6bf Mon Sep 17 00:00:00 2001 From: Ben Konyi Date: Thu, 1 Aug 2024 16:07:24 -0400 Subject: [PATCH] Disable `variable scope variables in function` in `variable_scope_test.dart` (#2470) See https://github.com/dart-lang/webdev/issues/2469 --- dwds/test/variable_scope_test.dart | 44 ++++++++++++++++-------------- 1 file changed, 24 insertions(+), 20 deletions(-) diff --git a/dwds/test/variable_scope_test.dart b/dwds/test/variable_scope_test.dart index 1567f7188..bb0f18763 100644 --- a/dwds/test/variable_scope_test.dart +++ b/dwds/test/variable_scope_test.dart @@ -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);