OLD | NEW |
---|---|
(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> | |
OLD | NEW |