blob: 7c101ff16365b04fd4a8620e8b6d57099fe96d77 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../resources/run-after-layout-and-paint.js"></script>
<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();
runAfterLayoutAndPaint(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>