Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / leak-observer-nonmain-world.html
blob3fd736c040193d46c3daa8164c467dd818b43a1f
1 <!DOCTYPE html>
3 <p>Test that using mutation observers from the non-main world doesn't leak the document.</p>
4 <p>Expected output of this test is LEAK: 28 WebCoreNode</p>
6 <iframe></iframe>
8 <script>
9 testRunner.dumpAsText();
10 testRunner.waitUntilDone();
12 var iframe = document.querySelector('iframe');
13 var count = 0;
14 var totalRuns = 5;
16 iframe.onload = function() {
17 if (count++ < totalRuns) {
18 testRunner.evaluateScriptInIsolatedWorld(1, 'new MutationObserver(function(){}).observe(document, {childList: true, subtree: true});');
19 iframe.srcdoc = "<body><input autofocus></body>";
20 GCController.collect();
21 } else {
22 GCController.collect();
23 testRunner.notifyDone();
27 // Need autofocus since evaluateScriptInIsolatedWorld runs in the focused frame.
28 iframe.srcdoc = "<body><input autofocus></body>";
29 </script>