Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / crypto / crypto-gc.html
blob18e14df776a901847e625f9346cb067da769bf7e
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 preserves custom properties.");
12 jsTestIsAsync = true;
14 function startTest()
16 window.crypto.foo = "bar";
17 gc();
18 setTimeout(continueTest, 10);
21 function continueTest()
23 gc();
24 setTimeout(finishTest, 10);
27 function finishTest()
29 gc();
30 shouldBe('window.crypto.foo', '"bar"');
31 finishJSTest();
34 window.onload = startTest;
36 </script>
37 </body>
38 </html>