File tree Expand file tree Collapse file tree 5 files changed +11
-4
lines changed
test_package_embedder_yaml Expand file tree Collapse file tree 5 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,14 @@ void main() {
114
114
expect (p.libraries, hasLength (3 ));
115
115
expect (p.libraries.map ((lib) => lib.name).contains ('dart:core' ), isTrue);
116
116
expect (p.libraries.map ((lib) => lib.name).contains ('dart:async' ), isTrue);
117
- expect (p.libraries.map ((lib) => lib.name).contains ('grizzly' ), isTrue);
117
+ expect (p.libraries.map ((lib) => lib.name).contains ('dart:bear' ), isTrue);
118
+ // Ensure that we actually parsed some source by checking for
119
+ // the 'Bear' class.
120
+ Library dart_bear =
121
+ p.libraries.firstWhere ((lib) => lib.name == 'dart:bear' );
122
+ expect (dart_bear, isNotNull);
123
+ expect (dart_bear.allClasses.map ((cls) => cls.name).contains ('Bear' ),
124
+ isTrue);
118
125
});
119
126
});
120
127
}
Original file line number Diff line number Diff line change 1
1
embedded_libs :
2
- " dart:bear " : " grizzly.dart"
3
- " dart:core " : " core.dart"
4
- " dart:async " : " async.dart"
2
+ " dart:bear " : " ../sdk/ grizzly.dart"
3
+ " dart:core " : " ../sdk/ core.dart"
4
+ " dart:async " : " ../sdk/ async.dart"
File renamed without changes.
File renamed without changes.
File renamed without changes.
You can’t perform that action at this time.
0 commit comments