Revision c7501338f6fc13cfce7ddeccc701d851a3cd3dfe authored by jgraham on 09 June 2016, 12:57:53 UTC, committed by jgraham on 09 June 2016, 12:57:53 UTC
Merge pull request #3141 from sync_f4eab347553d19164f6999c29649e8bfdaad44db
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 ...