https://github.com/web-platform-tests/wpt
Raw File
Tip revision: afa7bc960f2a72b911f5cf4ea83d4f272bed3270 authored by Manuel Rego Casasnovas on 30 November 2018, 22:57:59 UTC
[css-contain][css-grid] Support size containment on grid containers
Tip revision: afa7bc9
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