Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / resources / common-losing-renderer-on-click.js
blob88ed19bfd7286d8d22a950816a31c2022744198b
1 function testLosingRendererOnClick()
3     if (window.testRunner)
4         testRunner.dumpAsText();
5     var input = document.getElementById("test");
6     var x = input.offsetLeft + input.offsetWidth - 8;
7     var y = input.offsetTop + input.offsetHeight - 7;
8     if (window.eventSender) {
9         eventSender.mouseMoveTo(x, y);
10         eventSender.mouseDown();
11         eventSender.mouseUp();
12     }