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

Unified Diff: third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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
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
deleted file mode 100644
index 6d0d778cd63097e34257240fcba22e5f38d332c3..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/images/imagemap-dynamic-area-updates.html
+++ /dev/null
@@ -1,35 +0,0 @@
-<!DOCTYPE html>
-<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="#">
-</map>
-<script>
-test(function() {
- var area = document.querySelector('area');
- function checkPointInArea(shape, coords, x, y, equals) {
- area.setAttribute('shape', shape);
- area.setAttribute('coords', coords);
- equals ? assert_equals(area, document.elementFromPoint(x, y))
- : assert_not_equals(area, document.elementFromPoint(x, y));
- }
- checkPointInArea('default', '', 50, 50, true);
- checkPointInArea('default', '', 50, 50, true);
- checkPointInArea('rect', '0, 0, 100, 100', 50, 50, true);
- checkPointInArea('rect', '0, 0, 100, 100', 150, 150, false);
- checkPointInArea('rect', '200, 200, 300, 300', 50, 50, false);
- checkPointInArea('rect', '200, 200, 300, 300', 250, 250, true);
- checkPointInArea('circle', '100, 100, 50', 100, 100, true);
- checkPointInArea('circle', '100, 100, 50', 120, 100, true);
- checkPointInArea('circle', '100, 100, 50', 200, 100, false);
- checkPointInArea('circle', '300, 300, 50', 100, 100, false);
- checkPointInArea('circle', '300, 300, 50', 300, 300, true);
- checkPointInArea('circle', '300, 300, 50', 320, 300, true);
- checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 150, 150, true);
- checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 100, 150, false);
- checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 300, 300, false);
- checkPointInArea('default', '', 300, 300, true);
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698