| Index: LayoutTests/crypto/crypto-gc.html
|
| diff --git a/LayoutTests/crypto/crypto-gc.html b/LayoutTests/crypto/crypto-gc.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..18e14df776a901847e625f9346cb067da769bf7e
|
| --- /dev/null
|
| +++ b/LayoutTests/crypto/crypto-gc.html
|
| @@ -0,0 +1,38 @@
|
| +<!DOCTYPE html>
|
| +<html>
|
| +<head>
|
| +<meta charset="utf-8">
|
| +<script src="../resources/js-test.js"></script>
|
| +<script src="../resources/gc.js"></script>
|
| +</head>
|
| +<body>
|
| +<script>
|
| +
|
| +description("Test that window.crypto wrapper preserves custom properties.");
|
| +jsTestIsAsync = true;
|
| +
|
| +function startTest()
|
| +{
|
| + window.crypto.foo = "bar";
|
| + gc();
|
| + setTimeout(continueTest, 10);
|
| +}
|
| +
|
| +function continueTest()
|
| +{
|
| + gc();
|
| + setTimeout(finishTest, 10);
|
| +}
|
| +
|
| +function finishTest()
|
| +{
|
| + gc();
|
| + shouldBe('window.crypto.foo', '"bar"');
|
| + finishJSTest();
|
| +}
|
| +
|
| +window.onload = startTest;
|
| +
|
| +</script>
|
| +</body>
|
| +</html>
|
|
|