mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Move WebGL tests and metadata to tests/wpt/mozilla/tests/
This commit is contained in:
parent
65dceaee05
commit
052971a71a
2665 changed files with 1 additions and 0 deletions
|
@ -1,13 +0,0 @@
|
|||
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.");
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue