Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..165058043be2ce2aa4b81f63927af933c8ce0b44 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation.html |
| @@ -0,0 +1,16 @@ |
| +<!DOCTYPE html> |
| +<p>Expect to see a black square below this line.</p> |
| +<canvas id = 'c' width=100 height=100></canvas> |
|
Stephen White
2016/12/07 22:27:48
uNit: prefer <canvas id='c' width='100' height='10
|
| +<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> |