Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / webgl / src / sdk / tests / conformance / rendering / gl-scissor-test.html
index 8a42c12..95eea2d 100644 (file)
 <meta charset="utf-8">
 <title>WebGL Scissor Test</title>
 <link rel="stylesheet" href="../../resources/js-test-style.css"/>
-<script src="../../debug/webgl-debug.js"></script>
 <script src="../../resources/js-test-pre.js"></script>
 <script src="../resources/webgl-test-utils.js"></script>
+<style>
+canvas {
+    border: 1px solid #000;
+    width: 64px;
+    height: 64px;
+}
+</style>
 </head>
 <body>
+<canvas id="canvas1" width="16" height="16"> </canvas>
+<canvas id="canvas2" width="16" height="16"> </canvas>
 <div id="description"></div>
 <div id="console"></div>
-<canvas id="canvas1" width="16" height="16" style="width: 40px; height: 40px;"> </canvas>
-<canvas id="canvas2" width="16" height="16" style="width: 40px; height: 40px;"> </canvas>
 <script>
 "use strict";
 description("Check if glScissor setting works.");
 
-debug("");
-debug("Canvas.getContext");
-
 var wtu = WebGLTestUtils;
 
 function test(canvas, attribs) {
@@ -60,7 +63,7 @@ function test(canvas, attribs) {
 
     var size = 16;
     for (var ii = 0; ii < size; ++ii) {
-      // clear a portion of our FBO
+      // clear a portion of the WebGL drawing buffer
       gl.scissor(ii, ii, 1, 1);
       func();
     }
@@ -96,7 +99,6 @@ function test(canvas, attribs) {
   }
 }
 
-debug("");
 debug("test antialias: false");
 test(document.getElementById("canvas1"), {antialias: false});