From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- dom/imptests/html/webgl/common.js | 13 +++++++++ dom/imptests/html/webgl/test_bufferSubData.html | 26 +++++++++++++++++ .../html/webgl/test_compressedTexImage2D.html | 30 ++++++++++++++++++++ .../html/webgl/test_compressedTexSubImage2D.html | 30 ++++++++++++++++++++ dom/imptests/html/webgl/test_texImage2D.html | 20 +++++++++++++ dom/imptests/html/webgl/test_texSubImage2D.html | 20 +++++++++++++ dom/imptests/html/webgl/test_uniformMatrixNfv.html | 33 ++++++++++++++++++++++ 7 files changed, 172 insertions(+) create mode 100644 dom/imptests/html/webgl/common.js create mode 100644 dom/imptests/html/webgl/test_bufferSubData.html create mode 100644 dom/imptests/html/webgl/test_compressedTexImage2D.html create mode 100644 dom/imptests/html/webgl/test_compressedTexSubImage2D.html create mode 100644 dom/imptests/html/webgl/test_texImage2D.html create mode 100644 dom/imptests/html/webgl/test_texSubImage2D.html create mode 100644 dom/imptests/html/webgl/test_uniformMatrixNfv.html (limited to 'dom/imptests/html/webgl') diff --git a/dom/imptests/html/webgl/common.js b/dom/imptests/html/webgl/common.js new file mode 100644 index 000000000..416c21ce9 --- /dev/null +++ b/dom/imptests/html/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/dom/imptests/html/webgl/test_bufferSubData.html b/dom/imptests/html/webgl/test_bufferSubData.html new file mode 100644 index 000000000..a97df9062 --- /dev/null +++ b/dom/imptests/html/webgl/test_bufferSubData.html @@ -0,0 +1,26 @@ + +bufferSubData + + + + + + +
+ diff --git a/dom/imptests/html/webgl/test_compressedTexImage2D.html b/dom/imptests/html/webgl/test_compressedTexImage2D.html new file mode 100644 index 000000000..b0a031add --- /dev/null +++ b/dom/imptests/html/webgl/test_compressedTexImage2D.html @@ -0,0 +1,30 @@ + +compressedTexImage2D + + + + + + +
+ diff --git a/dom/imptests/html/webgl/test_compressedTexSubImage2D.html b/dom/imptests/html/webgl/test_compressedTexSubImage2D.html new file mode 100644 index 000000000..539f9e17f --- /dev/null +++ b/dom/imptests/html/webgl/test_compressedTexSubImage2D.html @@ -0,0 +1,30 @@ + +compressedTexSubImage2D + + + + + + +
+ diff --git a/dom/imptests/html/webgl/test_texImage2D.html b/dom/imptests/html/webgl/test_texImage2D.html new file mode 100644 index 000000000..2f769160d --- /dev/null +++ b/dom/imptests/html/webgl/test_texImage2D.html @@ -0,0 +1,20 @@ + +texImage2D + + + + + + +
+ diff --git a/dom/imptests/html/webgl/test_texSubImage2D.html b/dom/imptests/html/webgl/test_texSubImage2D.html new file mode 100644 index 000000000..294b30c76 --- /dev/null +++ b/dom/imptests/html/webgl/test_texSubImage2D.html @@ -0,0 +1,20 @@ + +texSubImage2D + + + + + + +
+ diff --git a/dom/imptests/html/webgl/test_uniformMatrixNfv.html b/dom/imptests/html/webgl/test_uniformMatrixNfv.html new file mode 100644 index 000000000..f75cbcb99 --- /dev/null +++ b/dom/imptests/html/webgl/test_uniformMatrixNfv.html @@ -0,0 +1,33 @@ + +uniformMatrix*fv + + + + + + + + +
+ + -- cgit v1.2.3