Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(531)

Unified Diff: third_party/pkg/di/test/generator_test.dart

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/pkg/di/test/fixed-unittest.dart ('k') | third_party/pkg/di/test/injector_generator_spec.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/pkg/di/test/generator_test.dart
diff --git a/third_party/pkg/di/test/generator_test.dart b/third_party/pkg/di/test/generator_test.dart
index 900b312a6162d9fc70ec81acfc09b8690fe3c5a9..80b46ac5ceef36a9e3791a00f7a1fa570dd211ec 100644
--- a/third_party/pkg/di/test/generator_test.dart
+++ b/third_party/pkg/di/test/generator_test.dart
@@ -7,11 +7,11 @@ main(args) => group('generator', () {
test('should codesplit deferred libraries', () {
Map<generator.Chunk, String> code = generator.generateCode(
- 'test/assets/gen_test1/main.dart', ['annotations.Injectable'],
- Platform.environment['DART_SDK'], [Platform.packageRoot]);
+ 'test_assets/gen_test1/main.dart', ['annotations.InjectableTest'],
+ Platform.environment['DART_SDK'], [Platform.packageRoot], 'main.dart');
expect(code.keys.map((chunk) => chunk.library == null ? null : chunk.library.name),
- unorderedEquals([null, 'lib_a', 'lib_b']));
+ unorderedEquals([null, 'lib_a', 'lib_b', 'lib_c']));
code.forEach((chunk, code) {
var cu = parseCompilationUnit(code);
@@ -21,6 +21,8 @@ main(args) => group('generator', () {
expectHasImports(cu, ['a.dart', 'a2.dart', 'common2.dart']);
} else if (chunk.library.name.endsWith('lib_b')) {
expectHasImports(cu, ['b.dart', 'b2.dart', 'common2.dart']);
+ } else if (chunk.library.name.endsWith('lib_c')) {
+ expectHasImports(cu, []);
}
});
});
« no previous file with comments | « third_party/pkg/di/test/fixed-unittest.dart ('k') | third_party/pkg/di/test/injector_generator_spec.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698