blob: 0427b4ce5c14e9d38aad83c53a673603c0c1a564 [file] [log] [blame]
<!DOCTYPE html>
<p>Expect to see a black square below this line.</p>
<canvas id = 'c' width='100' height='100'></canvas>
<script>
if (window.testRunner) {
testRunner.waitUntilDone();
testRunner.layoutAndPaintAsyncThen(function(){
// Verify that creating a context with alpha:false trigger a graphics
// update even though nothing is drawn to the canvas.
document.getElementById('c').getContext('2d', { alpha:false });
testRunner.notifyDone();
});
} else {
console.log('ERROR: This test requires the testRunner interface.')
}
</script>