summaryrefslogtreecommitdiff
path: root/Tools/TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html')
-rw-r--r--Tools/TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/Tools/TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html b/Tools/TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html
new file mode 100644
index 000000000..179085749
--- /dev/null
+++ b/Tools/TestWebKitAPI/Tests/WebKit2/chinese-character-with-image.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<meta http-equiv='content-type' content='text/html; charset=utf-8'>
+<body>
+<div contenteditable>
+<p><br></p>
+<p style="text-align: center; font-size: 15px;"><img src="icon.png">你</p>
+<p>hello, world</p>
+</div>
+<script>
+document.querySelector('div').focus();
+getSelection().setPosition(document.querySelector('img').parentNode, 1);
+</script>
+</body>
+</html>