Move WebGL tests and metadata to tests/wpt/mozilla/tests/

This commit is contained in:
Imanol Fernandez 2017-10-30 14:31:06 +01:00
parent 65dceaee05
commit 052971a71a
2665 changed files with 1 additions and 0 deletions

View file

@ -1,13 +0,0 @@
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.");
}