https://github.com/web-platform-tests/wpt
Raw File
Tip revision: ac7299be20bc274ef25b565534259f90f45df72f authored by Maja Frydrychowicz on 11 April 2018, 09:34:03 UTC
Disable test_pause_dblclick
Tip revision: ac7299b
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.");
}
back to top