Index: LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html |
diff --git a/LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html b/LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4d0450e99cd3a21c38432a2077f2316dad9b24e4 |
--- /dev/null |
+++ b/LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html |
@@ -0,0 +1,18 @@ |
+<!DOCTYPE html> |
+<div id="element"></div> |
+ |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+var verticalCursor = "url(file:///a) 11 11, default"; |
+var horizontalCursor = "url(file:///b) 11 11, default"; |
+ |
+test(function () { |
+ element.style.cursor = verticalCursor; |
+ assert_equals(element.style.cursor, verticalCursor); |
+ |
+ element.style.cursor = horizontalCursor; |
+ assert_equals(element.style.cursor, horizontalCursor); |
+}, "Check that the cursor updates even when the hotspot is the same"); |
+ |
+</script> |