| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../../resources/testharness.js"></script> |
| 3 <script src="../../../resources/testharnessreport.js"></script> |
| 4 <div id="element"></div> |
| 5 <script> |
| 6 // Tests a bunch of cursor values come out of ComputedStyle the same as they are |
| 7 // put in. |
| 8 var cursor_values = [ |
| 9 'auto', |
| 10 'default', |
| 11 'none', |
| 12 'context-menu', |
| 13 'help', |
| 14 'pointer', |
| 15 'progress', |
| 16 'wait', |
| 17 'cell', |
| 18 'crosshair', |
| 19 'text', |
| 20 'vertical-text', |
| 21 'alias', |
| 22 'copy', |
| 23 'move', |
| 24 'no-drop', |
| 25 'not-allowed', |
| 26 'e-resize', |
| 27 'n-resize', |
| 28 'ne-resize', |
| 29 'nw-resize', |
| 30 's-resize', |
| 31 'se-resize', |
| 32 'sw-resize', |
| 33 'w-resize', |
| 34 'ew-resize', |
| 35 'ns-resize', |
| 36 'nesw-resize', |
| 37 'nwse-resize', |
| 38 'col-resize', |
| 39 'row-resize', |
| 40 'all-scroll', |
| 41 'zoom-in', |
| 42 'zoom-out', |
| 43 'url("file:///foo.png"), crosshair', |
| 44 'url("file:///foo.png"), url("file:///foo2.png"), pointer', |
| 45 'url("file:///foo.png") 12 3, pointer', |
| 46 'url("file:///foo.png") 0 0, pointer', 'url("file:///foo.png") 0 0, pointer'
, |
| 47 'url("file:///foo.png") 12 3, url("file:///foo2.png"), url("file:///foo3.png
") 6 7, crosshair', |
| 48 'url("file:///foo.png") -2 3, pointer', |
| 49 'url("file:///foo.png") 2 -3, pointer', |
| 50 'url("file:///foo.png") -1 -1, pointer', |
| 51 'url("file:///foo.png") 10 10, auto', // Tests crbug.com/610635 |
| 52 // Not supported -- these currently return zoom-out. |
| 53 //'grab', |
| 54 //'grabbing', |
| 55 ] |
| 56 for (i in cursor_values) { |
| 57 cursor_value = cursor_values[i]; |
| 58 test(function() { |
| 59 element.style.cursor = cursor_value; |
| 60 assert_equals(getComputedStyle(element).cursor, cursor_value); |
| 61 }, "Tests that the cursor value '" + cursor_value + "' is saved correctly in
the ComputedStyle."); |
| 62 } |
| 63 </script> |
| OLD | NEW |