Chromium Code Reviews| OLD | NEW | 
|---|---|
| (Empty) | |
| 1 <html> | |
| 
 
maheshkk
2014/08/06 21:44:11
Leave a comment with bug ID this test added for.
 
 | |
| 2 <head> | |
| 3 <script src="../../resources/js-test.js"></script> | |
| 4 </head> | |
| 5 <script> | |
| 6 function runtest(){ | |
| 7 if (!window.testRunner) | |
| 8 return; | |
| 9 testRunner.waitUntilDone(); | |
| 10 eventSender.mouseMoveTo(75, 75); | |
| 
 
maheshkk
2014/08/06 21:44:11
Indent the code throughout this test case.
 
 | |
| 11 } | |
| 12 function hoverFunc(){ | |
| 13 var area = document.getElementById('areaTest'); | |
| 14 var s = window.getComputedStyle(area,null); | |
| 
 
maheshkk
2014/08/06 21:44:11
area and s vars aren't used?
 
 | |
| 15 var expectedColor = "rgb(0, 0, 255)"; | |
| 16 shouldBeEqualToString("window.getComputedStyle(document.getElementById('areaTes t'), null).color", expectedColor); | |
| 
 
maheshkk
2014/08/06 21:44:11
you could remove expectedColor too and use the str
 
 | |
| 17 if (window.testRunner) | |
| 18 testRunner.notifyDone(); | |
| 19 } | |
| 20 </script> | |
| 21 <style type="text/css"> | |
| 22 area:hover{ | |
| 23 color:blue; | |
| 24 } | |
| 25 </style> | |
| 
 
maheshkk
2014/08/06 21:44:11
Move style and script tag either inside <head> or
 
 | |
| 26 <body id="body" onload="runtest()"> | |
| 27 <map id="samsung" name="imagemap1"> | |
| 28 <area id="areaTest", onmouseover="hoverFunc()" shape="rect" coords="0, 0, 100, 100" href="http://www.samsung.com" title="Link1" /> | |
| 
 
maheshkk
2014/08/06 21:44:11
You can remove some noise here, like unneeded id's
 
 | |
| 29 </map> | |
| 30 <img id="img1" src="../../accessibility/resources/cake.png" border="0" align= "left" usemap="#imagemap1" /> | |
| 31 </body> | |
| 32 </html> | |
| OLD | NEW |