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

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: put special test attribute in a variable so polymer can use it 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
Index: test/build/transformer_test.dart
diff --git a/test/build/transformer_test.dart b/test/build/transformer_test.dart
index 369dc5888958d991eaf7314e0d17b5d49b8f13e8..b428c4c2f776df91309b17e9860ce4d08f2f4537 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,33 @@ main() {
</html>
''',
}, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
+
+ testPhases('test compatibility', phases, {
+ 'a|test/index.html': '''
+ <!DOCTYPE html>
+ <html>
+ <head>
+ <link rel="x-dart-test" href="index.dart">
+ </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">
+ </head>
+ <body></body>
+ </html>
+ ''',
+ }, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
}
« lib/build/test_compatibility.dart ('K') | « test/build/test_compatibility_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698