5 <script src=
"../resources/js-test.js"></script>
6 <script src=
"../resources/gc.js"></script>
11 description("Test that window.crypto wrapper protects all dependencies, so it can always be used to create crypto.subtle.");
14 var anotherWindowCrypto
;
18 anotherWindowCrypto
= frames
[0].crypto
;
19 shouldBeDefined(anotherWindowCrypto
);
20 document
.body
.removeChild(document
.getElementsByTagName("iframe")[0]);
22 setTimeout(continueTest
, 10);
25 function continueTest()
28 setTimeout(finishTest
, 10);
34 shouldBeDefined(anotherWindowCrypto
.subtle
);
38 window
.onload
= startTest
;
41 <iframe src=
"about:blank"></iframe>