9 lines
293 B
HTML
9 lines
293 B
HTML
<div id="result">PASS if a "webgl2" context can be obtained.</div>
|
|
<script>
|
|
if (window.testRunner)
|
|
testRunner.dumpAsText();
|
|
|
|
if (!(document.createElement("canvas").getContext("webgl2") instanceof WebGL2RenderingContext))
|
|
document.getElementById("result").innerHTML = "FAIL";
|
|
</script>
|