blob: bba80f2ec3a33caf6ef8e9a430ff73733d856595 [file] [log] [blame]
<html>
<head>
<script src="../../resources/js-test.js"></script>
<script>
description('Tests that canvas does not crash on getContext. crbug.com/442633');
function start()
{
if (window.internals)
internals.settings.setWebGL1Enabled(false);
var canvas = document.getElementById('example');
var gl = canvas.getContext("webgl");
}
testPassed("Canvas did not crash on getContext.");
</script>
</head>
<body onload="start()">
<canvas id="example"></canvas>
</body>
</html>