layout/reftests/canvas/strokeText-path-ref.html

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/reftests/canvas/strokeText-path-ref.html	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,23 @@
     1.4 +<!DOCTYPE html>
     1.5 +<html>
     1.6 +  <head>
     1.7 +    <script type="text/javascript"><!--
     1.8 +window.onload = function () {
     1.9 +  var canvas = document.getElementById('testCanvas'),
    1.10 +      context = canvas.getContext('2d');
    1.11 +
    1.12 +  // draw some text
    1.13 +  context.font = 'bold 40px sans-serif';
    1.14 +  context.strokeText("Hello world!", 10, 50);
    1.15 +};
    1.16 +      // --></script>
    1.17 +  </head>
    1.18 +  <body>
    1.19 +    <p>You should see only see "Hello world!" below, without any additional 
    1.20 +    line. JavaScript is required.</p>
    1.21 +
    1.22 +    <p><canvas id="testCanvas" width="400" height="300">You need Canvas 
    1.23 +    support.</canvas></p>
    1.24 +
    1.25 +  </body>
    1.26 +</html>

mercurial