layout/reftests/canvas/dash-1.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/canvas/dash-1.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,34 @@
     1.4 +<html>
     1.5 +<head>
     1.6 +  <script type="text/javascript">
     1.7 +window.onload = function() {
     1.8 +    var ctx = document.getElementById("c1").getContext("2d");
     1.9 +
    1.10 +    ctx.lineWidth = 5;
    1.11 +
    1.12 +    ctx.mozDash = [ 5, 10 ];  // 5 on, 10 off
    1.13 +    ctx.moveTo(50, 50);
    1.14 +    ctx.lineTo(250, 50);
    1.15 +    ctx.stroke();
    1.16 +    ctx.beginPath();
    1.17 +
    1.18 +    ctx.mozDashOffset = 5;
    1.19 +    ctx.moveTo(50, 100);
    1.20 +    ctx.lineTo(250, 100);
    1.21 +    ctx.stroke();
    1.22 +    ctx.beginPath();
    1.23 +
    1.24 +    ctx.mozDashOffset = 5;
    1.25 +    ctx.mozDash = [ 5 ];  // 5 on, 5 off
    1.26 +    ctx.moveTo(50, 150);
    1.27 +    ctx.lineTo(250, 150);
    1.28 +    ctx.stroke();
    1.29 +    ctx.beginPath();
    1.30 +
    1.31 +}
    1.32 +  </script>
    1.33 +</head>
    1.34 +<body style="padding: 0px; margin: 0px;">
    1.35 +  <div><canvas id="c1" width="300" height="300"></canvas></div>
    1.36 +</body>
    1.37 +</html>

mercurial