OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
esprehn
2014/08/19 01:41:28
no html, head or body.
| |
4 <style> | |
5 area:hover { | |
6 color: blue; | |
7 } | |
8 </style> | |
9 <script src="../../resources/js-test.js"></script> | |
10 <script> | |
11 description("Test return value of getComputedStyle() for area tag."); | |
12 window.jsTestIsAsync = true; | |
13 var area; | |
14 function runTest() { | |
esprehn
2014/08/19 01:41:28
onload = function() {
| |
15 area = document.getElementById("areaTest"); | |
16 if (window.eventSender) { | |
17 var target = document.getElementById("areaTest"); | |
18 var x = target.offsetParent.offsetLeft + target.offsetLeft + target.offset Width / 2; | |
19 var y = target.offsetParent.offsetTop + target.offsetTop + target.offsetHe ight / 2; | |
20 eventSender.mouseMoveTo(x, y); | |
21 } | |
22 } | |
23 | |
24 function onAreaHover() { | |
25 shouldBeEqualToString("window.getComputedStyle(area, null).color", "rgb(0, 0, 255)"); | |
26 finishJSTest(); | |
27 } | |
28 </script> | |
29 </head> | |
30 <body onload="runTest()"> | |
31 <map name="imagemap1"> | |
32 <area id="areaTest" onmouseover="onAreaHover()" shape="rect" coords="0, 0, 1 00, 100" /> | |
esprehn
2014/08/19 01:41:28
no slashes at the end of tags.
| |
33 </map> | |
34 <img src="resources/greenbox-100px.png" border="0" align="left" usemap="#image map1" /> | |
35 </body> | |
36 </html> | |
OLD | NEW |