9 <script src=
"../../../resources/js-test.js"></script>
10 <script src=
"resources/webgl-test-utils.js"> </script>
12 description('Tests that canvas does not crash on resize.');
14 <!-- The following used to cause a crash
in Efl and Qt port
-->
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.");
29 <body onload=
"start()">
30 <!-- Enable WebGL in the testing framework (without this we will fail to
31 create a GL context) -->
34 if (window
.testRunner
) {
35 testRunner
.overridePreference("WebKitWebGLEnabled", "1");
39 <canvas id=
"example"></canvas>