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