| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <body onload="autoTest()"> | 2 <body onload="autoTest()"> |
| 3 <script> | 3 <script> |
| 4 function log(message) | 4 function log(message) |
| 5 { | 5 { |
| 6 var item = document.createElement("li"); | 6 var item = document.createElement("li"); |
| 7 item.appendChild(document.createTextNode(message)); | 7 item.appendChild(document.createTextNode(message)); |
| 8 document.getElementById('log').appendChild(item); | 8 document.getElementById('log').appendChild(item); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 <div style='height: 50; width: 50; background:blue;top:100;left:300; position:ab
solute;' id='t5_1' | 77 <div style='height: 50; width: 50; background:blue;top:100;left:300; position:ab
solute;' id='t5_1' |
| 78 onMouseOver=" | 78 onMouseOver=" |
| 79 logMouseEvent(event); | 79 logMouseEvent(event); |
| 80 document.body.removeChild(document.getElementById('t5_1')); | 80 document.body.removeChild(document.getElementById('t5_1')); |
| 81 " | 81 " |
| 82 onMouseOut="logMouseEvent(event)">5</div> | 82 onMouseOut="logMouseEvent(event)">5</div> |
| 83 | 83 |
| 84 <!-- 6: Enter a different document --> | 84 <!-- 6: Enter a different document --> |
| 85 <iframe style='height: 50; width: 50; top:100;left:350; position:absolute; borde
r-width:0' src='resources/mouseover-mouseout-iframe.html' | 85 <iframe style='height: 50; width: 50; top:100;left:350; position:absolute; borde
r-width:0' src='resources/mouseover-mouseout-iframe.html' |
| 86 onMouseOver="logMouseEvent(event)" | 86 onMouseOver="logMouseEvent(event)" |
| 87 onMouseOut=" | 87 onMouseOut="logMouseEvent(event)" |
| 88 logMouseEvent(event); | |
| 89 if (top.document.getElementById('log').innerHTML == top.document.get
ElementById('exp').innerHTML) { | |
| 90 top.document.getElementById('success').style.display = 'block'; | |
| 91 } | |
| 92 " | |
| 93 id="frame6" | 88 id="frame6" |
| 94 ></iframe> | 89 ></iframe> |
| 95 | 90 |
| 96 <iframe id=invisible_frame style="width:0; height:0; border-width:0"></iframe> | 91 <iframe id=invisible_frame style="width:0; height:0; border-width:0"></iframe> |
| 97 | 92 |
| 98 <table border=1 width="100%" style='top:200; position:absolute'> | 93 <table border=1 width="100%" style='top:200; position:absolute'> |
| 99 <tr><td width="50%">Log</td><td>Expected results</td></tr> | 94 <tr><td width="50%">Log</td></tr> |
| 100 <tr> | 95 <tr> |
| 101 <td id=log style="vertical-align:top"></td> | 96 <td id=log style="vertical-align:top"></td> |
| 102 <td id=exp style="vertical-align:top"><li>mouseover on t1_1</li><li>mouseout
on t1_1</li><li>mouseover on t1_2</li><li>mouseout on t1_2</li><li>mouseover on
t2_1</li><li>mouseout on t2_1</li><li>mouseover on t2_2</li><li>mouseout on t2_
2</li><li>mouseover on t3_1</li><li>mouseover on t3_2</li><li>mouseout on t3_2</
li><li>mouseover on t4_1</li><li>mouseover on t4_2</li><li>mouseout on t4_2</li>
<li>mouseover on t5_1</li><li>mouseout on t5_1</li><li>mouseover on t5_2</li><li
>mouseout on t5_2</li><li>mouseover on frame6</li><li>mouseover on t6</li><li>mo
useout on t6</li><li>mouseout on frame6</li></td> | |
| 103 </tr> | 97 </tr> |
| 104 </table> | 98 </table> |
| 105 | 99 |
| 106 <div style='height: 50; width: 300; top:100;left:100; position:absolute; display
:none' id='success'><br><center>SUCCESS</center></div> | |
| 107 | |
| 108 <script> | 100 <script> |
| 109 function autoTest() { | 101 function autoTest() { |
| 110 if (window.testRunner) { | 102 if (window.testRunner) { |
| 111 testRunner.dumpAsText(); | 103 testRunner.dumpAsText(); |
| 112 | 104 |
| 113 eventSender.mouseMoveTo(1,1); | 105 eventSender.mouseMoveTo(1,1); |
| 114 eventSender.mouseDown(); | 106 eventSender.mouseDown(); |
| 115 eventSender.mouseUp(); | 107 eventSender.mouseUp(); |
| 116 | 108 |
| 117 eventSender.mouseMoveTo(125, 125); | 109 eventSender.mouseMoveTo(125, 125); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 134 eventSender.mouseMoveTo(380, 125); | 126 eventSender.mouseMoveTo(380, 125); |
| 135 eventSender.mouseMoveTo(385, 125); | 127 eventSender.mouseMoveTo(385, 125); |
| 136 | 128 |
| 137 eventSender.mouseMoveTo(1, 1); | 129 eventSender.mouseMoveTo(1, 1); |
| 138 } | 130 } |
| 139 } | 131 } |
| 140 </script> | 132 </script> |
| 141 | 133 |
| 142 </body> | 134 </body> |
| 143 </html> | 135 </html> |
| OLD | NEW |