4 document
.getElementById('console').innerHTML
+= t
+'<br>';
8 testRunner
.dumpAsText();
12 <p>Test that right-clicking on a text area properly focuses it.
</p>
14 <div id=console
></div>
16 if (window
.eventSender
) {
17 var elt
= document
.getElementsByTagName('textarea')[0];
18 eventSender
.mouseMoveTo(elt
.offsetLeft
+ 5, elt
.offsetTop
+ 5);
19 eventSender
.contextClick();
20 eventSender
.keyDown("z");
21 log(document
.getElementsByTagName("textarea")[0].value
== "z" ? "PASS" : "FAIL: No text in textarea");
23 log("Please try right-clicking on the text area below, dismissing the context menu that appears, and typing some text. The caret should be visible, and typing should work.");