Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / plugins / update-widgets-crash.html
bloba8b6ce9d7f639a95f8f3121d284603a4337fda9e
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <style type="text/css" media="screen">
6 embed {
7 position: relative;
8 width: 100px;
9 height: 100px;
11 </style>
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()
22 if (!doingTest)
23 return;
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.
28 doingTest = false;
29 victim.parentNode.removeChild(victim);
30 document.body.offsetTop;
32 if (window.testRunner)
33 testRunner.notifyDone();
36 function doTest()
38 doingTest = true;
39 document.getElementById('plugin').style.top = "120px";
40 document.body.offsetTop;
41 doingTest = false;
44 window.addEventListener('load', doTest, false);
45 </script>
46 </head>
47 <body>
49 <p>This test should not crash.</p>
50 <embed type="application/x-webkit-test-netscape"
51 onSetWindow="setWindowCalled()"
52 id="plugin">
53 <embed name="victim" type="application/x-webkit-test-netscape" id="victim">
55 </body>
56 </html>