Index: third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html |
diff --git a/third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html b/third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html |
index 952150875e20d10552b931e6718e84fb2d21f197..ac7e46401658405d6a9794918a1ee91daa16882f 100644 |
--- a/third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html |
+++ b/third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html |
@@ -1,10 +1,10 @@ |
<!DOCTYPE html> |
-<title>Test that when image map areas have their shape or coordinate dynamically altered, the clickable region changes.</title> |
+<title>Test that when image map areas have their shape or coordinate dynamically altered, the test region changes.</title> |
<script src="../../resources/testharness.js"></script> |
<script src="../../resources/testharnessreport.js"></script> |
<img usemap="#m" style="height:400px; width:400px; border:1px solid red; position:absolute; left:0; right:0" > |
<map name="m"> |
-<area href="#" onclick="areaClicked = true; return false;"> |
+<area href="#"> |
</map> |
<script> |
test(function() { |
@@ -12,12 +12,7 @@ test(function() { |
function checkPointInArea(shape, coords, x, y) { |
area.setAttribute('shape', shape); |
area.setAttribute('coords', coords); |
- areaClicked = false; |
- // TODO(siva.gunturi): Use elementFromPoint here. |
- eventSender.mouseMoveTo(x, y); |
- eventSender.mouseDown(); |
- eventSender.mouseUp(); |
- return areaClicked; |
+ return coords == document.elementFromPoint(x, y).coords; |
Srirama
2016/08/18 07:09:44
i think what fs means is just return document.elem
fs
2016/08/18 07:54:44
Yes, exactly.
sivag
2016/08/18 09:07:41
Done.
sivag
2016/08/18 09:07:41
Done.
|
} |
assert_true(checkPointInArea('default', '', 50, 50)); |
assert_true(checkPointInArea('default', '', 50, 50)); |