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

Side by Side Diff: third_party/WebKit/LayoutTests/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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <title>Test that when image map areas have their shape or coordinate dynamically altered, the test region changes.</title> 2 <title>Test that when image map areas have their shape or coordinate dynamically altered, the test region changes.</title>
3 <script src="../../resources/testharness.js"></script> 3 <script src="../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script> 4 <script src="../resources/testharnessreport.js"></script>
5 <img usemap="#m" style="height:400px; width:400px; border:1px solid red; positio n:absolute; left:0; right:0" > 5 <img usemap="#m" style="height:400px; width:400px; border:1px solid red; positio n:absolute; left:0; right:0" >
6 <map name="m"> 6 <map name="m">
7 <area href="#"> 7 <area href="#">
8 </map> 8 </map>
9 <script> 9 <script>
10 test(function() { 10 test(function() {
11 var area = document.querySelector('area'); 11 var area = document.querySelector('area');
12 function checkPointInArea(shape, coords, x, y, equals) { 12 function checkPointInArea(shape, coords, x, y, equals) {
13 area.setAttribute('shape', shape); 13 area.setAttribute('shape', shape);
14 area.setAttribute('coords', coords); 14 area.setAttribute('coords', coords);
(...skipping 11 matching lines...) Expand all
26 checkPointInArea('circle', '100, 100, 50', 200, 100, false); 26 checkPointInArea('circle', '100, 100, 50', 200, 100, false);
27 checkPointInArea('circle', '300, 300, 50', 100, 100, false); 27 checkPointInArea('circle', '300, 300, 50', 100, 100, false);
28 checkPointInArea('circle', '300, 300, 50', 300, 300, true); 28 checkPointInArea('circle', '300, 300, 50', 300, 300, true);
29 checkPointInArea('circle', '300, 300, 50', 320, 300, true); 29 checkPointInArea('circle', '300, 300, 50', 320, 300, true);
30 checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 150, 150, true); 30 checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 150, 150, true);
31 checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 100, 150, false); 31 checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 100, 150, false);
32 checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 300, 300, false); 32 checkPointInArea('poly', '100, 100, 200, 100, 200, 200', 300, 300, false);
33 checkPointInArea('default', '', 300, 300, true); 33 checkPointInArea('default', '', 300, 300, true);
34 }); 34 });
35 </script> 35 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698