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

Side by Side Diff: third_party/WebKit/LayoutTests/printing/offscreencanvas-2d-printing.html

Issue 2493673002: Synchronize OffscreenCanvas content with the placeholder canvas (Closed)
Patch Set: build fix 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("2d");
7 ctx.fillStyle = 'green';
8 ctx.fillRect(0, 0, 100, 100);
9 ctx.commit();
xlai (Olivia) 2016/11/11 16:28:33 Great. Although the compositorFrame submmitted to
Justin Novosad 2016/11/11 22:09:00 This test only aims to test printing, what happens
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