blob: 7075ea1775fb46aa73d84615e452fec7567d511b [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
let width = 10;
let height = 10;
test(function() {
let canvas = document.createElement("canvas");
canvas.width = width;
canvas.height = height;
let ctx = canvas.getContext('gpupresent');
assert_true(ctx instanceof GPUCanvasContext);
}, "Test that canvas.getContext('gpupresent') returns an instance of GPUCanvasContext");
</script>