Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Unified Diff: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-linear.html

Issue 14860016: Implement OES_texture_float_linear and OES_texture_half_float_linear extensions in WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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>

Powered by Google App Engine
This is Rietveld 408576698