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">𝄞𝄞</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> |