blob: f1222bcfd098d5c6c38e55696b6c3f01ce331e7a [file] [log] [blame]
<html>
<script type="text/javascript">
function runTest() {
var canvas = document.getElementById("glcanvas");
var gl = canvas.getContext('webgl');
if (!gl) {
if (window.domAutomationController) {
window.domAutomationController.send("FAILED");
} else {
alert("Unable to initialize WebGL");
}
return;
}
// This extension is supposed to be disabled via a blacklist entry.
if (gl.getExtension('WEBGL_lose_context')) {
window.domAutomationController.send("FAILED");
} else {
window.domAutomationController.send("FINISHED");
}
}
</script>
<body onload="runTest()">
<canvas id="glcanvas" width="640" height="480">
Your browser doesn't appear to support the HTML5 <code>&lt;canvas&gt;</code> element.
</canvas>
</body>
</html>