https://github.com/web-platform-tests/wpt
Revision d30e62092787a340b4cfbeb0434a75e15028f69d authored by Chris Nardi on 13 March 2018, 20:45:10 UTC, committed by François REMY on 03 April 2018, 18:09:56 UTC
index-001.html and index-002.html had nondescript names, and index-002.html used generate_tests. Merge index-001.html into shorthand-serialization.html, and create shorthand-values.html from index-002.html.

Builds off the work of #5331.
1 parent 6e2b4a7
Raw File
Tip revision: d30e62092787a340b4cfbeb0434a75e15028f69d authored by Chris Nardi on 13 March 2018, 20:45:10 UTC
Rewrite CSSOM index tests
Tip revision: d30e620
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