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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/css/cursor-parsing.html

Issue 1541443002: Fix small bugs in new CSS Property parser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 11 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 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <p id="description"></p> 7 <p id="description"></p>
8 <div id="console"></div> 8 <div id="console"></div>
9 <script> 9 <script>
10 description("Test the parsing of the cursor property."); 10 description("Test the parsing of the cursor property.");
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 testCursorRule('url("file:///foo.png") 2 -3, pointer'); 57 testCursorRule('url("file:///foo.png") 2 -3, pointer');
58 testCursorRule('url("file:///foo.png") -1 -1, pointer'); 58 testCursorRule('url("file:///foo.png") -1 -1, pointer');
59 59
60 debug(''); 60 debug('');
61 debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.'); 61 debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.');
62 testInvalidCursorRule('nonexistent'); 62 testInvalidCursorRule('nonexistent');
63 testInvalidCursorRule('ltr'); 63 testInvalidCursorRule('ltr');
64 testInvalidCursorRule('inline'); 64 testInvalidCursorRule('inline');
65 testInvalidCursorRule('hand'); 65 testInvalidCursorRule('hand');
66 testInvalidCursorRule('url("file:///foo.png")'); 66 testInvalidCursorRule('url("file:///foo.png")');
67 testInvalidCursorRule('url("file:///foo.png"),');
67 testInvalidCursorRule('url("file:///foo.png"), url("file:///foo2.png")'); 68 testInvalidCursorRule('url("file:///foo.png"), url("file:///foo2.png")');
68 testInvalidCursorRule('url("file:///foo.png") 12'); 69 testInvalidCursorRule('url("file:///foo.png") 12');
69 testInvalidCursorRule('url("file:///foo.png") 12 3 5'); 70 testInvalidCursorRule('url("file:///foo.png") 12 3 5');
70 testInvalidCursorRule('url("file:///foo.png") x y'); 71 testInvalidCursorRule('url("file:///foo.png") x y');
71 testInvalidCursorRule('url("file:///foo.png") auto'); 72 testInvalidCursorRule('url("file:///foo.png") auto');
73 testInvalidCursorRule('url("file:///foo.png") hand');
72 74
73 successfullyParsed = true; 75 successfullyParsed = true;
74 </script> 76 </script>
75 </body> 77 </body>
76 </html> 78 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698