@@ -9,6 +9,7 @@ import 'package:dwds/src/services/chrome_proxy_service.dart';
99import 'package:test/test.dart' ;
1010import 'package:test_common/logging.dart' ;
1111import 'package:test_common/test_sdk_configuration.dart' ;
12+ import 'package:test_common/utilities.dart' ;
1213import 'package:vm_service/vm_service.dart' ;
1314
1415import 'fixtures/context.dart' ;
@@ -206,7 +207,18 @@ void main() {
206207 final variableNames = variables.keys.toList ()..sort ();
207208 expect (
208209 variableNames,
209- ['closureLocalInsideMethod' , 'local' , 'parameter' , 'this' ],
210+ [
211+ // TODO(https://github.com/dart-lang/webdev/issues/2316): Make sure T
212+ // doesn't show up here.
213+ if (dartSdkIsAtLeast (
214+ newDdcTypeSystemVersion,
215+ ))
216+ 'T' ,
217+ 'closureLocalInsideMethod' ,
218+ 'local' ,
219+ 'parameter' ,
220+ 'this' ,
221+ ],
210222 );
211223 });
212224
@@ -216,7 +228,15 @@ void main() {
216228 await expectDartVariables (variables);
217229
218230 final variableNames = variables.keys.toList ()..sort ();
219- expect (variableNames, ['this' ]);
231+ expect (variableNames, [
232+ // TODO(https://github.com/dart-lang/webdev/issues/2316): Make sure T
233+ // doesn't show up here.
234+ if (dartSdkIsAtLeast (
235+ newDdcTypeSystemVersion,
236+ ))
237+ 'T' ,
238+ 'this' ,
239+ ]);
220240 });
221241
222242 test ('variables in extension method' , () async {
0 commit comments