Test that complext and fast text codepaths measure the same width
authormmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Nov 2014 01:37:18 +0000 (01:37 +0000)
committermmaxfield@apple.com <mmaxfield@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 11 Nov 2014 01:37:18 +0000 (01:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=138581

Reviewed by Simon Fraser.

* fast/text/space-width-expected.html: Added.
* fast/text/space-width.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@175843 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/text/space-width-expected.html [new file with mode: 0644]
LayoutTests/fast/text/space-width.html [new file with mode: 0644]

index 936fade41e5b38045a085608aac35d5c8100b5de..642577eec365001fbdc9979762ef8f281bf2224d 100644 (file)
@@ -1,3 +1,13 @@
+2014-11-10  Myles C. Maxfield  <mmaxfield@apple.com>
+
+        Test that complext and fast text codepaths measure the same width
+        https://bugs.webkit.org/show_bug.cgi?id=138581
+
+        Reviewed by Simon Fraser.
+
+        * fast/text/space-width-expected.html: Added.
+        * fast/text/space-width.html: Added.
+
 2014-11-10  Alexey Proskuryakov  <ap@apple.com>
 
         http tests should not use shared temporary files
diff --git a/LayoutTests/fast/text/space-width-expected.html b/LayoutTests/fast/text/space-width-expected.html
new file mode 100644 (file)
index 0000000..43ec655
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+    .w {
+        font-size: 36px;
+        font-family: times;
+        border-right: solid black;
+        display: inline-block;
+    }   
+</style>
+</head>
+<body>
+This test makes sure that spaces drawn with the complex text codepath
+and the fast text codepath are the same width.
+<div>
+    <div class="w">
+        Wo&#xe8; Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe
+    </div>
+</div>
+</body>
+</html>
diff --git a/LayoutTests/fast/text/space-width.html b/LayoutTests/fast/text/space-width.html
new file mode 100644 (file)
index 0000000..6c24833
--- /dev/null
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<head>
+<style>
+    .w {
+        font-size: 36px;
+        font-family: times;
+        border-right: solid black;
+        display: inline-block;
+    }   
+</style>
+</head>
+<body>
+This test makes sure that spaces drawn with the complex text codepath
+and the fast text codepath are the same width.
+<div>
+    <div class="w">
+        Woe&#x0300; Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe Woe 
+    </div>
+</div>
+</body>
+</html>