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

Unified Diff: test/transformer_test.dart

Issue 986583003: add test for LibraryIdentifier within a subfolder (Closed) Base URL: git@github.com:dart-lang/static-init.git@master
Patch Set: Created 5 years, 9 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 | « test/initializer_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/transformer_test.dart
diff --git a/test/transformer_test.dart b/test/transformer_test.dart
index dea15459f3bc1ed268ce71799758b5ce7429124a..e6dda995fb70096f6870148d39bfa18baa06797b 100644
--- a/test/transformer_test.dart
+++ b/test/transformer_test.dart
@@ -244,9 +244,9 @@ void dartEntryPointTests() {
'a|web/foo.dart': '''
library foo;
- import 'bar.dart';
+ import 'foo/bar.dart';
''',
- 'a|web/bar.dart': '''
+ 'a|web/foo/bar.dart': '''
@constInit
library bar;
@@ -266,12 +266,12 @@ void dartEntryPointTests() {
import 'package:initialize/src/static_loader.dart';
import 'package:initialize/initialize.dart';
import 'index.dart' as i0;
- import 'bar.dart' as i1;
+ import 'foo/bar.dart' as i1;
import 'package:test_initializers/common.dart' as i2;
main() {
initializers.addAll([
- new InitEntry(i2.constInit, const LibraryIdentifier(#bar, null, 'bar.dart')),
+ new InitEntry(i2.constInit, const LibraryIdentifier(#bar, null, 'foo/bar.dart')),
new InitEntry(i2.constInit, i1.bar),
new InitEntry(i2.constInit, i1.Bar),
]);
« no previous file with comments | « test/initializer_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698