5 <style type=
"text/css" media=
"screen">
12 <script type=
"text/javascript" charset=
"utf-8">
13 if (window.testRunner) {
14 testRunner.dumpAsText();
15 testRunner.waitUntilDone();
18 // This gets called automatically from the test plugin.
19 var doingTest = false;
20 function setWindowCalled()
25 var victim = document.getElementById('victim');
26 // Mark test as done now because we may re-enter when the
27 // child is removed or we force layout.
29 victim.parentNode.removeChild(victim);
30 document.body.offsetTop;
32 if (window.testRunner)
33 testRunner.notifyDone();
39 document.getElementById('plugin').style.top =
"120px";
40 document.body.offsetTop;
44 window.addEventListener('load', doTest, false);
49 <p>This test should not crash.
</p>
50 <embed type=
"application/x-webkit-test-netscape"
51 onSetWindow=
"setWindowCalled()"
53 <embed name=
"victim" type=
"application/x-webkit-test-netscape" id=
"victim">