Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / ManualTests / webgl-save-image-as.html
blob30040a78efdf887dedaf013fa8afb4e18653e0ae
1 <!DOCTYPE HTML>
2 <html>
3 <script>
4 var gl;
5 function runTest() {
6 if (window.testRunner)
7 testRunner.waitUntilDone();
9 gl = document.getElementById('canvas').getContext("webgl");
10 if (!gl) {
11 alert("No WebGL context found");
12 return;
15 gl.enable(gl.SCISSOR_TEST);
16 gl.clearColor(1, 0, 0, 1);
17 gl.clear(gl.COLOR_BUFFER_BIT);
20 </script>
21 <body onload='runTest()'>
22 Right click red square and save image. A red square image should be saved. <br>
23 <canvas id='canvas' width="100" height="100"></canvas>
24 </body>
25 </html>