blob: f471caf80427a3a26d763d207ff57a5da19fd5cb [file] [log] [blame]
<!-- webkit-test-runner [ WebGLUsingMetal=false ] -->
<canvas id="a"></canvas>
<script>
if (window.testRunner)
window.testRunner.dumpAsText();
function run()
{
const out = document.querySelector("p");
let result = "";
if (!window.internals) {
out.innerText = "Test requires internals.";
return;
}
const canvasA = document.getElementById("a");
const glA = canvasA.getContext("webgl");
const requested = internals.requestedMetal(glA);
const supported = false;
let resultStr = "OK";
if (requested != supported)
resultStr = "FAIL";
result += `Metal for WebGL1 disabled when requested: ${resultStr}<br>`;
out.innerHTML = result;
}
window.addEventListener("load", run, false);
</script>
<p></p>