OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto
r-protocol-test.js"></script> |
4 <script> | 4 <script> |
5 if (window.testRunner) { | 5 if (window.testRunner) { |
6 testRunner.dumpAsText(); | 6 testRunner.dumpAsText(); |
7 testRunner.waitUntilDone(); | 7 testRunner.waitUntilDone(); |
8 } | 8 } |
9 | 9 |
10 function createDetachedDomTreeAndRunTest() | 10 function createDetachedDomTreeAndRunTest() |
11 { | 11 { |
12 gc(); | 12 gc(); |
13 gc(); | |
14 window.retaining_wrapper = document.createElement("div"); | 13 window.retaining_wrapper = document.createElement("div"); |
15 var t = document.createElement("div"); | 14 var t = document.createElement("div"); |
16 retaining_wrapper.appendChild(t); | 15 retaining_wrapper.appendChild(t); |
17 t.appendChild(document.createElement("div")); | 16 t.appendChild(document.createElement("div")); |
18 | 17 |
19 runTest(); | 18 runTest(); |
20 } | 19 } |
21 | 20 |
22 function test() | 21 function test() |
23 { | 22 { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 } | 71 } |
73 | 72 |
74 InspectorTest.takeHeapSnapshot(checkHeapSnapshot); | 73 InspectorTest.takeHeapSnapshot(checkHeapSnapshot); |
75 } | 74 } |
76 </script> | 75 </script> |
77 </head> | 76 </head> |
78 <body onload="createDetachedDomTreeAndRunTest()"> | 77 <body onload="createDetachedDomTreeAndRunTest()"> |
79 <p>Test that all nodes from the detached DOM tree will get into one group in the
heap snapshot. <a href="https://bugs.webkit.org/show_bug.cgi?id=107819">Bug 107
819.</p> | 78 <p>Test that all nodes from the detached DOM tree will get into one group in the
heap snapshot. <a href="https://bugs.webkit.org/show_bug.cgi?id=107819">Bug 107
819.</p> |
80 </body> | 79 </body> |
81 </html> | 80 </html> |
OLD | NEW |