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

Unified 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: senorblanco feedback 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0427b4ce5c14e9d38aad83c53a673603c0c1a564
--- /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>
+<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>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-no-alpha-invalidation-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698