1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/reftests/canvas/text-space-replace-ref.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +<!DOCTYPE HTML> 1.5 +<html> 1.6 +<head> 1.7 +<title>Test to ensure whitespace characters are replaced with the space character</title> 1.8 +</head> 1.9 +<body> 1.10 +<canvas id="c" width="128" height="64" style="direction:ltr"></canvas> 1.11 +<script type="text/javascript"> 1.12 + var canvas = document.getElementById('c'); 1.13 + var ctx = canvas.getContext('2d'); 1.14 + 1.15 + var str = 'a b c d e f'; 1.16 + ctx.fillStyle = 'black'; 1.17 + ctx.font = '20px sans-serif'; 1.18 + ctx.fillText(str, 0, 32); 1.19 + 1.20 +</script> 1.21 +</body> 1.22 +</html>