From 36d22d82aa202bb199967e9512281e9a53db42c9 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 21:33:14 +0200 Subject: Adding upstream version 115.7.0esr. Signed-off-by: Daniel Baumann --- testing/web-platform/tests/webgl/META.yml | 2 ++ .../web-platform/tests/webgl/bufferSubData.html | 26 +++++++++++++++++ testing/web-platform/tests/webgl/common.js | 13 +++++++++ .../tests/webgl/compressedTexImage2D.html | 30 ++++++++++++++++++++ .../tests/webgl/compressedTexSubImage2D.html | 30 ++++++++++++++++++++ testing/web-platform/tests/webgl/idlharness.any.js | 15 ++++++++++ testing/web-platform/tests/webgl/texImage2D.html | 20 +++++++++++++ .../web-platform/tests/webgl/texSubImage2D.html | 20 +++++++++++++ .../web-platform/tests/webgl/uniformMatrixNfv.html | 33 ++++++++++++++++++++++ 9 files changed, 189 insertions(+) create mode 100644 testing/web-platform/tests/webgl/META.yml create mode 100644 testing/web-platform/tests/webgl/bufferSubData.html create mode 100644 testing/web-platform/tests/webgl/common.js create mode 100644 testing/web-platform/tests/webgl/compressedTexImage2D.html create mode 100644 testing/web-platform/tests/webgl/compressedTexSubImage2D.html create mode 100644 testing/web-platform/tests/webgl/idlharness.any.js create mode 100644 testing/web-platform/tests/webgl/texImage2D.html create mode 100644 testing/web-platform/tests/webgl/texSubImage2D.html create mode 100644 testing/web-platform/tests/webgl/uniformMatrixNfv.html (limited to 'testing/web-platform/tests/webgl') diff --git a/testing/web-platform/tests/webgl/META.yml b/testing/web-platform/tests/webgl/META.yml new file mode 100644 index 0000000000..8e6b680d91 --- /dev/null +++ b/testing/web-platform/tests/webgl/META.yml @@ -0,0 +1,2 @@ +suggested_reviewers: + - kenrussell diff --git a/testing/web-platform/tests/webgl/bufferSubData.html b/testing/web-platform/tests/webgl/bufferSubData.html new file mode 100644 index 0000000000..a97df9062d --- /dev/null +++ b/testing/web-platform/tests/webgl/bufferSubData.html @@ -0,0 +1,26 @@ + +bufferSubData + + + + + + +
+ diff --git a/testing/web-platform/tests/webgl/common.js b/testing/web-platform/tests/webgl/common.js new file mode 100644 index 0000000000..416c21ce93 --- /dev/null +++ b/testing/web-platform/tests/webgl/common.js @@ -0,0 +1,13 @@ +function getGl() { + var c = document.createElement("canvas"); + var gl = c.getContext("experimental-webgl"); + assert_true(!!gl, "Should be able to get a context."); + return gl; +} + +function shouldGenerateGLError(cx, glError, fn) { + test(function() { + fn(); + assert_equals(cx.getError(), glError); + }, "Calling " + fn + " should generate a " + glError + " error."); +} diff --git a/testing/web-platform/tests/webgl/compressedTexImage2D.html b/testing/web-platform/tests/webgl/compressedTexImage2D.html new file mode 100644 index 0000000000..a974c65002 --- /dev/null +++ b/testing/web-platform/tests/webgl/compressedTexImage2D.html @@ -0,0 +1,30 @@ + +compressedTexImage2D + + + + + + +
+ diff --git a/testing/web-platform/tests/webgl/compressedTexSubImage2D.html b/testing/web-platform/tests/webgl/compressedTexSubImage2D.html new file mode 100644 index 0000000000..20c5ff9bd3 --- /dev/null +++ b/testing/web-platform/tests/webgl/compressedTexSubImage2D.html @@ -0,0 +1,30 @@ + +compressedTexSubImage2D + + + + + + +
+ diff --git a/testing/web-platform/tests/webgl/idlharness.any.js b/testing/web-platform/tests/webgl/idlharness.any.js new file mode 100644 index 0000000000..d6131f4884 --- /dev/null +++ b/testing/web-platform/tests/webgl/idlharness.any.js @@ -0,0 +1,15 @@ +// META: script=/resources/WebIDLParser.js +// META: script=/resources/idlharness.js +// META: timeout=long + +// https://www.khronos.org/registry/webgl/specs/latest/1.0/ + +'use strict'; + +idl_test( + ['webgl1', 'webgl2'], + ['dom'], + idl_array => { + // TODO: objects + } +); diff --git a/testing/web-platform/tests/webgl/texImage2D.html b/testing/web-platform/tests/webgl/texImage2D.html new file mode 100644 index 0000000000..86b84d1a99 --- /dev/null +++ b/testing/web-platform/tests/webgl/texImage2D.html @@ -0,0 +1,20 @@ + +texImage2D + + + + + + +
+ diff --git a/testing/web-platform/tests/webgl/texSubImage2D.html b/testing/web-platform/tests/webgl/texSubImage2D.html new file mode 100644 index 0000000000..7a6c209182 --- /dev/null +++ b/testing/web-platform/tests/webgl/texSubImage2D.html @@ -0,0 +1,20 @@ + +texSubImage2D + + + + + + +
+ diff --git a/testing/web-platform/tests/webgl/uniformMatrixNfv.html b/testing/web-platform/tests/webgl/uniformMatrixNfv.html new file mode 100644 index 0000000000..f75cbcb997 --- /dev/null +++ b/testing/web-platform/tests/webgl/uniformMatrixNfv.html @@ -0,0 +1,33 @@ + +uniformMatrix*fv + + + + + + + + +
+ + -- cgit v1.2.3