Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / webgl / canvas-resize-crash.html
blob42a6fdb8a4a0a239fc9f0916f995ad636ab22a42
1 <html>
2 <head>
3 <style>
4 #example {
5 width: 100%;
6 height: 100%;
8 </style>
9 <script src="../../../resources/js-test.js"></script>
10 <script src="resources/webgl-test-utils.js"> </script>
11 <script>
12 description('Tests that canvas does not crash on resize.');
14 <!-- The following used to cause a crash in Efl and Qt port -->
15 function start()
17 var canvas = document.getElementById('example');
18 var gl = WebGLTestUtils.create3DContext(canvas);
20 // Change the size of the canvas's backing store to match the size it is displayed.
21 canvas.width = canvas.clientWidth;
22 canvas.height = canvas.clientHeight;
25 testPassed("Canvas did not crash on resize.");
26 </script>
27 </head>
29 <body onload="start()">
30 <!-- Enable WebGL in the testing framework (without this we will fail to
31 create a GL context) -->
33 <script>
34 if (window.testRunner) {
35 testRunner.overridePreference("WebKitWebGLEnabled", "1");
37 </script>
39 <canvas id="example"></canvas>
40 </body>
41 </html>