blob: f572236535b56067292fc451dd8f03bc76caf236 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
<!DOCTYPE html>
<html>
<head>
<script src="../../../fast/js/resources/js-test-pre.js"></script>
<script src="resources/webgl-test.js"></script>
</head>
<body>
<canvas id="c"></canvas>
<script>
description("This test checks to ensure that a webgl context can be created with the 'webgl' context ID");
var c = document.getElementById("c");
var gl = c.getContext("webgl");
if (!gl)
testFailed("context does not exist");
else
testPassed("context exists");
</script>
</body>
</html>
|