Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <html> | |
| 3 <head> | |
| 4 <style> | |
| 5 area:hover { | |
| 6 color: blue; | |
| 7 } | |
| 8 </style> | |
| 9 </head> | |
| 10 <body onload="runtest()"> | |
|
Inactive
2014/08/07 15:34:22
runTest()
| |
| 11 <map name="imagemap1"> | |
| 12 <area id="areaTest" onmouseover="hoverFunc()" shape="rect" coords="0, 0, 100 , 100" /> | |
| 13 </map> | |
| 14 <img src="resources/greenbox-100px.png" border="0" align="left" usemap="#image map1" /> | |
| 15 <script src="../../resources/js-test.js"></script> | |
|
Inactive
2014/08/07 15:34:22
Since you have a head, can you please move this to
| |
| 16 <script> | |
|
Inactive
2014/08/07 15:34:22
It seems like all this <script> could have stayed
| |
| 17 description("Test return value of getComputedStyle() for area tag."); | |
| 18 window.jsTestIsAsync = true; | |
| 19 var areatag = document.getElementById("areaTest"); | |
|
Inactive
2014/08/07 15:34:22
this is not a tag, so either "area" or "areaElemen
| |
| 20 | |
| 21 function runtest() { | |
|
Inactive
2014/08/07 15:34:22
"runTest()"
| |
| 22 if(window.eventSender) { | |
|
Inactive
2014/08/07 15:34:22
missing space after "if"
| |
| 23 var target = document.getElementById("areaTest"); | |
| 24 var x = target.offsetParent.offsetLeft + target.offsetLeft + target.offset Width / 2; | |
| 25 var y = target.offsetParent.offsetTop + target.offsetTop + target.offsetHe ight / 2; | |
| 26 eventSender.mouseMoveTo(x, y); | |
| 27 } | |
| 28 } | |
| 29 | |
| 30 function hoverFunc() { | |
|
Inactive
2014/08/07 15:34:22
maybe onAreaHover() ?
| |
| 31 shouldBeEqualToString("window.getComputedStyle(areatag, null).color", "rgb(0, 0, 255)"); | |
| 32 finishJSTest(); | |
| 33 } | |
| 34 </script> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |