layout/reftests/printing/745025-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

     1 <!DOCTYPE html>
     2 <html class="reftest-wait reftest-print">
     3 <body>
     4 <canvas id="canvas" width="10" height="10"></canvas>
     5 <script>
     6 var canvas = document.getElementById('canvas');
     7 canvas.mozPrintCallback = function(obj) {
     8   setTimeout(function() {
     9     var ctx = obj.context;
    10     ctx.fillStyle = 'rgb(255, 0, 0)';
    11     ctx.fillRect(0, 0, 10, 10);
    12     obj.done();
    13     document.documentElement.classList.toggle("reftest-wait");
    14   }, 0);
    15 };
    16 </script>
    17 </body>
    18 </html>

mercurial