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

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

Issue 178193007: [polymer] fix import inliner to only rewrite URL attributes once per node (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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') | no next file » | 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 f66500322399d80d2c44aae3bd54073ddfb3e28e..7fa27069d2e35a260987d324256813c7180c0e01 100644
--- a/pkg/polymer/test/build/import_inliner_test.dart
+++ b/pkg/polymer/test/build/import_inliner_test.dart
@@ -643,6 +643,44 @@ void stylesheetTests() {
'c|lib/test5.png': 'PNG',
});
+ testPhases('deep, inlines css, multiple nesting', phases, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head>'
+ '<link rel="import" href="foo/test2.html">'
+ '</head></html>',
+ 'a|web/foo/test2.html':
+ '<link rel="import" href="bar/test3.html">'
+ '<polymer-element>2'
+ '<link rel="stylesheet" href="test.css">'
+ '</polymer-element>',
+ 'a|web/foo/bar/test3.html':
+ '<img src="qux.png">',
+ 'a|web/foo/test.css':
+ 'body {\n background: #eaeaea url("test4.png");\n}\n'
+ '.foo {\n background: url("test5.png");\n}',
+ }, {
+ 'a|web/test.html':
+ '<!DOCTYPE html><html><head></head><body>'
+ '<img src="foo/bar/qux.png">'
+ '<polymer-element>2'
+ '<style>'
+ 'body {\n background: #eaeaea url(foo/test4.png);\n}\n'
+ '.foo {\n background: url(foo/test5.png);\n}'
+ '</style></polymer-element></body></html>',
+ 'a|web/foo/test2.html':
+ '<html><head></head><body>'
+ '<img src="bar/qux.png">'
+ '<polymer-element>2'
+ '<style>'
+ 'body {\n background: #eaeaea url(test4.png);\n}\n'
+ '.foo {\n background: url(test5.png);\n}'
+ '</style></polymer-element></body></html>',
+ 'a|web/foo/bar/test3.html':
+ '<img src="qux.png">',
+ 'a|web/foo/test.css':
+ 'body {\n background: #eaeaea url("test4.png");\n}\n'
+ '.foo {\n background: url("test5.png");\n}',
+ });
testPhases('shallow, inlines css and preserves order', phases, {
'a|web/test.html':
« no previous file with comments | « pkg/polymer/test/build/common.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698