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

Unified Diff: test/build/import_inliner_test.dart

Issue 993423004: Fix normalization of relative paths inside of deep relative imports (Closed) Base URL: git@github.com:dart-lang/web-components.git@master
Patch Set: format Created 5 years, 9 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 | « test/build/import_crawler_test.dart ('k') | test/custom_element_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/build/import_inliner_test.dart
diff --git a/test/build/import_inliner_test.dart b/test/build/import_inliner_test.dart
index 15813550517054d3c28e2fbd834e9770466dfa66..7e060a282e61d0a90f406ce387256fa45dddef63 100644
--- a/test/build/import_inliner_test.dart
+++ b/test/build/import_inliner_test.dart
@@ -735,6 +735,28 @@ void urlAttributeTests() {
<img src="{{bar[0]}}/{{baz[1]}}.{{extension}}">
</body></html>''',
}, null, StringFormatter.noNewlinesOrSurroundingWhitespace);
+
+ testPhases('relative paths in deep imports', phases, {
+ 'a|web/test.html': '''
+ <!DOCTYPE html><html><head>
+ <link rel="import" href="foo/foo.html">
+ </head></html>''',
+ 'a|web/foo/foo.html': '''
+ <link rel="import" href="bar.html">''',
+ 'a|web/foo/bar.html': '''
+ <style rel="stylesheet" href="baz.css"></style>
+ <style rel="stylesheet" href="../css/zap.css"></style>''',
+ 'a|web/foo/baz.css': '',
+ 'a|web/css/zap.css': '',
+ }, {
+ 'a|web/test.html': '''
+ <!DOCTYPE html><html><head></head><body>
+ <div hidden="">
+ <style rel="stylesheet" href="foo/baz.css"></style>
+ <style rel="stylesheet" href="css/zap.css"></style>
+ </div>
+ </body></html>''',
+ }, [], StringFormatter.noNewlinesOrSurroundingWhitespace);
}
void entryPointTests() {
« no previous file with comments | « test/build/import_crawler_test.dart ('k') | test/custom_element_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698