@@ -9,6 +9,7 @@ import 'package:dwds/src/services/chrome_proxy_service.dart';
9
9
import 'package:test/test.dart' ;
10
10
import 'package:test_common/logging.dart' ;
11
11
import 'package:test_common/test_sdk_configuration.dart' ;
12
+ import 'package:test_common/utilities.dart' ;
12
13
import 'package:vm_service/vm_service.dart' ;
13
14
14
15
import 'fixtures/context.dart' ;
@@ -206,7 +207,18 @@ void main() {
206
207
final variableNames = variables.keys.toList ()..sort ();
207
208
expect (
208
209
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
+ ],
210
222
);
211
223
});
212
224
@@ -216,7 +228,15 @@ void main() {
216
228
await expectDartVariables (variables);
217
229
218
230
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
+ ]);
220
240
});
221
241
222
242
test ('variables in extension method' , () async {
0 commit comments