Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / mouse-click-iframe-to-plugin.html
blob58e388eaea1d47bd2203c74eb68b81977021d7e9
1 <html>
2 <head>
3 <script>
4 function runTest() {
5 frameDocument = document.getElementById('frame').contentWindow.document;
6 frameDocument.body.innerHTML = "<textarea id=textarea cols=50 rows=5 onblur='this.style.backgroundColor=\"green\"'></textarea>";
7 var textarea = frameDocument.getElementById('textarea');
8 textarea.focus();
10 if (!window.testRunner) {
11 output.textContent = "Click on the plugin (the blue rectangle); if the text field turns green the test has passed, otherwise it has failed.";
12 } else {
13 eventSender.mouseMoveTo(60, 60);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
17 if (frameDocument.activeElement != textarea) {
18 document.getElementById('output').textContent = "PASSED";
20 testRunner.dumpAsText();
23 </script>
24 </head>
25 <body onload="runTest();">
26 <embed type="application/x-webkit-test-netscape" width="100" height="100"></embed><br>
27 <iframe id="frame" width="640"></iframe>
28 <div id="output">FAILED</div>
29 </body>
30 </html>