Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: LayoutTests/fast/css/bug523527-cursor-doesnt-update-with-same-hotspot.html

Issue 1311783009: Fix bug in CSSCursorImageValue::equals() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Localized cursor URL to fix httpd errors Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/core/css/CSSCursorImageValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | Source/core/css/CSSCursorImageValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698