OLD | NEW |
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 Loading... |
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> |
OLD | NEW |