Chromium Code Reviews| 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, { |
|
Jennifer Messerly
2014/02/27 20:58:02
this test was useful to help me debug, but it does
|
| + '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': |