toolkit/devtools/server/tests/mochitest/inspector_getImageData.html

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

     1 <html>
     2 <head>
     3 <body>
     4   <img class="big-horizontal" src="large-image.jpg" style="width:500px;" />
     5   <canvas class="big-vertical" style="width:500px;"></canvas>
     6   <img class="small" src="small-image.gif"></img>
     7   <script>
     8     window.onload = () => {
     9       var canvas = document.querySelector("canvas"), ctx = canvas.getContext("2d");
    10       canvas.width = 1000;
    11       canvas.height = 2000;
    12       ctx.fillStyle = "red";
    13       ctx.fillRect(0, 0, 1000, 2000);
    15       window.opener.postMessage('ready', '*')
    16     }
    17   </script>
    18 </body>
    19 </html>

mercurial