Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / gc-3.html
blobfcf2f369fe53e600f28173c5084e962b3972e263
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 wrapper protects all dependencies, so it can always be used to create crypto.subtle.");
12 jsTestIsAsync = true;
14 var anotherWindowCrypto;
16 function startTest()
18 anotherWindowCrypto = frames[0].crypto;
19 shouldBeDefined(anotherWindowCrypto);
20 document.body.removeChild(document.getElementsByTagName("iframe")[0]);
21 gc();
22 setTimeout(continueTest, 10);
25 function continueTest()
27 gc();
28 setTimeout(finishTest, 10);
31 function finishTest()
33 gc();
34 shouldBeDefined(anotherWindowCrypto.subtle);
35 finishJSTest();
38 window.onload = startTest;
40 </script>
41 <iframe src="about:blank"></iframe>
42 </body>
43 </html>