5 <script src=
"../resources/js-test.js"></script>
6 <script src=
"../resources/gc.js"></script>
11 description("Test that window.crypto.subtle wrapper preserves custom properties.");
14 var anotherWindowCrypto
;
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]);
25 setTimeout(continueTest
, 10);
28 function continueTest()
31 setTimeout(finishTest
, 10);
37 shouldBe('anotherWindowCrypto.subtle.foo', '"bar"');
41 window
.onload
= startTest
;
44 <iframe src=
"about:blank"></iframe>