blob: fff86ac9f2cee848e84d7f2bbf9a1c818875500d [file] [log] [blame]
importScripts('../../../../resources/js-test-pre.js');
description("Test that self.crypto.subtle wrapper preserves custom properties.");
jsTestIsAsync = true;
function startTest()
{
self.crypto.subtle.foo = "bar";
gc();
setTimeout(continueTest, 10);
}
function continueTest()
{
gc();
setTimeout(finishTest, 10);
}
function finishTest()
{
gc();
shouldBe('self.crypto.subtle.foo', '"bar"');
finishJSTest();
}
startTest();