Update fast/canvas/canvas-measureText-ideographicSpace.html after r177774
[WebKit-https.git] / LayoutTests / fast / canvas / canvas-measureText-ideographicSpace.html
1 <!DOCTYPE html>\r
2 <html>\r
3 <head>\r
4   <script src="../../resources/js-test-pre.js"></script>\r
5 </head>\r
6 <body>\r
7 <canvas></canvas>\r
8 <span style="padding: 0px; font-size: 12px; font-family: Arial; display: inline; visibility: hidden">a&#x3000;b&#x3000;c</span>\r
9 <script>\r
10     var canvas = document.getElementsByTagName('canvas')[0];\r
11     var context = canvas.getContext('2d');\r
12     var iSp = '\u3000';\r
13     var str = 'a' + iSp + 'b' + iSp + 'c';\r
14     context.font = '12px Arial';\r
15     canvasWidth = context.measureText(str).width;\r
16 \r
17     var span = document.getElementsByTagName('span')[0];\r
18     spanWidth = span.getBoundingClientRect().width;\r
19     shouldBe("spanWidth", "canvasWidth");\r
20 </script>\r
21 <script src="../../resources/js-test-post.js"></script>\r
22 </body>\r
23 </html>\r