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

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

Issue 27903006: Improves how to initialize polymer apps and fixes polymer build and linter to (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « pkg/polymer/test/build/common.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('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 b40eea559c41189671ff15c02e399b0d9c9bce24..05abda2831204f8fbb20102a7feee66b2d1022d3 100644
--- a/pkg/polymer/test/build/import_inliner_test.dart
+++ b/pkg/polymer/test/build/import_inliner_test.dart
@@ -18,6 +18,7 @@ void main() {
'a|web/test.html': '<!DOCTYPE html><html></html>',
}, {
'a|web/test.html': '<!DOCTYPE html><html></html>',
+ 'a|web/test.html.scriptUrls': '[]',
});
testPhases('empty import', phases, {
@@ -33,9 +34,11 @@ void main() {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
'</head><body></body></html>',
+ 'a|web/test.html.scriptUrls': '[]',
'a|web/test2.html':
'<!DOCTYPE html><html><head>'
'</head><body></body></html>',
+ 'a|web/test2.html.scriptUrls': '[]',
});
testPhases('shallow, no elements', phases, {
@@ -50,9 +53,11 @@ void main() {
'a|web/test.html':
'<!DOCTYPE html><html><head>'
'</head><body></body></html>',
+ 'a|web/test.html.scriptUrls': '[]',
'a|web/test2.html':
'<!DOCTYPE html><html><head>'
'</head></html>',
+ 'a|web/test2.html.scriptUrls': '[]',
});
testPhases('shallow, elements, one import', phases,
@@ -70,9 +75,11 @@ void main() {
'</head><body>'
'<polymer-element>2</polymer-element>'
'</body></html>',
+ 'a|web/test.html.scriptUrls': '[]',
'a|web/test2.html':
'<!DOCTYPE html><html><head>'
'</head><body><polymer-element>2</polymer-element></html>',
+ 'a|web/test2.html.scriptUrls': '[]',
});
testPhases('no transformation outside web/', phases,
@@ -289,6 +296,7 @@ void main() {
'<script src="s2"></script>'
'<polymer-element>1</polymer-element>'
'<script src="s1"></script></body></html>',
+ 'a|web/test.html.scriptUrls': '[]',
'a|web/test_1.html':
'<!DOCTYPE html><html><head>'
'</head><body>'
@@ -296,6 +304,7 @@ void main() {
'<script src="s2"></script>'
'<polymer-element>1</polymer-element>'
'<script src="s1"></script></body></html>',
+ 'a|web/test_1.html.scriptUrls': '[]',
'a|web/test_2.html':
'<!DOCTYPE html><html><head>'
'</head><body>'
@@ -303,6 +312,53 @@ void main() {
'<script src="s1"></script>'
'<polymer-element>2</polymer-element>'
'<script src="s2"></script></body></html>',
+ 'a|web/test_2.html.scriptUrls': '[]',
+ });
+
+ testPhases('imports cycle, 1-step lasso, Dart scripts too', 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_2.html">'
+ '</head><body><polymer-element>1</polymer-element>'
+ '<script type="application/dart" src="s1.dart"></script></html>',
+ 'a|web/test_2.html':
+ '<!DOCTYPE html><html><head>'
+ '<link rel="import" href="test_1.html">'
+ '</head><body><polymer-element>2'
+ '<script type="application/dart" src="s2.dart"></script>'
+ '</polymer-element>'
+ '</html>',
+ }, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '</head><body>'
+ '<polymer-element>2</polymer-element>'
+ '<polymer-element>1</polymer-element>'
+ '</body></html>',
+ 'a|web/test.html.scriptUrls': '[["a","web/s2.dart"],["a","web/s1.dart"]]',
+ 'a|web/test_1.html':
+ '<!DOCTYPE html><html><head>'
+ '</head><body>'
+ '<polymer-element>2</polymer-element>'
+ '<polymer-element>1</polymer-element>'
+ '<script type="application/dart" src="s1.dart"></script>'
+ '</body></html>',
+ 'a|web/test_1.html.scriptUrls':
+ '[["a","web/s2.dart"]]',
+ 'a|web/test_2.html':
+ '<!DOCTYPE html><html><head>'
+ '</head><body>'
+ '<polymer-element>1</polymer-element>'
+ '<polymer-element>2'
+ '<script type="application/dart" src="s2.dart"></script>'
+ '</polymer-element>'
+ '</body></html>',
+ 'a|web/test_2.html.scriptUrls':
+ '[["a","web/s1.dart"]]',
});
testPhases('imports cycle, 2-step lasso', phases, {
« no previous file with comments | « pkg/polymer/test/build/common.dart ('k') | pkg/polymer/test/build/linter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698