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

Unified Diff: third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html

Issue 1363233003: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix interpolation tests 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: third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html
diff --git a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html
index c35dd05cf04b044fe3d24b45a6b56e977d0622f0..3fc5e7b859cb262039baa01a75eea261b1e54969 100644
--- a/third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html
+++ b/third_party/WebKit/LayoutTests/fast/css/getComputedStyle-relativeURL.html
@@ -7,8 +7,8 @@
<script>
target.style.backgroundImage = "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)";
test(function() {
- var expected = "-webkit-cross-fade(url(" + location.href.replace('getComputedStyle-relativeURL.html', 'images1.jpg') + "), url(" + location.href.replace('getComputedStyle-relativeURL.html', 'images2.jpg') + "), 0.5)";
+ var expected = '-webkit-cross-fade(url("' + location.href.replace('getComputedStyle-relativeURL.html', 'images1.jpg') + '"), url("' + location.href.replace('getComputedStyle-relativeURL.html', 'images2.jpg') + '"), 0.5)';
assert_equals(getComputedStyle(target).backgroundImage, expected);
- assert_equals(target.style.backgroundImage, "-webkit-cross-fade(url(images1.jpg), url(images2.jpg), 0.5)");
+ assert_equals(target.style.backgroundImage, '-webkit-cross-fade(url("images1.jpg"), url("images2.jpg"), 0.5)');
}, 'Testing that getComputedStyle.backgroundImage returns absolute URLs and style.backgroundImage returns relative URLs');
</script>

Powered by Google App Engine
This is Rietveld 408576698