3 <script src=
"../../../resources/js-test.js"></script>
4 <script src=
"resources/webgl-test.js"></script>
8 description("Verify that the custom properties on a WebGL rendering context object are retained across GCs.");
10 window
.jsTestIsAsync
= true;
12 if (window
.testRunner
) {
13 testRunner
.dumpAsText();
14 testRunner
.waitUntilDone();
18 canvas
= document
.createElement("canvas");
19 context
= create3DContext(canvas
);
20 context
.customProperty
= "value";
21 shouldBeEqualToString("context.customProperty", "value");
24 context
= create3DContext(canvas
);
25 shouldBeEqualToString("context.customProperty", "value");
29 window
.onload
= runTest
;