Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / battery-status / no-leak-on-detached-use.html
blob62e4e47995c404b3f49bd79672c8e7875643daed
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body onload="test()">
7 <script>
8 description("Check if calling navigator.getBattery() on a detached frame doesn't leak.");
10 window.jsTestIsAsync = true;
12 function test() {
13 old_nav = window.frames[0].navigator;
14 var p = document.getElementById('subframe');
15 p.parentNode.removeChild(p);
16 old_nav.getBattery();
18 testPassed('DONE');
19 finishJSTest();
21 </script>
22 <!-- iframe with some contents -->
23 <iframe src="data:text/html,<html></html>" id="subframe"></iframe>
24 </body>
25 </html>