Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script> | |
| 4 function test() | |
| 5 { | |
| 6 if (window.testRunner) { | |
| 7 testRunner.dumpAsText(); | |
|
tkent
2013/11/22 05:11:55
We should call dumpAsText earlier.
e.g.
<script>
| |
| 8 testRunner.waitUntilDone(); | |
|
tkent
2013/11/22 05:11:55
Calling waitUntilDone() and noifyDone() in one fun
| |
| 9 } | |
| 10 if (window.eventSender) { | |
| 11 var testEle = document.getElementById('testButton'); | |
| 12 eventSender.mouseMoveTo(testEle.offsetLeft+testEle.offsetWidth/2, testEl e.offsetTop+testEle.offsetHeight/2); | |
|
tkent
2013/11/22 05:11:55
Need spaces around '+' and '/'
| |
| 13 eventSender.mouseDown(); | |
| 14 eventSender.mouseUp(); | |
| 15 } | |
| 16 testRunner.notifyDone(); | |
| 17 } | |
| 18 | |
| 19 function btnClicked() | |
| 20 { | |
| 21 document.getElementById('output').innerHTML = "Button is clicked."; | |
| 22 } | |
| 23 </script> | |
| 24 </head> | |
| 25 <body onload="test()"> | |
| 26 <button id="testButton" style="text-indent: -99999999px;" href="#none" onclick=" btnClicked()" title="newWindow">Move</button> | |
| 27 <p id="output"> | |
| 28 </p> | |
| 29 </body> | |
| 30 </html> | |
| OLD | NEW |