Account for font metric differences exposed by r85411.
authormitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 May 2011 22:30:45 +0000 (22:30 +0000)
committermitz@apple.com <mitz@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 3 May 2011 22:30:45 +0000 (22:30 +0000)
Fixes <rdar://problem/9377892> REGRESSION (r85403-r85475): platform/mac/fast/text/ligature-subdivision.html failing

Rubber-stamped by Darin Adler.

* platform/mac/fast/text/script-tests/ligature-subdivision.js:

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

LayoutTests/ChangeLog
LayoutTests/platform/mac/fast/text/script-tests/ligature-subdivision.js

index 0f47859..3cb70ed 100644 (file)
@@ -1,3 +1,12 @@
+2011-05-03  Dan Bernstein  <mitz@apple.com>
+
+        Rubber-stamped by Darin Adler.
+
+        Account for font metric differences exposed by r85411.
+        Fixes <rdar://problem/9377892> REGRESSION (r85403-r85475): platform/mac/fast/text/ligature-subdivision.html failing
+
+        * platform/mac/fast/text/script-tests/ligature-subdivision.js:
+
 2011-05-03  Tony Chang  <tony@chromium.org>
 
         Update results for fast/harness/results.html.  We shouldn't be
index 7fbb941..ccd4683 100644 (file)
@@ -48,8 +48,8 @@ shouldBe('document.caretRangeFromPoint(x - 90, y).startOffset', '3');
 range.setStart(arabic.firstChild, 0);
 range.setEnd(arabic.firstChild, 2);
 var w = range.getBoundingClientRect().width;
-// Widths vary between Mac OS X Leopard and current Mac OS X.
-shouldBeTrue('w === 65 || w === 61');
+// Widths vary between Mac OS X Leopard, Snow Leopard, and current Mac OS X.
+shouldBeTrue('w === 66 || w === 65 || w === 61');
 
 document.body.removeChild(arabic);