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

Side by Side Diff: LayoutTests/fast/css/css-imagevalue-url.html

Issue 1355263002: Make sure <url>s are being serialized according to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@urlThing161644
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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script> 2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script> 3 <script src="../../resources/testharnessreport.js"></script>
4 4
5 <script> 5 <script>
6 test(function() { 6 test(function() {
7 var cssText = 'div { background-image: url(images.jpg); }'; 7 var cssText = 'div { background-image: url("images.jpg"); }';
8 8
9 var doc = document.implementation.createHTMLDocument(""); 9 var doc = document.implementation.createHTMLDocument("");
10 var styleElement = document.createElement("style"); 10 var styleElement = document.createElement("style");
11 styleElement.textContent = cssText; 11 styleElement.textContent = cssText;
12 doc.body.appendChild(styleElement); 12 doc.body.appendChild(styleElement);
13 var cssRules = styleElement.sheet.cssRules; 13 var cssRules = styleElement.sheet.cssRules;
14 14
15 assert_equals(cssRules.length, 1); 15 assert_equals(cssRules.length, 1);
16 var compareCSSText = cssRules[0].cssText; 16 var compareCSSText = cssRules[0].cssText;
17 17
18 assert_equals(compareCSSText, cssText); 18 assert_equals(compareCSSText, cssText);
19 }, 'Testing serialization and round trip of URLs in CSS'); 19 }, 'Testing serialization and round trip of URLs in CSS');
20 </script> 20 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/css-escaped-identifier.html ('k') | LayoutTests/fast/css/csstext-of-content-string.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698