blob: 1ee23a0646aa3676d2ffac1fb6aa9047d221259e [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 blocklist entry.
if (gl.getExtension('WEBGL_lose_context')) {
window.domAutomationController.send("FAILED");
} else {
window.domAutomationController.send("SUCCESS");
}
}
</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>