Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / text / getextentofchar-nonbmp.html
blobe15bf7e7cbcac6d171858afe2b7e572cebae7536
1 <!DOCTYPE html>
2 <script src=../../resources/testharness.js></script>
3 <script src=../../resources/testharnessreport.js></script>
4 <svg>
5 <text font-size="50" y="50">&#x1D11E;&#x1D11E;</text>
6 </svg>
7 <script>
8 test(function() {
9 var text = document.querySelector('text');
10 assert_equals(text.getNumberOfChars(), 4);
11 assert_equals(text.getExtentOfChar(0).width, text.getExtentOfChar(1).width);
12 assert_equals(text.getExtentOfChar(2).width, text.getExtentOfChar(3).width);
13 }, 'SVGTextContentElement.getExtentOfChar, non-BMP characters.');
14 </script>