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

Unified Diff: pkg/polymer/test/build/import_inliner_test.dart

Issue 78663004: fix script tags -- remove special case handling for polymer-element (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « pkg/polymer/pubspec.yaml ('k') | pkg/shadow_dom/pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/import_inliner_test.dart
diff --git a/pkg/polymer/test/build/import_inliner_test.dart b/pkg/polymer/test/build/import_inliner_test.dart
index 05abda2831204f8fbb20102a7feee66b2d1022d3..b44c2b41e5b81fadce952cec089ab48a70ac33fc 100644
--- a/pkg/polymer/test/build/import_inliner_test.dart
+++ b/pkg/polymer/test/build/import_inliner_test.dart
@@ -361,6 +361,43 @@ void main() {
'[["a","web/s1.dart"]]',
});
+ testPhases('imports with Dart script after JS script', phases, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '<link rel="import" href="test_1.html">'
+ '</head></html>',
+ 'a|web/test_1.html':
+ '<!DOCTYPE html><html><head>'
+ '<link rel="import" href="test_1.html">'
+ '</head><body>'
+ '<foo>42</foo><bar-baz></bar-baz>'
+ '<polymer-element>1'
+ '<script src="s1.js"></script>'
+ '<script type="application/dart" src="s1.dart"></script>'
+ '</polymer-element>'
+ 'FOO</body></html>',
+ }, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '</head><body>'
+ '<foo>42</foo><bar-baz></bar-baz>'
+ '<polymer-element>1'
+ '<script src="s1.js"></script>'
+ '</polymer-element>'
+ 'FOO</body></html>',
+ 'a|web/test.html.scriptUrls': '[["a","web/s1.dart"]]',
+ 'a|web/test_1.html':
+ '<!DOCTYPE html><html><head>'
+ '</head><body>'
+ '<foo>42</foo><bar-baz></bar-baz>'
+ '<polymer-element>1'
+ '<script src="s1.js"></script>'
+ '<script type="application/dart" src="s1.dart"></script>'
+ '</polymer-element>'
+ 'FOO</body></html>',
+ 'a|web/test_1.html.scriptUrls': '[]',
+ });
+
testPhases('imports cycle, 2-step lasso', phases, {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | pkg/shadow_dom/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698