Index: LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html |
diff --git a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-video.html b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html |
similarity index 82% |
copy from LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-video.html |
copy to LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html |
index 0deb7aee8a799fc17c2d39a4445fa9f485272a0d..17ba65d1996931582e383cfabfb37cffcf952289 100644 |
--- a/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-float-with-video.html |
+++ b/LayoutTests/webgl/resources/webgl_test_files/conformance/extensions/oes-texture-half-float-with-video.html |
@@ -1,7 +1,7 @@ |
<!-- |
/* |
-** Copyright (c) 2012 The Khronos Group Inc. |
+** Copyright (c) 2013 The Khronos Group Inc. |
** |
** Permission is hereby granted, free of charge, to any person obtaining a |
** copy of this software and/or associated documentation files (the |
@@ -37,17 +37,22 @@ |
<script> |
"use strict"; |
function testPrologue(gl) { |
- if (!gl.getExtension("OES_texture_float")) { |
- testPassed("No OES_texture_float support -- this is legal"); |
+ var ext = null; |
+ |
+ if (!(ext = gl.getExtension("OES_texture_half_float"))) { |
+ testPassed("No OES_texture_half_float support -- this is legal"); |
return false; |
} |
- testPassed("Successfully enabled OES_texture_float extension"); |
+ // Required by the test harness. |
+ gl.HALF_FLOAT_OES = ext.HALF_FLOAT_OES; |
+ |
+ testPassed("Successfully enabled OES_texture_half_float extension"); |
return true; |
} |
</script> |
</head> |
-<body onload='generateTest("RGBA", "FLOAT", testPrologue)()'> |
+<body onload='generateTest("RGBA", "HALF_FLOAT_OES", testPrologue)()'> |
<canvas id="example" width="32" height="32"></canvas> |
<div id="description"></div> |
<div id="console"></div> |