| <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.webkitSubtle); |
| anotherWindowCrypto.webkitSubtle.foo = "bar"; |
| document.body.removeChild(document.getElementsByTagName("iframe")[0]); |
| setTimeout(continueTest, 10); |
| setTimeout(finishTest, 10); |
| shouldBe('anotherWindowCrypto.webkitSubtle.foo', '"bar"'); |
| window.onload = startTest; |
| <iframe src="about:blank"></iframe> |
| <script src="../resources/js-test-post.js"></script> |