| Index: third_party/WebKit/LayoutTests/printing/offscreencanvas-2d-printing.html
|
| diff --git a/third_party/WebKit/LayoutTests/printing/offscreencanvas-2d-printing.html b/third_party/WebKit/LayoutTests/printing/offscreencanvas-2d-printing.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..671c0a988733b88a6db107fe70ec2ff8b284ac2a
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/printing/offscreencanvas-2d-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("2d");
|
| +ctx.fillStyle = 'green';
|
| +ctx.fillRect(0, 0, 100, 100);
|
| +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>
|
|
|