3 <script src=
"../../resources/js-test.js"></script>
7 description("Verify that the custom properties on a Canvas 2D rendering context object are retained across GCs.");
9 window
.jsTestIsAsync
= true;
11 if (window
.testRunner
) {
12 testRunner
.dumpAsText();
13 testRunner
.waitUntilDone();
17 canvas
= document
.createElement("canvas");
18 context
= canvas
.getContext("2d");
19 context
.customProperty
= "value";
20 shouldBeEqualToString("context.customProperty", "value");
23 context
= canvas
.getContext("2d");
24 shouldBeEqualToString("context.customProperty", "value");
28 window
.onload
= runTest
;