Revision 4c581fe88602762273f350d08ccc7371bd1c2c62 authored by Jake Archibald on 10 April 2018, 07:01:54 UTC, committed by Jake Archibald on 10 April 2018, 13:20:08 UTC
1 parent 9e34bb1
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 ...