OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../js/resources/js-test-pre.js"></script> | 4 <script src="../js/resources/js-test-pre.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."); |
11 | 11 |
(...skipping 25 matching lines...) Expand all Loading... |
37 | 37 |
38 // Note that any absolute URL will suffice for these tests (can't use relative U
RLs | 38 // Note that any absolute URL will suffice for these tests (can't use relative U
RLs |
39 // since they'll be converted to absolute form in the output). I chose file URL
s just | 39 // since they'll be converted to absolute form in the output). I chose file URL
s just |
40 // to avoid triggering any network activity. | 40 // to avoid triggering any network activity. |
41 | 41 |
42 debug('Test a bunch of cursor rules which should round-trip exactly.'); | 42 debug('Test a bunch of cursor rules which should round-trip exactly.'); |
43 testCursorRule('auto'); | 43 testCursorRule('auto'); |
44 testCursorRule('none'); | 44 testCursorRule('none'); |
45 testCursorRule('copy'); | 45 testCursorRule('copy'); |
46 testCursorRule('-webkit-grabbing'); | 46 testCursorRule('-webkit-grabbing'); |
47 testCursorRule('url(file:///foo.png)'); // IE compatibility | |
48 testCursorRule('url(file:///foo.png), crosshair'); | 47 testCursorRule('url(file:///foo.png), crosshair'); |
49 testCursorRule('url(file:///foo.png), url(file:///foo2.png), pointer'); | 48 testCursorRule('url(file:///foo.png), url(file:///foo2.png), pointer'); |
50 testCursorRule('url(file:///foo.png) 12 3, pointer'); | 49 testCursorRule('url(file:///foo.png) 12 3, pointer'); |
51 testCursorRule('url(file:///foo.png) 0 0, pointer'); | 50 testCursorRule('url(file:///foo.png) 0 0, pointer'); |
52 testCursorRule('url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///fo
o3.png) 6 7, crosshair'); | 51 testCursorRule('url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///fo
o3.png) 6 7, crosshair'); |
53 testCursorRule('url(file:///foo.png) -2 3, pointer'); | 52 testCursorRule('url(file:///foo.png) -2 3, pointer'); |
54 testCursorRule('url(file:///foo.png) 2 -3, pointer'); | 53 testCursorRule('url(file:///foo.png) 2 -3, pointer'); |
55 testCursorRule('url(file:///foo.png) -1 -1, pointer'); | 54 testCursorRule('url(file:///foo.png) -1 -1, pointer'); |
56 | 55 |
57 debug(''); | 56 debug(''); |
58 debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.'); | 57 debug('Test a bunch of invalid cursor rules which shouldn\'t parse at all.'); |
59 testInvalidCursorRule('nonexistent'); | 58 testInvalidCursorRule('nonexistent'); |
60 testInvalidCursorRule('ltr'); | 59 testInvalidCursorRule('ltr'); |
61 testInvalidCursorRule('inline'); | 60 testInvalidCursorRule('inline'); |
| 61 testInvalidCursorRule('hand'); |
| 62 testInvalidCursorRule('url(file:///foo.png)'); |
62 testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)'); | 63 testInvalidCursorRule('url(file:///foo.png), url(file:///foo2.png)'); |
63 testInvalidCursorRule('url(file:///foo.png) 12'); | 64 testInvalidCursorRule('url(file:///foo.png) 12'); |
64 testInvalidCursorRule('url(file:///foo.png) 12 3 5'); | 65 testInvalidCursorRule('url(file:///foo.png) 12 3 5'); |
65 testInvalidCursorRule('url(file:///foo.png) x y'); | 66 testInvalidCursorRule('url(file:///foo.png) x y'); |
66 testInvalidCursorRule('url(file:///foo.png) auto'); | 67 testInvalidCursorRule('url(file:///foo.png) auto'); |
67 | 68 |
68 successfullyParsed = true; | 69 successfullyParsed = true; |
69 </script> | 70 </script> |
70 <script src="../js/resources/js-test-post.js"></script> | 71 <script src="../js/resources/js-test-post.js"></script> |
71 </body> | 72 </body> |
72 </html> | 73 </html> |
OLD | NEW |