Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / dom / gc-6.html
blob29e3a85410b8fc5472b60465b4e17c88cb20f2cd
1 <head>
2 <script>
4 function frameLoaded()
6 // create lots of objects to force a garbage collection
7 var i = 0;
8 var s;
9 while (i < 5000) {
10 i = i+1.11;
11 s = s + " ";
14 var output= document.getElementById("output");
16 output.innerHTML += spanB.customProperty + "<BR>";
17 output.innerHTML += spanB + "<BR>";
18 output.innerHTML += spanB.parentNode + "<BR>";
19 output.innerHTML += spanB.ownerDocument + "<BR>";
21 if (window.testRunner)
22 testRunner.notifyDone();
25 function doit()
27 var frame = document.getElementById("frame");
28 spanB = frame.contentDocument.getElementById("span-B");
29 spanB.customProperty = "B";
30 frame.onload = frameLoaded;
31 frame.src = "about:blank";
34 if (window.testRunner) {
35 testRunner.dumpAsText();
36 testRunner.waitUntilDone();
39 </script>
40 </head>
42 <body onload="doit()">
43 <div style="border: 1px solid red">
44 <p>
45 This test verifies that DOM documents are protected against garbage
46 collection but without necessarily keeping all their children alive,
47 so long as any node in the document is reachable.
48 </p>
49 <p>
50 The output should be the following pieces of text on lines by
51 themselves: "B", "[object HTMLElement]", "null", "[object HTMLDocument]".
52 </p>
53 </div>
55 <div id="output">
56 </div>
58 <iframe id="frame" src='data:text/html,<div id="div"><span id="span-A"><span id="span-B"><span id="span-C">original span</span></span></span></div>'>
59 </body>