Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / webgl / context-gc-custom-properties.html
blob590de61d111bdc5dc59e1b2ebcf3907a864cebc6
1 <html>
2 <head>
3 <script src="../../../resources/js-test.js"></script>
4 <script src="resources/webgl-test.js"></script>
5 </head>
6 <body>
7 <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();
17 function runTest() {
18 canvas = document.createElement("canvas");
19 context = create3DContext(canvas);
20 context.customProperty = "value";
21 shouldBeEqualToString("context.customProperty", "value");
22 context = null;
23 gc();
24 context = create3DContext(canvas);
25 shouldBeEqualToString("context.customProperty", "value");
26 finishJSTest();
29 window.onload = runTest;
30 </script>
31 </body>
32 </html>