Backed out changeset 85109095dd71 (bug 883364)

This commit is contained in:
Ed Morley 2013-07-31 08:58:40 +01:00
parent dabb5f270c
commit f06be909d4
6 changed files with 6 additions and 43 deletions

View File

@ -18,12 +18,6 @@ function renderGL(gl) {
gl.finish();
}
function renderFailure(canvas) {
// This will also trigger RAF for us.
var context = canvas.getContext("2d");
context.fillText('WebGL failed.', 64, 64);
}
function runTest() {
var canvas = document.getElementById("canvas");
var gl = initGL(canvas);
@ -31,7 +25,7 @@ function runTest() {
if (gl)
renderGL(gl);
else
renderFailure(canvas);
document.write("Failed to get WebGL context.");
rAF(testComplete);
}
@ -39,7 +33,6 @@ function runTest() {
function testComplete() {
document.documentElement.removeAttribute("class");
}
</script>
</head>

View File

@ -47,12 +47,6 @@ function renderGL(gl, value, alpha) {
gl.finish();
}
function renderFailure(canvas) {
// This will also trigger RAF for us.
var context = canvas.getContext("2d");
context.fillText('WebGL failed.', 64, 64);
}
function runTest() {
var canvas = document.getElementById("canvas");
var gl = initGL(canvas);
@ -63,7 +57,7 @@ function runTest() {
if (gl)
renderGL(gl, value, alpha);
else
renderFailure(canvas);
document.write("Failed to get WebGL context.");
rAF(testComplete);
}

View File

@ -45,12 +45,6 @@ function renderGL(gl) {
gl.finish();
}
function renderFailure(canvas) {
// This will also trigger RAF for us.
var context = canvas.getContext("2d");
context.fillText('WebGL failed.', 64, 64);
}
function runTest() {
var canvas = document.getElementById("canvas");
var gl = initGL(canvas);
@ -58,7 +52,7 @@ function runTest() {
if (gl)
renderGL(gl);
else
renderFailure(canvas);
document.write("Failed to get WebGL context.");
rAF(testComplete);
}

View File

@ -27,12 +27,6 @@ function renderGL(gl) {
gl.finish();
}
function renderFailure(canvas) {
// This will also trigger RAF for us.
var context = canvas.getContext("2d");
context.fillText('WebGL failed.', 64, 64);
}
function runTest() {
var canvas = document.getElementById("canvas");
var gl = initGL(canvas);
@ -40,7 +34,7 @@ function runTest() {
if (gl)
renderGL(gl);
else
renderFailure(canvas);
document.write("Failed to get WebGL context.");
rAF(testComplete);
}

View File

@ -26,12 +26,6 @@ function renderGL(gl) {
gl.finish();
}
function renderFailure(canvas) {
// This will also trigger RAF for us.
var context = canvas.getContext("2d");
context.fillText('WebGL failed.', 64, 64);
}
function runTest() {
var canvas = document.getElementById("canvas");
var gl = initGL(canvas);
@ -39,7 +33,7 @@ function runTest() {
if (gl)
renderGL(gl);
else
renderFailure(canvas);
document.write("Failed to get WebGL context.");
rAF(testComplete);
}

View File

@ -26,12 +26,6 @@ function renderGL(gl) {
gl.finish();
}
function renderFailure(canvas) {
// This will also trigger RAF for us.
var context = canvas.getContext("2d");
context.fillText('WebGL failed.', 64, 64);
}
function runTest() {
var canvas = document.getElementById("canvas");
var gl = initGL(canvas);
@ -39,7 +33,7 @@ function runTest() {
if (gl)
renderGL(gl);
else
renderFailure(canvas);
document.write("Failed to get WebGL context.");
rAF(testComplete);
}