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();
17 // This gets called automatically from the test plugin.
18 var doingTest = false;
19 function setWindowCalled()
24 var victim = document.getElementById('victim');
25 victim.parentNode.removeChild(victim);
26 document.body.offsetTop;
28 if (window.layoutTestController)
29 layoutTestController.notifyDone();
35 document.getElementById('plugin').style.top = "120px";
36 document.body.offsetTop;
40 window.addEventListener('load', function() {
41 window.setTimeout(doTest, 0);
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">