Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / associatedFormControls-leak-nodes.html
blob40612b1c2fff41b453594618acc6694dc6d81454
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <iframe id="frame"></iframe>
6 <script src="../../resources/js-test.js"></script>
7 <script>
8 if (!window.internals) {
9 debug("This test only runs on \"content_shell --run-layout-test\", as it requires existence of window.internals.");
10 } else {
11 testRunner.waitUntilDone();
12 window.jsTestIsAsync = true;
13 var documentsBefore;
14 var documentsAfter;
15 asyncGC(function() {
16 documentsBefore = window.internals.numberOfLiveDocuments();
18 var frame = document.getElementById('frame');
19 frame.contentDocument.body.innerHTML = '<form></form>';
20 document.body.removeChild(frame);
21 frame = null;
23 asyncGC(function() {
24 documentsAfter = window.internals.numberOfLiveDocuments();
26 // -1 is from removing frame itself.
27 shouldBe('documentsBefore - 1', 'documentsAfter');
28 finishJSTest();
29 });
30 });
32 </script>
33 </body>
34 </html>