diff --git a/dom/canvas/WebGLContext.cpp b/dom/canvas/WebGLContext.cpp index 5bb46165e195..2d1989def2d3 100644 --- a/dom/canvas/WebGLContext.cpp +++ b/dom/canvas/WebGLContext.cpp @@ -1304,7 +1304,8 @@ WebGLContext::ClearScreen() const bool changeDrawBuffers = (mDefaultFB_DrawBuffer0 != LOCAL_GL_BACK); if (changeDrawBuffers) { - gl->Screen()->SetDrawBuffer(LOCAL_GL_BACK); + const GLenum back = LOCAL_GL_BACK; + gl->fDrawBuffers(1, &back); } GLbitfield bufferBits = LOCAL_GL_COLOR_BUFFER_BIT; @@ -1316,7 +1317,7 @@ WebGLContext::ClearScreen() ForceClearFramebufferWithDefaultValues(bufferBits, mNeedsFakeNoAlpha); if (changeDrawBuffers) { - gl->Screen()->SetDrawBuffer(mDefaultFB_DrawBuffer0); + gl->fDrawBuffers(1, &mDefaultFB_DrawBuffer0); } } diff --git a/dom/canvas/WebGLContext.h b/dom/canvas/WebGLContext.h index dafbe702306f..a7eeba956f27 100644 --- a/dom/canvas/WebGLContext.h +++ b/dom/canvas/WebGLContext.h @@ -827,8 +827,7 @@ protected: public: void Disable(GLenum cap); void Enable(GLenum cap); - bool GetStencilBits(GLint* const out_stencilBits); - bool GetChannelBits(const char* funcName, GLenum pname, GLint* const out_val); + bool GetStencilBits(GLint* out_stencilBits); virtual JS::Value GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv); void GetParameter(JSContext* cx, GLenum pname, diff --git a/dom/canvas/WebGLContextGL.cpp b/dom/canvas/WebGLContextGL.cpp index 34543116fea2..ef3716142ae8 100644 --- a/dom/canvas/WebGLContextGL.cpp +++ b/dom/canvas/WebGLContextGL.cpp @@ -994,10 +994,6 @@ WebGLContext::Hint(GLenum target, GLenum mode) switch (target) { case LOCAL_GL_GENERATE_MIPMAP_HINT: - // Deprecated and removed in desktop GL Core profiles. - if (gl->IsCoreProfile()) - return; - isValid = true; break; diff --git a/dom/canvas/WebGLContextState.cpp b/dom/canvas/WebGLContextState.cpp index ea818e4004f1..8f3563a0dcf2 100644 --- a/dom/canvas/WebGLContextState.cpp +++ b/dom/canvas/WebGLContextState.cpp @@ -73,7 +73,7 @@ StringValue(JSContext* cx, const nsAString& str, ErrorResult& rv) } bool -WebGLContext::GetStencilBits(GLint* const out_stencilBits) +WebGLContext::GetStencilBits(GLint* out_stencilBits) { *out_stencilBits = 0; if (mBoundDrawFramebuffer) { @@ -97,107 +97,9 @@ WebGLContext::GetStencilBits(GLint* const out_stencilBits) return true; } -bool -WebGLContext::GetChannelBits(const char* funcName, GLenum pname, GLint* const out_val) -{ - if (mBoundDrawFramebuffer) { - if (!mBoundDrawFramebuffer->ValidateAndInitAttachments(funcName)) - return false; - } - - if (!mBoundDrawFramebuffer) { - switch (pname) { - case LOCAL_GL_RED_BITS: - case LOCAL_GL_GREEN_BITS: - case LOCAL_GL_BLUE_BITS: - *out_val = 8; - break; - - case LOCAL_GL_ALPHA_BITS: - *out_val = (mOptions.alpha ? 8 : 0); - break; - - case LOCAL_GL_DEPTH_BITS: - if (mOptions.depth) { - const auto& glFormats = gl->GetGLFormats(); - - GLenum depthFormat = glFormats.depth; - if (mOptions.stencil && glFormats.depthStencil) { - depthFormat = glFormats.depthStencil; - } - - if (depthFormat == LOCAL_GL_DEPTH_COMPONENT16) { - *out_val = 16; - } else { - *out_val = 24; - } - } else { - *out_val = 0; - } - break; - - case LOCAL_GL_STENCIL_BITS: - *out_val = (mOptions.stencil ? 8 : 0); - break; - - default: - MOZ_CRASH("bad pname"); - } - return true; - } - - if (!gl->IsCoreProfile()) { - gl->fGetIntegerv(pname, out_val); - return true; - } - - GLenum fbAttachment = 0; - GLenum fbPName = 0; - switch (pname) { - case LOCAL_GL_RED_BITS: - fbAttachment = LOCAL_GL_COLOR_ATTACHMENT0; - fbPName = LOCAL_GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE; - break; - - case LOCAL_GL_GREEN_BITS: - fbAttachment = LOCAL_GL_COLOR_ATTACHMENT0; - fbPName = LOCAL_GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE; - break; - - case LOCAL_GL_BLUE_BITS: - fbAttachment = LOCAL_GL_COLOR_ATTACHMENT0; - fbPName = LOCAL_GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE; - break; - - case LOCAL_GL_ALPHA_BITS: - fbAttachment = LOCAL_GL_COLOR_ATTACHMENT0; - fbPName = LOCAL_GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE; - break; - - case LOCAL_GL_DEPTH_BITS: - fbAttachment = LOCAL_GL_DEPTH_ATTACHMENT; - fbPName = LOCAL_GL_FRAMEBUFFER_ATTACHMENT_DEPTH_SIZE; - break; - - case LOCAL_GL_STENCIL_BITS: - fbAttachment = LOCAL_GL_STENCIL_ATTACHMENT; - fbPName = LOCAL_GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE; - break; - - default: - MOZ_CRASH("bad pname"); - } - - gl->fGetFramebufferAttachmentParameteriv(LOCAL_GL_DRAW_FRAMEBUFFER, fbAttachment, - fbPName, out_val); - return true; -} - JS::Value WebGLContext::GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv) { - const char funcName[] = "getParameter"; - if (IsContextLost()) return JS::NullValue(); @@ -454,7 +356,11 @@ WebGLContext::GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv) return JS::Int32Value(refValue & stencilMask); } - + case LOCAL_GL_STENCIL_BITS: { + GLint stencilBits = 0; + GetStencilBits(&stencilBits); + return JS::Int32Value(stencilBits); + } case LOCAL_GL_STENCIL_CLEAR_VALUE: case LOCAL_GL_UNPACK_ALIGNMENT: case LOCAL_GL_PACK_ALIGNMENT: @@ -464,26 +370,28 @@ WebGLContext::GetParameter(JSContext* cx, GLenum pname, ErrorResult& rv) case LOCAL_GL_MAX_VERTEX_ATTRIBS: case LOCAL_GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS: case LOCAL_GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS: - case LOCAL_GL_MAX_TEXTURE_IMAGE_UNITS: { + case LOCAL_GL_MAX_TEXTURE_IMAGE_UNITS: + case LOCAL_GL_RED_BITS: + case LOCAL_GL_GREEN_BITS: + case LOCAL_GL_BLUE_BITS: { GLint i = 0; gl->fGetIntegerv(pname, &i); return JS::Int32Value(i); } - - case LOCAL_GL_RED_BITS: - case LOCAL_GL_GREEN_BITS: - case LOCAL_GL_BLUE_BITS: - case LOCAL_GL_ALPHA_BITS: - case LOCAL_GL_DEPTH_BITS: - case LOCAL_GL_STENCIL_BITS: { - // Deprecated and removed in GL Core profiles, so special handling required. - GLint val; - if (!GetChannelBits(funcName, pname, &val)) - return JS::NullValue(); - - return JS::Int32Value(val); + case LOCAL_GL_DEPTH_BITS: { + GLint i = 0; + if (!mNeedsFakeNoDepth) { + gl->fGetIntegerv(pname, &i); + } + return JS::Int32Value(i); + } + case LOCAL_GL_ALPHA_BITS: { + GLint i = 0; + if (!mNeedsFakeNoAlpha) { + gl->fGetIntegerv(pname, &i); + } + return JS::Int32Value(i); } - case LOCAL_GL_MAX_TEXTURE_SIZE: return JS::Int32Value(mImplMaxTextureSize); diff --git a/dom/canvas/WebGLExtensionTextureFloat.cpp b/dom/canvas/WebGLExtensionTextureFloat.cpp index 4568e994ee9d..a7a58939ad1f 100644 --- a/dom/canvas/WebGLExtensionTextureFloat.cpp +++ b/dom/canvas/WebGLExtensionTextureFloat.cpp @@ -32,17 +32,15 @@ WebGLExtensionTextureFloat::WebGLExtensionTextureFloat(WebGLContext* webgl) fua->AllowUnsizedTexFormat(pi, usage); }; - const bool needsSwizzle = gl->IsCoreProfile(); - MOZ_ASSERT_IF(needsSwizzle, gl->IsSupported(gl::GLFeature::texture_swizzle)); - - const bool needsSizedFormat = !gl->IsGLES(); + const bool needSizedInternal = !gl->IsGLES(); + MOZ_ASSERT_IF(needSizedInternal, gl->IsSupported(gl::GLFeature::texture_swizzle)); //////////////// pi = {LOCAL_GL_RGBA, LOCAL_GL_FLOAT}; dui = {pi.format, pi.format, pi.type}; swizzle = nullptr; - if (needsSizedFormat) { + if (needSizedInternal) { dui.internalFormat = LOCAL_GL_RGBA32F; } fnAdd(webgl::EffectiveFormat::RGBA32F); @@ -52,7 +50,7 @@ WebGLExtensionTextureFloat::WebGLExtensionTextureFloat(WebGLContext* webgl) pi = {LOCAL_GL_RGB, LOCAL_GL_FLOAT}; dui = {pi.format, pi.format, pi.type}; swizzle = nullptr; - if (needsSizedFormat) { + if (needSizedInternal) { dui.internalFormat = LOCAL_GL_RGB32F; } fnAdd(webgl::EffectiveFormat::RGB32F); @@ -62,11 +60,9 @@ WebGLExtensionTextureFloat::WebGLExtensionTextureFloat(WebGLContext* webgl) pi = {LOCAL_GL_LUMINANCE, LOCAL_GL_FLOAT}; dui = {pi.format, pi.format, pi.type}; swizzle = nullptr; - if (needsSwizzle) { + if (needSizedInternal) { dui = {LOCAL_GL_R32F, LOCAL_GL_RED, LOCAL_GL_FLOAT}; swizzle = webgl::FormatUsageInfo::kLuminanceSwizzleRGBA; - } else if (needsSizedFormat) { - dui.internalFormat = LOCAL_GL_LUMINANCE32F_ARB; } fnAdd(webgl::EffectiveFormat::Luminance32F); @@ -75,11 +71,9 @@ WebGLExtensionTextureFloat::WebGLExtensionTextureFloat(WebGLContext* webgl) pi = {LOCAL_GL_ALPHA, LOCAL_GL_FLOAT}; dui = {pi.format, pi.format, pi.type}; swizzle = nullptr; - if (needsSwizzle) { + if (needSizedInternal) { dui = {LOCAL_GL_R32F, LOCAL_GL_RED, LOCAL_GL_FLOAT}; swizzle = webgl::FormatUsageInfo::kAlphaSwizzleRGBA; - } else if (needsSizedFormat) { - dui.internalFormat = LOCAL_GL_ALPHA32F_ARB; } fnAdd(webgl::EffectiveFormat::Alpha32F); @@ -88,11 +82,9 @@ WebGLExtensionTextureFloat::WebGLExtensionTextureFloat(WebGLContext* webgl) pi = {LOCAL_GL_LUMINANCE_ALPHA, LOCAL_GL_FLOAT}; dui = {pi.format, pi.format, pi.type}; swizzle = nullptr; - if (needsSwizzle) { + if (needSizedInternal) { dui = {LOCAL_GL_RG32F, LOCAL_GL_RG, LOCAL_GL_FLOAT}; swizzle = webgl::FormatUsageInfo::kLumAlphaSwizzleRGBA; - } else if (needsSizedFormat) { - dui.internalFormat = LOCAL_GL_LUMINANCE_ALPHA32F_ARB; } fnAdd(webgl::EffectiveFormat::Luminance32FAlpha32F); } @@ -109,9 +101,10 @@ WebGLExtensionTextureFloat::IsSupported(const WebGLContext* webgl) if (!gl->IsSupported(gl::GLFeature::texture_float)) return false; - const bool needsSwizzle = gl->IsCoreProfile(); + const bool needSizedInternal = !gl->IsGLES(); const bool hasSwizzle = gl->IsSupported(gl::GLFeature::texture_swizzle); - if (needsSwizzle && !hasSwizzle) + + if (needSizedInternal && !hasSwizzle) return false; return true; diff --git a/dom/canvas/WebGLExtensionTextureHalfFloat.cpp b/dom/canvas/WebGLExtensionTextureHalfFloat.cpp index e59f9b232ee9..a5770999d67c 100644 --- a/dom/canvas/WebGLExtensionTextureHalfFloat.cpp +++ b/dom/canvas/WebGLExtensionTextureHalfFloat.cpp @@ -30,10 +30,8 @@ WebGLExtensionTextureHalfFloat::WebGLExtensionTextureHalfFloat(WebGLContext* web fua->AllowUnsizedTexFormat(pi, usage); }; - const bool needsSwizzle = gl->IsCoreProfile(); - MOZ_ASSERT_IF(needsSwizzle, gl->IsSupported(gl::GLFeature::texture_swizzle)); - - const bool needsSizedFormat = !gl->IsGLES(); + const bool needSizedInternal = !gl->IsGLES(); + MOZ_ASSERT_IF(needSizedInternal, gl->IsSupported(gl::GLFeature::texture_swizzle)); GLenum driverUnpackType = LOCAL_GL_HALF_FLOAT; if (!gl->IsSupported(gl::GLFeature::texture_half_float)) { @@ -46,7 +44,7 @@ WebGLExtensionTextureHalfFloat::WebGLExtensionTextureHalfFloat(WebGLContext* web pi = {LOCAL_GL_RGBA, LOCAL_GL_HALF_FLOAT_OES}; dui = {pi.format, pi.format, driverUnpackType}; swizzle = nullptr; - if (needsSizedFormat) { + if (needSizedInternal) { dui.internalFormat = LOCAL_GL_RGBA16F; } fnAdd(webgl::EffectiveFormat::RGBA16F); @@ -56,7 +54,7 @@ WebGLExtensionTextureHalfFloat::WebGLExtensionTextureHalfFloat(WebGLContext* web pi = {LOCAL_GL_RGB, LOCAL_GL_HALF_FLOAT_OES}; dui = {pi.format, pi.format, driverUnpackType}; swizzle = nullptr; - if (needsSizedFormat) { + if (needSizedInternal) { dui.internalFormat = LOCAL_GL_RGB16F; } fnAdd(webgl::EffectiveFormat::RGB16F); @@ -66,11 +64,9 @@ WebGLExtensionTextureHalfFloat::WebGLExtensionTextureHalfFloat(WebGLContext* web pi = {LOCAL_GL_LUMINANCE, LOCAL_GL_HALF_FLOAT_OES}; dui = {pi.format, pi.format, driverUnpackType}; swizzle = nullptr; - if (needsSwizzle) { + if (needSizedInternal) { dui = {LOCAL_GL_R16F, LOCAL_GL_RED, driverUnpackType}; swizzle = webgl::FormatUsageInfo::kLuminanceSwizzleRGBA; - } else if (needsSizedFormat) { - dui.internalFormat = LOCAL_GL_LUMINANCE16F_ARB; } fnAdd(webgl::EffectiveFormat::Luminance16F); @@ -79,11 +75,9 @@ WebGLExtensionTextureHalfFloat::WebGLExtensionTextureHalfFloat(WebGLContext* web pi = {LOCAL_GL_ALPHA, LOCAL_GL_HALF_FLOAT_OES}; dui = {pi.format, pi.format, driverUnpackType}; swizzle = nullptr; - if (needsSwizzle) { + if (needSizedInternal) { dui = {LOCAL_GL_R16F, LOCAL_GL_RED, driverUnpackType}; swizzle = webgl::FormatUsageInfo::kAlphaSwizzleRGBA; - } else if (needsSizedFormat) { - dui.internalFormat = LOCAL_GL_ALPHA16F_ARB; } fnAdd(webgl::EffectiveFormat::Alpha16F); @@ -92,11 +86,9 @@ WebGLExtensionTextureHalfFloat::WebGLExtensionTextureHalfFloat(WebGLContext* web pi = {LOCAL_GL_LUMINANCE_ALPHA, LOCAL_GL_HALF_FLOAT_OES}; dui = {pi.format, pi.format, driverUnpackType}; swizzle = nullptr; - if (needsSwizzle) { + if (needSizedInternal) { dui = {LOCAL_GL_RG16F, LOCAL_GL_RG, driverUnpackType}; swizzle = webgl::FormatUsageInfo::kLumAlphaSwizzleRGBA; - } else if (needsSizedFormat) { - dui.internalFormat = LOCAL_GL_LUMINANCE_ALPHA16F_ARB; } fnAdd(webgl::EffectiveFormat::Luminance16FAlpha16F); } @@ -116,9 +108,10 @@ WebGLExtensionTextureHalfFloat::IsSupported(const WebGLContext* webgl) return false; } - const bool needsSwizzle = gl->IsCoreProfile(); + const bool needSizedInternal = !gl->IsGLES(); const bool hasSwizzle = gl->IsSupported(gl::GLFeature::texture_swizzle); - if (needsSwizzle && !hasSwizzle) + + if (needSizedInternal && !hasSwizzle) return false; return true; diff --git a/dom/canvas/moz.build b/dom/canvas/moz.build index 3bb346817521..ffa942025cea 100644 --- a/dom/canvas/moz.build +++ b/dom/canvas/moz.build @@ -7,7 +7,7 @@ TEST_DIRS += ['compiledtest'] # Number changes to this file to avoid bug 1081323 (clobber after changing a manifest): -# 4 +# 3 MOCHITEST_MANIFESTS += [ 'test/crossorigin/mochitest.ini', diff --git a/dom/canvas/test/webgl-mochitest.ini b/dom/canvas/test/webgl-mochitest.ini index 2fe2009587ca..d6cd17dd6b4e 100644 --- a/dom/canvas/test/webgl-mochitest.ini +++ b/dom/canvas/test/webgl-mochitest.ini @@ -3,51 +3,10 @@ subsuite = webgl skip-if = ((os == 'linux') && (buildapp == 'b2g')) support-files = - webgl-mochitest/ensure-exts/ensure-ext.js webgl-mochitest/driver-info.js webgl-mochitest/es3-data.js webgl-mochitest/webgl-util.js -[webgl-mochitest/ensure-exts/test_ANGLE_instanced_arrays.html] -fail-if = (os == 'android') || (os == 'mac') -[webgl-mochitest/ensure-exts/test_EXT_blend_minmax.html] -fail-if = (os == 'android') -[webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html] -fail-if = (os == 'android') -[webgl-mochitest/ensure-exts/test_EXT_disjoint_timer_query.html] -fail-if = (os == 'android') || (os == 'linux') || (os == 'mac') || (os == 'win') -[webgl-mochitest/ensure-exts/test_EXT_frag_depth.html] -fail-if = (os == 'android') -[webgl-mochitest/ensure-exts/test_EXT_sRGB.html] -fail-if = (os == 'android') || (os == 'linux') || (os == 'mac') || (os == 'win') -[webgl-mochitest/ensure-exts/test_EXT_shader_texture_lod.html] -fail-if = (os == 'android') || (os == 'linux') || (os == 'mac') -[webgl-mochitest/ensure-exts/test_EXT_texture_filter_anisotropic.html] -fail-if = (os == 'android') || (os == 'linux') -[webgl-mochitest/ensure-exts/test_OES_standard_derivatives.html] -fail-if = (os == 'android') -[webgl-mochitest/ensure-exts/test_WEBGL_color_buffer_float.html] -fail-if = (os == 'android') -[webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_atc.html] -fail-if = (os == 'android') || (os == 'linux') || (os == 'mac') || (os == 'win') -[webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html] -fail-if = (os == 'android') || (os == 'linux') || (os == 'mac') || (os == 'win') -[webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc1.html] -# Win7 is 6.1 -fail-if = (os == 'linux') || (os == 'mac') || (os == 'win' && os_version == '6.1') -[webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_pvrtc.html] -fail-if = (os == 'android') || (os == 'linux') || (os == 'mac') || (os == 'win') -[webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_s3tc.html] -fail-if = (os == 'android') || (os == 'linux') -[webgl-mochitest/ensure-exts/test_WEBGL_depth_texture.html] -fail-if = (os == 'mac') -[webgl-mochitest/ensure-exts/test_WEBGL_draw_buffers.html] -# Win7 is 6.1 -fail-if = (os == 'android') || (os == 'win' && os_version == '6.1') - -[webgl-mochitest/ensure-exts/test_common.html] - - [webgl-mochitest/test_backbuffer_channels.html] fail-if = (os == 'b2g') [webgl-mochitest/test_depth_readpixels.html] diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js b/dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js deleted file mode 100644 index 798067d5e423..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js +++ /dev/null @@ -1,32 +0,0 @@ -'use strict'; - -function EnsureExt(name, shouldBe = true) { - var c = document.createElement('canvas'); - var gl = c.getContext('experimental-webgl'); - - if (shouldBe) { - ok(gl.getExtension(name), 'Should have extension ' + name + '.'); - } else { - ok(!gl.getExtension(name), 'Should not have extension ' + name + '.'); - } -} - -function EnsureDraftExt(name, shouldBe = true) { - SimpleTest.waitForExplicitFinish(); - - var fnEnsure = function() { - EnsureExt(name, shouldBe); - SimpleTest.finish(); - }; - - if ('SpecialPowers' in window) { - var prefStateList = [ - ['webgl.enable-draft-extensions', true], - ]; - var prefEnv = {'set': prefStateList}; - SpecialPowers.pushPrefEnv(prefEnv, fnEnsure); - } else { - console.log('Couldn\'t use SpecialPowers to enable draft extensions.'); - fnEnsure(); - } -} diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_ANGLE_instanced_arrays.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_ANGLE_instanced_arrays.html deleted file mode 100644 index 04b24d90c109..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_ANGLE_instanced_arrays.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_blend_minmax.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_blend_minmax.html deleted file mode 100644 index 903269e6b663..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_blend_minmax.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html deleted file mode 100644 index 3ac21299c686..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_disjoint_timer_query.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_disjoint_timer_query.html deleted file mode 100644 index e0b90adbbb5b..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_disjoint_timer_query.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_frag_depth.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_frag_depth.html deleted file mode 100644 index 3c7f38679178..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_frag_depth.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_sRGB.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_sRGB.html deleted file mode 100644 index da5aa0a3fbfb..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_sRGB.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_shader_texture_lod.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_shader_texture_lod.html deleted file mode 100644 index e64ff94848c5..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_shader_texture_lod.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_filter_anisotropic.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_filter_anisotropic.html deleted file mode 100644 index 877c4440bf30..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_filter_anisotropic.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_standard_derivatives.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_standard_derivatives.html deleted file mode 100644 index 3e7b7a396226..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_standard_derivatives.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_color_buffer_float.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_color_buffer_float.html deleted file mode 100644 index aeb8f271ea05..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_color_buffer_float.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_atc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_atc.html deleted file mode 100644 index 6d68f0b4e2b2..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_atc.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html deleted file mode 100644 index 21c824ad8546..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_es3.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc1.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc1.html deleted file mode 100644 index 327625c01848..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc1.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_pvrtc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_pvrtc.html deleted file mode 100644 index c95481398421..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_pvrtc.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_s3tc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_s3tc.html deleted file mode 100644 index 6ad800110648..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_s3tc.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_depth_texture.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_depth_texture.html deleted file mode 100644 index 957171c160e3..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_depth_texture.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_draw_buffers.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_draw_buffers.html deleted file mode 100644 index 18774d0d68a0..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_draw_buffers.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html deleted file mode 100644 index 3b5907a8a886..000000000000 --- a/dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - diff --git a/dom/canvas/test/webgl-mochitest/mochi-to-testcase.py b/dom/canvas/test/webgl-mochitest/mochi-to-testcase.py index 919ba232804f..bac482c3d739 100644 --- a/dom/canvas/test/webgl-mochitest/mochi-to-testcase.py +++ b/dom/canvas/test/webgl-mochitest/mochi-to-testcase.py @@ -28,8 +28,7 @@ def ReadLocalFile(include): return data -kSimpleTestReplacement = ''' - +kSimpleTestReplacement = '''\n
- -''' +\n''' fin = open(mochiPath, 'rb') fout = open(testPath, 'wb')