5 <style type="text/css" media="screen">
12 <script type="text/javascript" charset="utf-8">
13 if (window.layoutTestController) {
14 layoutTestController.dumpAsText();
15 layoutTestController.waitUntilDone();
18 // This gets called automatically from the test plugin.
19 var doingTest = false;
20 function setWindowCalled()
25 var victim = document.getElementById('victim');
26 victim.parentNode.removeChild(victim);
27 document.body.offsetTop;
29 if (window.layoutTestController)
30 layoutTestController.notifyDone();
37 document.getElementById('plugin').style.top = "120px";
38 document.body.offsetTop;
42 window.addEventListener('load', doTest, false);
47 <p>This test should not crash.</p>
48 <embed type="application/x-webkit-test-netscape"
49 onSetWindow="setWindowCalled()"
51 <embed name="victim" type="application/x-webkit-test-netscape" id="victim">