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

Unified 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, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/svg/text/getextentofchar-nonbmp-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/svg/text/getextentofchar-nonbmp.html
diff --git a/LayoutTests/svg/text/getextentofchar-nonbmp.html b/LayoutTests/svg/text/getextentofchar-nonbmp.html
new file mode 100644
index 0000000000000000000000000000000000000000..e15bf7e7cbcac6d171858afe2b7e572cebae7536
--- /dev/null
+++ b/LayoutTests/svg/text/getextentofchar-nonbmp.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src=../../resources/testharness.js></script>
+<script src=../../resources/testharnessreport.js></script>
+<svg>
+ <text font-size="50" y="50">&#x1D11E;&#x1D11E;</text>
+</svg>
+<script>
+test(function() {
+ var text = document.querySelector('text');
+ assert_equals(text.getNumberOfChars(), 4);
+ assert_equals(text.getExtentOfChar(0).width, text.getExtentOfChar(1).width);
+ assert_equals(text.getExtentOfChar(2).width, text.getExtentOfChar(3).width);
+}, 'SVGTextContentElement.getExtentOfChar, non-BMP characters.');
+</script>
« 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