Bug 766796 followup to deal with lack of WebGL on Mac OS 10.5. No review.

This commit is contained in:
Boris Zbarsky 2012-06-26 01:09:31 -04:00
parent 212be4835a
commit 1055e80fc0

View File

@ -16,7 +16,13 @@
function testInt64NonFinite(arg) {
// We can use a WebGLRenderingContext to test conversion to 64-bit signed
// ints edge cases.
var gl = $("c").getContext("experimental-webgl");
try {
var gl = $("c").getContext("experimental-webgl");
} catch (ex) {
// No WebGL support on MacOS 10.5. Just skip this test
todo(false, "WebGL not supported");
return;
}
is(gl.getError(), 0, "Should not start in an error state");
var b = gl.createBuffer();