Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / focus-controller-crash-change-event.html
blob24fcc0b785ecc3b99e6cbee915fe5305ff7c2a70
1 <html>
2 <div id="b">
3 Press a key!
4 <input id="a">
5 <iframe></iframe>
6 </div>
7 <script>
8 if (window.testRunner) {
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
13 a.addEventListener("change", function() {
14 b.innerHTML = "PASS";
16 if (window.testRunner)
17 testRunner.notifyDone();
18 });
20 a.addEventListener("keyup", function() {
21 var e = document.createEvent("KeyboardEvent");
22 e.initKeyboardEvent('keydown', true, true, document.defaultView, 'U+0009', 0, false, false, false, false, false);
23 a.dispatchEvent(e);
26 document.body.offsetTop;
27 a.focus();
29 if (window.testRunner)
30 eventSender.keyDown('a');
31 </script>
32 </html>