| Index: content/test/data/media/getusermedia-depth-capture.html
|
| diff --git a/content/test/data/media/getusermedia-depth-capture.html b/content/test/data/media/getusermedia-depth-capture.html
|
| index 0dc5953c89482a28530627ed5948a760c1bbfef4..1ffde99f9469d3932fd732ebd54f1452c43a3f84 100644
|
| --- a/content/test/data/media/getusermedia-depth-capture.html
|
| +++ b/content/test/data/media/getusermedia-depth-capture.html
|
| @@ -144,9 +144,9 @@
|
| canvas.width = 96;
|
| canvas.height = 96;
|
| var gl = canvas.getContext('webgl');
|
| - if(!gl)
|
| + if (!gl)
|
| return error({name:"WebGL is not available."});
|
| - if(!gl.getExtension("OES_texture_float"))
|
| + if (!gl.getExtension("OES_texture_float"))
|
| return error({name:"OES_texture_float extension is not available."});
|
| return testVideoToTexture(gl, video, gl.RGBA, gl.RGBA, gl.FLOAT,
|
| readAndVerifyRGBA32F, success, error);
|
| @@ -158,7 +158,7 @@
|
| canvas.width = 96;
|
| canvas.height = 96;
|
| var gl = canvas.getContext('webgl');
|
| - if(!gl)
|
| + if (!gl)
|
| return error({name:"WebGL is not available."});
|
| return testVideoToTexture(gl, video, gl.RGBA, gl.RGBA, gl.UNSIGNED_BYTE,
|
| readAndVerifyRGBA8, success, error);
|
| @@ -170,9 +170,10 @@
|
| canvas.width = 96;
|
| canvas.height = 96;
|
| var gl = canvas.getContext('webgl2');
|
| - if(!gl)
|
| + if (!gl)
|
| return error({name:"WebGL2 is not available."});
|
| - var color_buffer_float_ext = gl.getExtension('EXT_color_buffer_float');
|
| + if (!gl.getExtension('EXT_color_buffer_float'))
|
| + return error({name:"EXT_color_buffer_float extension is not available."});
|
| return testVideoToTexture(gl, video, gl.R32F, gl.RED, gl.FLOAT,
|
| readAndVerifyR32F, success, error);
|
| }
|
|
|