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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <canvas id='c'></canvas>
3 <script>
4 var can = document.getElementById('c');
5 can.width = can.height = 100;
6 var ctx = can.transferControlToOffscreen().getContext("webgl");
7 ctx.clearColor(0, 1, 0, 1);
8 ctx.clear(ctx.COLOR_BUFFER_BIT);
9 ctx.commit();
10 if (window.testRunner) {
11 testRunner.setPrinting();
12 testRunner.waitUntilDone();
13 setTimeout(function() {
14 // The setTimeout is a synchronization barrier that guarantees
15 // the commit will be processed by the event loop before the test
16 // is done.
17 testRunner.notifyDone();
18 }, 0);
19 }
20 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698