Revision 243b0ce046e922019a87eb7ae8e73b724c6d9bb7 authored by Luke Bjerring on 22 March 2018, 14:30:50 UTC, committed by Luke Bjerring on 22 March 2018, 14:30:50 UTC
1 parent ee643b5
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 ...