Index: test/build/transformer_test.dart |
diff --git a/test/build/transformer_test.dart b/test/build/transformer_test.dart |
index 369dc5888958d991eaf7314e0d17b5d49b8f13e8..924b29053b2923e4b8339d060b495cbe1aa403fb 100644 |
--- a/test/build/transformer_test.dart |
+++ b/test/build/transformer_test.dart |
@@ -9,7 +9,7 @@ import 'package:unittest/compact_vm_config.dart'; |
import 'common.dart'; |
var transformer = new WebComponentsTransformerGroup( |
- new TransformOptions(['web/index.html'], false)); |
+ new TransformOptions(['web/index.html', 'test/index.html'], false)); |
var phases = [[transformer]]; |
main() { |
@@ -172,4 +172,35 @@ main() { |
</html> |
''', |
}, [], StringFormatter.noNewlinesOrSurroundingWhitespace); |
+ |
+ testPhases('test compatibility', phases, { |
+ 'a|test/index.html': ''' |
+ <!DOCTYPE html> |
+ <html> |
+ <head> |
+ <link rel="x-dart-test" href="index.dart"> |
+ <script src="packages/test/dart.js"></script> |
+ </head> |
+ <body></body> |
+ </html> |
+ ''', |
+ 'a|test/index.dart': ''' |
+ library a; |
+ |
+ main() {} |
+ ''', |
+ 'initialize|lib/initialize.dart': mockInitialize, |
+ 'web_components|lib/html_import_annotation.dart': mockHtmlImportAnnotation, |
+ }, { |
+ 'a|test/index.html': ''' |
+ <!DOCTYPE html> |
+ <html> |
+ <head> |
+ <link rel="x-dart-test" href="index.bootstrap.initialize.dart"> |
+ <script src="packages/test/dart.js"></script> |
+ </head> |
+ <body></body> |
+ </html> |
+ ''', |
+ }, [], StringFormatter.noNewlinesOrSurroundingWhitespace); |
} |