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';
12
12
import 'package:test/test.dart' ;
13
13
import 'package:test_common/logging.dart' ;
14
14
import 'package:test_common/test_sdk_configuration.dart' ;
15
+ import 'package:test_common/utilities.dart' show dartSdkIsAtLeast;
15
16
import 'package:vm_service/vm_service.dart' ;
16
17
import 'package:webkit_inspection_protocol/webkit_inspection_protocol.dart' ;
17
18
@@ -362,10 +363,18 @@ void testAll({
362
363
'instance._field' ,
363
364
);
364
365
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
+ }
369
378
});
370
379
});
371
380
You can’t perform that action at this time.
0 commit comments