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