1 Test the parsing of the cursor property.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Test a bunch of cursor rules which should round-trip exactly.
7 PASS roundtripCssRule("cursor: auto;") is "cursor: auto;"
8 PASS roundtripCssRule("cursor: none;") is "cursor: none;"
9 PASS roundtripCssRule("cursor: copy;") is "cursor: copy;"
10 PASS roundtripCssRule("cursor: zoom-in;") is "cursor: zoom-in;"
11 PASS roundtripCssRule("cursor: zoom-out;") is "cursor: zoom-out;"
12 PASS roundtripCssRule("cursor: -webkit-grabbing;") is "cursor: -webkit-grabbing;"
13 PASS roundtripCssRule("cursor: -webkit-zoom-in;") is "cursor: -webkit-zoom-in;"
14 PASS roundtripCssRule("cursor: -webkit-zoom-out;") is "cursor: -webkit-zoom-out;"
15 PASS roundtripCssRule("cursor: url(file:///foo.png), crosshair;") is "cursor: url(file:///foo.png), crosshair;"
16 PASS roundtripCssRule("cursor: url(file:///foo.png), url(file:///foo2.png), pointer;") is "cursor: url(file:///foo.png), url(file:///foo2.png), pointer;"
17 PASS roundtripCssRule("cursor: url(file:///foo.png) 12 3, pointer;") is "cursor: url(file:///foo.png) 12 3, pointer;"
18 PASS roundtripCssRule("cursor: url(file:///foo.png) 0 0, pointer;") is "cursor: url(file:///foo.png) 0 0, pointer;"
19 PASS roundtripCssRule("cursor: url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///foo3.png) 6 7, crosshair;") is "cursor: url(file:///foo.png) 12 3, url(file:///foo2.png), url(file:///foo3.png) 6 7, crosshair;"
20 PASS roundtripCssRule("cursor: url(file:///foo.png) -2 3, pointer;") is "cursor: url(file:///foo.png) -2 3, pointer;"
21 PASS roundtripCssRule("cursor: url(file:///foo.png) 2 -3, pointer;") is "cursor: url(file:///foo.png) 2 -3, pointer;"
22 PASS roundtripCssRule("cursor: url(file:///foo.png) -1 -1, pointer;") is "cursor: url(file:///foo.png) -1 -1, pointer;"
24 Test a bunch of invalid cursor rules which shouldn't parse at all.
25 PASS roundtripCssRule("cursor: nonexistent;") is ""
26 PASS roundtripCssRule("cursor: ltr;") is ""
27 PASS roundtripCssRule("cursor: inline;") is ""
28 PASS roundtripCssRule("cursor: hand;") is ""
29 PASS roundtripCssRule("cursor: url(file:///foo.png);") is ""
30 PASS roundtripCssRule("cursor: url(file:///foo.png), url(file:///foo2.png);") is ""
31 PASS roundtripCssRule("cursor: url(file:///foo.png) 12;") is ""
32 PASS roundtripCssRule("cursor: url(file:///foo.png) 12 3 5;") is ""
33 PASS roundtripCssRule("cursor: url(file:///foo.png) x y;") is ""
34 PASS roundtripCssRule("cursor: url(file:///foo.png) auto;") is ""
35 PASS successfullyParsed is true