Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation.html

Issue 2558973002: Add missing paint invalidation when creating canvas 2d context with no alpha (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <p>Expect to see a black square below this line.</p>
3 <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
4 <script>
5 if (window.testRunner) {
6 testRunner.waitUntilDone();
7 testRunner.layoutAndPaintAsyncThen(function(){
8 // Verify that creating a context with alpha:false trigger a graphics
9 // update even though nothing is drawn to the canvas.
10 document.getElementById('c').getContext('2d', { alpha:false });
11 testRunner.notifyDone();
12 });
13 } else {
14 console.log('ERROR: This test requires the testRunner interface.')
15 }
16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698