| <script src="../../resources/js-test-pre.js"></script> |
| description("Test that window.crypto.subtle wrapper preserves custom properties."); |
| anotherWindowCrypto = frames[0].crypto; |
| shouldBeDefined(anotherWindowCrypto); |
| shouldBeDefined(anotherWindowCrypto.subtle); |
| anotherWindowCrypto.subtle.foo = "bar"; |
| document.body.removeChild(document.getElementsByTagName("iframe")[0]); |
| setTimeout(continueTest, 10); |
| setTimeout(finishTest, 10); |
| shouldBe('anotherWindowCrypto.subtle.foo', '"bar"'); |
| window.onload = startTest; |
| <iframe src="about:blank"></iframe> |
| <script src="../../resources/js-test-post.js"></script> |