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

Unified Diff: LayoutTests/fast/css/url-with-multi-byte-unicode-escape.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: 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/url-with-multi-byte-unicode-escape.html
diff --git a/LayoutTests/fast/css/url-with-multi-byte-unicode-escape.html b/LayoutTests/fast/css/url-with-multi-byte-unicode-escape.html
index d838fd64abe39bf67962f6efcdc6c20fbaea3629..00d8de20376e2d743937bf40de0069da8e2be322 100644
--- a/LayoutTests/fast/css/url-with-multi-byte-unicode-escape.html
+++ b/LayoutTests/fast/css/url-with-multi-byte-unicode-escape.html
@@ -13,7 +13,7 @@
<script>
description('Test parsing a CSS URI containing a multi-byte Unicode escape sequence.');
shouldBe('document.styleSheets[0].cssRules.length', '2');
- shouldBeEqualToString('document.styleSheets[0].cssRules[0].style.getPropertyValue("background-image")', 'url(data:%C4%80)');
+ shouldBeEqualToString('document.styleSheets[0].cssRules[0].style.getPropertyValue("background-image")', 'url(data:' + decodeURIComponent('%C4%80') + ')');
shouldBeEqualToString('document.styleSheets[0].cssRules[1].style.getPropertyValue("background-color")', 'green');
shouldBeEqualToString('window.getComputedStyle(document.getElementById("test")).getPropertyValue("background-color")', 'rgb(0, 128, 0)');
</script>

Powered by Google App Engine
This is Rietveld 408576698