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

Unified Diff: test/build/transformer_test.dart

Issue 1104453007: add support for x-dart-test link tags in the new test package (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: clarify some comments, and make sure the test/dart.js script remains in the right place Created 5 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 | « test/build/test_compatibility_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « test/build/test_compatibility_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698