File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import 'package:dwds/src/services/expression_evaluator.dart';
1212import 'package:test/test.dart' ;
1313import 'package:test_common/logging.dart' ;
1414import 'package:test_common/test_sdk_configuration.dart' ;
15+ import 'package:test_common/utilities.dart' show dartSdkIsAtLeast;
1516import 'package:vm_service/vm_service.dart' ;
1617import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart' ;
1718
@@ -362,10 +363,18 @@ void testAll({
362363 'instance._field' ,
363364 );
364365
365- expect (
366- result,
367- matchErrorRef (contains ("The getter '_field' isn't defined" )),
368- );
366+ if (dartSdkIsAtLeast ('3.10.0-140.0.dev' )) {
367+ expect (result, matchInstanceRefKind ('String' ));
368+ expect (
369+ result,
370+ matchInstanceRef (contains ("NoSuchMethodError: '_field" )),
371+ );
372+ } else {
373+ expect (
374+ result,
375+ matchErrorRef (contains ("The getter '_field' isn't defined" )),
376+ );
377+ }
369378 });
370379 });
371380
You can’t perform that action at this time.
0 commit comments