From 26a029d407be480d791972afb5975cf62c9360a6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 02:47:55 +0200 Subject: Adding upstream version 124.0.1. Signed-off-by: Daniel Baumann --- .../test/webgl-mochitest/ensure-exts/ensure-ext.js | 42 +++++++ .../ensure-exts/test_ANGLE_instanced_arrays.html | 17 +++ .../ensure-exts/test_EXT_blend_minmax.html | 17 +++ .../test_EXT_color_buffer_half_float.html | 17 +++ .../ensure-exts/test_EXT_disjoint_timer_query.html | 17 +++ .../ensure-exts/test_EXT_float_blend.html | 18 +++ .../ensure-exts/test_EXT_frag_depth.html | 17 +++ .../webgl-mochitest/ensure-exts/test_EXT_sRGB.html | 17 +++ .../ensure-exts/test_EXT_shader_texture_lod.html | 17 +++ .../test_EXT_texture_compression_bptc.html | 17 +++ .../test_EXT_texture_compression_rgtc.html | 17 +++ .../test_EXT_texture_filter_anisotropic.html | 17 +++ .../ensure-exts/test_EXT_texture_norm16.html | 23 ++++ .../ensure-exts/test_OES_draw_buffers_indexed.html | 18 +++ .../ensure-exts/test_OES_fbo_render_mipmap.html | 18 +++ .../ensure-exts/test_OES_standard_derivatives.html | 17 +++ .../ensure-exts/test_OVR_multiview2.html | 18 +++ .../ensure-exts/test_WEBGL_color_buffer_float.html | 17 +++ .../test_WEBGL_compressed_texture_astc.html | 17 +++ .../test_WEBGL_compressed_texture_etc.html | 17 +++ .../test_WEBGL_compressed_texture_etc1.html | 17 +++ .../test_WEBGL_compressed_texture_pvrtc.html | 17 +++ .../test_WEBGL_compressed_texture_s3tc.html | 17 +++ .../ensure-exts/test_WEBGL_depth_texture.html | 17 +++ .../ensure-exts/test_WEBGL_draw_buffers.html | 17 +++ .../ensure-exts/test_WEBGL_provoking_vertex.html | 18 +++ .../webgl-mochitest/ensure-exts/test_common.html | 128 ++++++++++++++++++++ .../webgl-mochitest/ensure-exts/test_implicit.html | 129 +++++++++++++++++++++ 28 files changed, 735 insertions(+) create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_ANGLE_instanced_arrays.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_blend_minmax.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_disjoint_timer_query.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_float_blend.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_frag_depth.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_sRGB.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_shader_texture_lod.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_bptc.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_rgtc.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_filter_anisotropic.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_norm16.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_draw_buffers_indexed.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_fbo_render_mipmap.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_standard_derivatives.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_OVR_multiview2.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_color_buffer_float.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_astc.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc1.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_pvrtc.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_s3tc.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_depth_texture.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_draw_buffers.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_provoking_vertex.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html create mode 100644 dom/canvas/test/webgl-mochitest/ensure-exts/test_implicit.html (limited to 'dom/canvas/test/webgl-mochitest/ensure-exts') diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js b/dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js new file mode 100644 index 0000000000..850a27caaf --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/ensure-ext.js @@ -0,0 +1,42 @@ +"use strict"; + +function EnsureExt(extName, shouldHave = true) { + EnsureExtFor("webgl", extName, shouldHave); + EnsureExtFor("webgl2", extName, shouldHave); +} + +function EnsureExtFor(contextType, extName, shouldHave = true) { + var c = document.createElement("canvas"); + var gl = c.getContext(contextType); + + if (!gl) { + todo(false, "Failed to create context: " + contextType); + return; + } + + var ext = gl.getExtension(extName); + var haveText = " have " + contextType + " extension " + extName + "."; + if (shouldHave) { + ok(ext, "Should" + haveText); + } else { + ok(!ext, "Should not" + haveText); + } +} + +function Lastly_WithDraftExtsEnabled(func) { + SimpleTest.waitForExplicitFinish(); + + var fnEnsure = function () { + func(); + 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 new file mode 100644 index 0000000000..5905539a49 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_ANGLE_instanced_arrays.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..46b135b799 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_blend_minmax.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..443c7ab70a --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_color_buffer_half_float.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..af94cbc658 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_disjoint_timer_query.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_float_blend.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_float_blend.html new file mode 100644 index 0000000000..9da0d761ab --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_float_blend.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..9dbac9881b --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_frag_depth.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..cbdde000ac --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_sRGB.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..c3a51c0c9d --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_shader_texture_lod.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_bptc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_bptc.html new file mode 100644 index 0000000000..2323da591d --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_bptc.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_rgtc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_rgtc.html new file mode 100644 index 0000000000..dbba5382ce --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_compression_rgtc.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..877c4440bf --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_filter_anisotropic.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_norm16.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_norm16.html new file mode 100644 index 0000000000..0a636dc674 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_EXT_texture_norm16.html @@ -0,0 +1,23 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_draw_buffers_indexed.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_draw_buffers_indexed.html new file mode 100644 index 0000000000..1d5b8b7341 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_draw_buffers_indexed.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_fbo_render_mipmap.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_fbo_render_mipmap.html new file mode 100644 index 0000000000..e0439d3fa8 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_fbo_render_mipmap.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..359726256a --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OES_standard_derivatives.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_OVR_multiview2.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OVR_multiview2.html new file mode 100644 index 0000000000..4a44a20611 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_OVR_multiview2.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..9a88b27712 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_color_buffer_float.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_astc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_astc.html new file mode 100644 index 0000000000..6a9d720024 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_astc.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html new file mode 100644 index 0000000000..7adaafbc82 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..327625c018 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_etc1.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..c954813984 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_pvrtc.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..6ad8001106 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_compressed_texture_s3tc.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..6d8a864c00 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_depth_texture.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..0683516350 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_draw_buffers.html @@ -0,0 +1,17 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_provoking_vertex.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_provoking_vertex.html new file mode 100644 index 0000000000..76af23b87f --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_WEBGL_provoking_vertex.html @@ -0,0 +1,18 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html new file mode 100644 index 0000000000..8620a66f83 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_common.html @@ -0,0 +1,128 @@ + + + + + + + + + + + + diff --git a/dom/canvas/test/webgl-mochitest/ensure-exts/test_implicit.html b/dom/canvas/test/webgl-mochitest/ensure-exts/test_implicit.html new file mode 100644 index 0000000000..e3ce1ad130 --- /dev/null +++ b/dom/canvas/test/webgl-mochitest/ensure-exts/test_implicit.html @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + -- cgit v1.2.3