layout/reftests/bugs/296904-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/bugs/296904-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +<!DOCTYPE HTML>
     1.5 +<canvas width="100" height="100" id="c"></canvas>
     1.6 +<script>
     1.7 +window.onload = function () {
     1.8 +    var ctx = document.getElementById('c').getContext('2d');
     1.9 +
    1.10 +    ctx.beginPath();
    1.11 +    ctx.moveTo(0, 0);
    1.12 +    ctx.lineTo(0, 100);
    1.13 +    ctx.lineTo(100, 100);
    1.14 +
    1.15 +    ctx.fillStyle = '#f00';
    1.16 +    ctx.strokeStyle = '#00f';
    1.17 +
    1.18 +    ctx.fillRect(30, 10, 10, 10);
    1.19 +    ctx.strokeRect(60, 10, 10, 10);
    1.20 +    ctx.clearRect(25, 15, 50, 10);
    1.21 +    ctx.drawImage(document.getElementById('c'), 0, 0);
    1.22 +    if (ctx.putImageData) ctx.putImageData(ctx.getImageData(0, 0, 10, 10), 0, 0);
    1.23 +
    1.24 +    ctx.lineTo(100, 0);
    1.25 +    ctx.fillStyle = '#0f0';
    1.26 +    ctx.fill();
    1.27 +}
    1.28 +</script>

mercurial