Revision a8a88982335f854cf824f2f52a9088629b4db011 authored by Anne van Kesteren on 24 April 2018, 13:28:25 UTC, committed by Anne van Kesteren on 24 April 2018, 14:38:35 UTC
1 parent f000b6b
common.js
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.");
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...