Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / focus-change-assertion.html
blobd5c6481237cd561bc95994219e41966da91eb18f
1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3 <body tabindex=1>
4 <input type="button">
5 <script>
6 var test = async_test('Do not cause an assertion failure in Document::setFocusedElement.');
7 window.onload = function() {
8 var input = document.querySelector('input');
9 input.onfocus = function() { test.done(); };
10 test.step(function() {
11 document.body.addEventListener('focusout', function() {
12 input.type = 'text'
13 });
14 document.body.focus();
15 input.focus();
16 });
18 </script>
19 </body>