| Index: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-linear.html
|
| diff --git a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-canvas.html b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-linear.html
|
| similarity index 74%
|
| copy from LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-canvas.html
|
| copy to LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-linear.html
|
| index fe7a7bf400462a341514cf1520476e7c8be1df08..3008091687b88faa40aabd7f8124f24a000a6b9d 100644
|
| --- a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-canvas.html
|
| +++ b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-linear.html
|
| @@ -33,28 +33,22 @@
|
| <script src="../../resources/js-test-pre.js"></script>
|
| <script src="../resources/webgl-test.js"></script>
|
| <script src="../resources/webgl-test-utils.js"></script>
|
| -<script src="../resources/tex-image-and-sub-image-2d-with-canvas.js"></script>
|
| +<script src="../resources/oes-texture-float-and-half-float-linear.js"></script>
|
| <script>
|
| "use strict";
|
| -function testPrologue(gl) {
|
| - var ext = null;
|
| -
|
| - if (!(ext = gl.getExtension("OES_texture_half_float"))) {
|
| - testPassed("No OES_texture_half_float support -- this is legal");
|
| +function testPrologue(gl, extensionTypeName) {
|
| + if (!gl.getExtension(extensionTypeName)) {
|
| + testPassed("No " + extensionTypeName + " support -- this is legal");
|
| return false;
|
| }
|
| -
|
| - // Required by the test harness.
|
| - gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES;
|
| -
|
| - testPassed("Successfully enabled OES_texture_half_float extension");
|
| + testPassed("Successfully enabled " + extensionTypeName + " extension");
|
| return true;
|
| }
|
| </script>
|
| </head>
|
| -<body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'>
|
| -<canvas id="example" width="32" height="32"></canvas>
|
| +<body onload='generateTest("OES_texture_float", "OES_texture_float_linear", "FLOAT", testPrologue)()'>
|
| <div id="description"></div>
|
| +<canvas id="canvas" style="width: 50px; height: 50px;"> </canvas>
|
| <div id="console"></div>
|
| </body>
|
| </html>
|
|
|