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

Unified Diff: third_party/WebKit/LayoutTests/printing/offscreencanvas-webgl-printing.html

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: fix obsolete test Created 4 years, 1 month 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
Index: third_party/WebKit/LayoutTests/printing/offscreencanvas-webgl-printing.html
diff --git a/third_party/WebKit/LayoutTests/printing/offscreencanvas-webgl-printing.html b/third_party/WebKit/LayoutTests/printing/offscreencanvas-webgl-printing.html
new file mode 100644
index 0000000000000000000000000000000000000000..b5d4ea3373586c9243b3175ecfc7b6e23a62769f
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/printing/offscreencanvas-webgl-printing.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<canvas id='c'></canvas>
+<script>
+var can = document.getElementById('c');
+can.width = can.height = 100;
+var ctx = can.transferControlToOffscreen().getContext("webgl");
+ctx.clearColor(0, 1, 0, 1);
+ctx.clear(ctx.COLOR_BUFFER_BIT);
+ctx.commit();
+if (window.testRunner) {
+ testRunner.setPrinting();
+ testRunner.waitUntilDone();
+ setTimeout(function() {
+ // The setTimeout is a synchronization barrier that guarantees
+ // the commit will be processed by the event loop before the test
+ // is done.
+ testRunner.notifyDone();
+ }, 0);
+}
+</script>

Powered by Google App Engine
This is Rietveld 408576698