1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/canvas/text-measure-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +<html> 1.5 +<script> 1.6 +function load() { 1.7 + var ctx = document.getElementById("canvas").getContext("2d"); 1.8 + 1.9 + ctx.font = "bold 12px sans-serif"; 1.10 + ctx.scale(4, 4); 1.11 + var str = "HeHeHeHe"; 1.12 + ctx.fillText(str, 0, 15); 1.13 +} 1.14 +</script> 1.15 +<body onload="load();"> 1.16 +<canvas id="canvas" width="400" height="200"></canvas> 1.17 +</body> 1.18 +</html>