Index: LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html |
diff --git a/LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html b/LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f12a9b279fde6eaad243dce4fa4784229c70c701 |
--- /dev/null |
+++ b/LayoutTests/fast/text/international/repaint-glyph-bounds-expected.html |
@@ -0,0 +1,31 @@ |
+<!DOCTYPE html> |
+<html> |
+ <head> |
+ <meta charset="utf-8"> |
+ <style> |
+ #test { |
+ font-family: arial; |
+ font-size: 300%; |
+ } |
+ </style> |
+ </head> |
+ <body> |
+ <section id="test"> |
+ بِِِِِِِِِِِِِِِِِِِِِِِِِِِِِِِا<br><span>test 1</span><br><span>test 2</span> |
+ </section> |
+ <section> |
+ <p> |
+ Tests that the glyph overflow rect, used for repaint, is |
+ correctly computed. After selecting and unselecting either |
+ <code>test</code> line above the harakat from the first line are |
+ correctly repainted. |
+ </p> |
+ </section> |
+ <script> |
+ var testElements = document.getElementById('test'). |
+ getElementsByTagName('span'); |
+ var text = testElements[1].firstChild; |
+ window.getSelection().setBaseAndExtent(text, 3, text, text.length); |
+ </script> |
+ </body> |
+</html> |