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

Unified Diff: LayoutTests/fast/css/css-escaped-identifier.html

Issue 1306283006: BackgroundImage incorrectly returns empty url() when created on-the-fly (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ensure getComputedStyle returns absolute URLs Created 5 years, 3 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
Index: LayoutTests/fast/css/css-escaped-identifier.html
diff --git a/LayoutTests/fast/css/css-escaped-identifier.html b/LayoutTests/fast/css/css-escaped-identifier.html
index c2e1190945e08188ca7aab73cc274f72b61f3a33..e73841352441bc264df37ea08e9901a519650fe5 100644
--- a/LayoutTests/fast/css/css-escaped-identifier.html
+++ b/LayoutTests/fast/css/css-escaped-identifier.html
@@ -21,8 +21,8 @@
assert_equals(rules.length, 4, "cssRules.length == 4");
assert_equals(rules[0].selectorText, "d\ueeeex", "Lowercase identifier with escapes");
assert_equals(rules[1].selectorText, "d\ueeeex", "Uppercase identifier with escapes");
- assert_equals(rules[2].style.cssText, "background-image: url(http://w/%EA%AA%AA/1b%EA%AA%AA.gif);", "Escaped url string");
- assert_equals(rules[3].style.cssText, "background-image: url(http://w/%EA%AA%AA/1b%EA%AA%AA.gif);", "Escaped url without string");
+ assert_equals(rules[2].style.cssText, "background-image: url(http://w/" + decodeURIComponent("%EA%AA%AA") + "/1b" + decodeURIComponent("%EA%AA%AA") + ".gif);", "Escaped url string");
Timothy Loh 2015/09/15 12:20:47 The patch description should probably mention this
nainar 2015/09/16 07:16:48 The resulting output is consistent with FF. Changi
+ assert_equals(rules[3].style.cssText, "background-image: url(http://w/" + decodeURIComponent("%EA%AA%AA") + "/1b" + decodeURIComponent("%EA%AA%AA") + ".gif);", "Escaped url without string");
}, "Correctly parsed identifier with escapes");
</script>
</head>

Powered by Google App Engine
This is Rietveld 408576698