4 <meta charcode=
"utf-16">
5 <script src=
"../../resources/js-test.js"></script>
18 <div><span>a
 b
 c
</span></div>
19 <div><canvas></canvas></div>
22 var canvas
= document
.querySelector("canvas");
23 var context
= canvas
.getContext("2d");
24 var span
= document
.querySelector("span");
26 var abc
= 'a' + '\u3000' + 'b' + '\u3000' + 'c';
27 context
.font
= "12px Arial";
28 context
.fillText(abc
, 0, 20);
30 spanWidth
= span
.offsetWidth
;
31 canvasWidth
= context
.measureText(abc
).width
;
32 shouldBeTrue("spanWidth == canvasWidth");