OLD | NEW |
1 <script> | 1 <script> |
2 if (window.testRunner) | 2 if (window.testRunner) |
3 testRunner.dumpEditingCallbacks(); | 3 testRunner.dumpEditingCallbacks(); |
4 </script> | 4 </script> |
5 <div style="width: 400px; height: 50px; padding: 25px 0 0 25px; background: yell
ow;"><div contenteditable="true" style="background: white; height:20px; width:10
0px"></div></div> | 5 <div style="width: 400px; height: 50px; padding: 25px 0 0 25px; background: yell
ow;"><div contenteditable="true" style="background: white; height:20px; width:10
0px"></div></div> |
6 <p>This test clicks inside an editable div element, and must result in the eleme
nt receiving focus. If the test succeeds the element should have a focus ring.</
p> | 6 <p>This test clicks inside an editable div element, and must result in the eleme
nt receiving focus. If the test succeeds the element should have a focus ring.</
p> |
7 <script> | 7 <script> |
8 if (window.eventSender) { | 8 if (window.eventSender) { |
9 // Mouse events only work after an initial layout | |
10 document.body.offsetLeft; | |
11 eventSender.mouseMoveTo(100, 45); | 9 eventSender.mouseMoveTo(100, 45); |
12 eventSender.mouseDown(); | 10 eventSender.mouseDown(); |
13 eventSender.mouseUp(); | 11 eventSender.mouseUp(); |
14 } | 12 } |
15 </script> | 13 </script> |
OLD | NEW |