Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: LayoutTests/svg/text/getextentofchar-nonbmp.html

Issue 1045793002: Determine the right SVGTextMetrics using the correct approach (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/svg/text/getextentofchar-nonbmp-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/svg/text/getextentofchar-nonbmp-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698