Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / onload-remove-renderview.html
blob6052e4e6a7772451f2f3919fdaaee606b8f357c7
1 <!DOCTYPE html>
3 <p>Passes if it does not crash in ASAN.</p>
5 <script>
6 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
11 var iframe = document.createElement('iframe');
12 iframe.onload = function() {
13 var input = document.createElement('input');
14 input.autofocus = true;
15 iframe.contentDocument.body.offsetTop;
16 iframe.contentDocument.body.appendChild(input);
17 input.onfocus = function() {
18 iframe.contentDocument.body.style.height = '100px';
19 iframe.remove();
20 if (window.testRunner)
21 testRunner.notifyDone();
25 document.documentElement.offsetTop;
26 document.documentElement.appendChild(iframe);
27 </script>