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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/cursor-parsing-quirks.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, 2 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 </head> 4 </head>
5 <body> 5 <body>
6 <p id="description"></p> 6 <p id="description"></p>
7 <div id="console"></div> 7 <div id="console"></div>
8 <script> 8 <script>
9 description("Test the parsing of the cursor property in quirks mode."); 9 description("Test the parsing of the cursor property in quirks mode.");
10 function makeCursorRule(rule) 10 function makeCursorRule(rule)
(...skipping 21 matching lines...) Expand all
32 var div = document.createElement("div"); 32 var div = document.createElement("div");
33 div.setAttribute("style", cssText); 33 div.setAttribute("style", cssText);
34 document.body.appendChild(div); 34 document.body.appendChild(div);
35 var result = div.style.cssText; 35 var result = div.style.cssText;
36 document.body.removeChild(div); 36 document.body.removeChild(div);
37 return result; 37 return result;
38 } 38 }
39 39
40 debug('Test cursor rules which should accept \'hand\' as an alias of \'pointer\' .'); 40 debug('Test cursor rules which should accept \'hand\' as an alias of \'pointer\' .');
41 testCursorRule('hand', 'pointer'); 41 testCursorRule('hand', 'pointer');
42 testCursorRule('url(file:///foo.png), hand', 'url(file:///foo.png), pointer'); 42 testCursorRule('url(file:///foo.png), hand', 'url("file:///foo.png"), pointer');
43 43
44 debug(''); 44 debug('');
45 debug('Test invalid cursor rules which shouldn\'t parse at all.'); 45 debug('Test invalid cursor rules which shouldn\'t parse at all.');
46 testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)'); 46 testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)');
47 47
48 successfullyParsed = true; 48 successfullyParsed = true;
49 </script> 49 </script>
50 </body> 50 </body>
51 </html> 51 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698