| Index: third_party/WebKit/LayoutTests/fast/css/cursor-hotspot-computed-style.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/cursor-hotspot-computed-style.html b/third_party/WebKit/LayoutTests/fast/css/cursor-hotspot-computed-style.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..27c8d78940e371f531bf37404df63f96a426c8a1
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/cursor-hotspot-computed-style.html
|
| @@ -0,0 +1,22 @@
|
| +<!doctype html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<style>
|
| +#noSpecifiedHotspot {
|
| + cursor: url('file:///test.ico'), auto;
|
| +}
|
| +#specifiedHotspot {
|
| + cursor: url('file:///test.ico') 10 20, auto;
|
| +}
|
| +</style>
|
| +<div id="noSpecifiedHotspot"></div>
|
| +<div id="specifiedHotspot"></div>
|
| +<script>
|
| +test(function(){
|
| + assert_equals(getComputedStyle(noSpecifiedHotspot).cursor, 'url("file:///test.ico"), auto');
|
| +}, "Cursor computed style does not includes the hotspot if it's not specified");
|
| +
|
| +test(function(){
|
| + assert_equals(getComputedStyle(specifiedHotspot).cursor, 'url("file:///test.ico") 10 20, auto');
|
| +}, "Cursor computed style includes the hotspot if it's specified");
|
| +</script>
|
|
|