Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / gc-2.html
blob97726c3f51dd3195debd90de312cce41a3b5093a
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <script src="../resources/js-test.js"></script>
6 <script src="../resources/gc.js"></script>
7 </head>
8 <body>
9 <script>
11 description("Test that window.crypto.subtle wrapper preserves custom properties.");
12 jsTestIsAsync = true;
14 var anotherWindowCrypto;
16 function startTest()
18 anotherWindowCrypto = frames[0].crypto;
19 shouldBeDefined(anotherWindowCrypto);
20 shouldBeDefined(anotherWindowCrypto.subtle);
22 anotherWindowCrypto.subtle.foo = "bar";
23 document.body.removeChild(document.getElementsByTagName("iframe")[0]);
24 gc();
25 setTimeout(continueTest, 10);
28 function continueTest()
30 gc();
31 setTimeout(finishTest, 10);
34 function finishTest()
36 gc();
37 shouldBe('anotherWindowCrypto.subtle.foo', '"bar"');
38 finishJSTest();
41 window.onload = startTest;
43 </script>
44 <iframe src="about:blank"></iframe>
45 </body>
46 </html>