Title: [289869] trunk/LayoutTests
Revision
289869
Author
[email protected]
Date
2022-02-15 17:40:26 -0800 (Tue, 15 Feb 2022)

Log Message

[ iOS ] fast/text/ch-unit-synthetic-bold.html is failing constantly on iOS
https://bugs.webkit.org/show_bug.cgi?id=236610

Turns out iOS doesn't have Monaco. It's fine though; we can use local() to create
a font that doesn't have a bold family member.

Unreviewed.

* fast/text/ch-unit-synthetic-bold-expected.html:
* fast/text/ch-unit-synthetic-bold.html:
* fast/text/tab-width-synthetic-bold-complex-expected.html:
* fast/text/tab-width-synthetic-bold-complex.html:
* fast/text/tab-width-synthetic-bold-expected.html:
* fast/text/tab-width-synthetic-bold.html:

Modified Paths

Diff

Modified: trunk/LayoutTests/ChangeLog (289868 => 289869)


--- trunk/LayoutTests/ChangeLog	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/ChangeLog	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,3 +1,20 @@
+2022-02-15  Myles C. Maxfield  <[email protected]>
+
+        [ iOS ] fast/text/ch-unit-synthetic-bold.html is failing constantly on iOS
+        https://bugs.webkit.org/show_bug.cgi?id=236610
+
+        Turns out iOS doesn't have Monaco. It's fine though; we can use local() to create
+        a font that doesn't have a bold family member.
+
+        Unreviewed.
+
+        * fast/text/ch-unit-synthetic-bold-expected.html:
+        * fast/text/ch-unit-synthetic-bold.html:
+        * fast/text/tab-width-synthetic-bold-complex-expected.html:
+        * fast/text/tab-width-synthetic-bold-complex.html:
+        * fast/text/tab-width-synthetic-bold-expected.html:
+        * fast/text/tab-width-synthetic-bold.html:
+
 2022-02-15  Jon Lee  <[email protected]>
 
         Unreviewed gardening.

Modified: trunk/LayoutTests/fast/text/ch-unit-synthetic-bold-expected.html (289868 => 289869)


--- trunk/LayoutTests/fast/text/ch-unit-synthetic-bold-expected.html	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/fast/text/ch-unit-synthetic-bold-expected.html	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
 <html>
 <head>
+<style>
+@font-face {
+    font-family: DoesNotHaveBold;
+    src: local("Times");
+}
+</style>
 </head>
 <body>
 This test makes sure that the <code>ch</code> unit, which is supposed to be as wide as the <code>0</code> character, is in fact that wide, even if the font is using synthetic bold. The test passes if the width of the green box matches in both cases.
 <div>
-<div style="font: bold 16px 'Monaco'; display: inline-block; background: green; color: transparent;">0000000000</div>
+<div style="font: bold 16px 'DoesNotHaveBold'; display: inline-block; background: green; color: transparent;">0000000000</div>
 </div>
 </body>
 </html>

Modified: trunk/LayoutTests/fast/text/ch-unit-synthetic-bold.html (289868 => 289869)


--- trunk/LayoutTests/fast/text/ch-unit-synthetic-bold.html	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/fast/text/ch-unit-synthetic-bold.html	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,9 +1,15 @@
 <!DOCTYPE html>
 <html>
 <head>
+<style>
+@font-face {
+    font-family: DoesNotHaveBold;
+    src: local("Times");
+}
+</style>
 </head>
 <body>
 This test makes sure that the <code>ch</code> unit, which is supposed to be as wide as the <code>0</code> character, is in fact that wide, even if the font is using synthetic bold. The test passes if the width of the green box matches in both cases.
-<div style="font: bold 16px 'Monaco'; background: green; width: 10ch; color: transparent;">a</div>
+<div style="font: bold 16px 'DoesNotHaveBold'; background: green; width: 10ch; color: transparent;">a</div>
 </body>
 </html>

Modified: trunk/LayoutTests/fast/text/tab-width-synthetic-bold-complex-expected.html (289868 => 289869)


--- trunk/LayoutTests/fast/text/tab-width-synthetic-bold-complex-expected.html	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/fast/text/tab-width-synthetic-bold-complex-expected.html	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
 <html>
 <head>
+<style>
+@font-face {
+    font-family: DoesNotHaveBold;
+    src: local("Times");
+}
+</style>
 </head>
 <body>
 This test makes sure that, when the width of a tab is set to be a multiple of the space width, that the space width includes the synthetic bold expansion. The test passes if the width of the green box matches in both cases.
 <div>
-<pre style="font: bold 16px 'Monaco'; display: inline-block; background: green; tab-size: 16;">                </pre>
+<pre style="font: bold 16px 'DoesNotHaveBold'; display: inline-block; background: green; tab-size: 16;">                </pre>
 </div>
 </body>
 </html>

Modified: trunk/LayoutTests/fast/text/tab-width-synthetic-bold-complex.html (289868 => 289869)


--- trunk/LayoutTests/fast/text/tab-width-synthetic-bold-complex.html	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/fast/text/tab-width-synthetic-bold-complex.html	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
 <html>
 <head>
+<style>
+@font-face {
+    font-family: DoesNotHaveBold;
+    src: local("Times");
+}
+</style>
 </head>
 <body>
 This test makes sure that, when the width of a tab is set to be a multiple of the space width, that the space width includes the synthetic bold expansion. The test passes if the width of the green box matches in both cases.
 <div>
-<pre style="font: bold 16px 'Monaco'; font-feature-settings: 'ABCD'; display: inline-block; background: green; tab-size: 16;">&#x9;</pre>
+<pre style="font: bold 16px 'DoesNotHaveBold'; font-feature-settings: 'ABCD'; display: inline-block; background: green; tab-size: 16;">&#x9;</pre>
 </div>
 </body>
 </html>

Modified: trunk/LayoutTests/fast/text/tab-width-synthetic-bold-expected.html (289868 => 289869)


--- trunk/LayoutTests/fast/text/tab-width-synthetic-bold-expected.html	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/fast/text/tab-width-synthetic-bold-expected.html	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
 <html>
 <head>
+<style>
+@font-face {
+    font-family: DoesNotHaveBold;
+    src: local("Times");
+}
+</style>
 </head>
 <body>
 This test makes sure that, when the width of a tab is set to be a multiple of the space width, that the space width includes the synthetic bold expansion. The test passes if the width of the green box matches in both cases.
 <div>
-<pre style="font: bold 16px 'Monaco'; display: inline-block; background: green; tab-size: 16;">                </pre>
+<pre style="font: bold 16px 'DoesNotHaveBold'; display: inline-block; background: green; tab-size: 16;">                </pre>
 </div>
 </body>
 </html>

Modified: trunk/LayoutTests/fast/text/tab-width-synthetic-bold.html (289868 => 289869)


--- trunk/LayoutTests/fast/text/tab-width-synthetic-bold.html	2022-02-16 01:35:44 UTC (rev 289868)
+++ trunk/LayoutTests/fast/text/tab-width-synthetic-bold.html	2022-02-16 01:40:26 UTC (rev 289869)
@@ -1,11 +1,17 @@
 <!DOCTYPE html>
 <html>
 <head>
+<style>
+@font-face {
+    font-family: DoesNotHaveBold;
+    src: local("Times");
+}
+</style>
 </head>
 <body>
 This test makes sure that, when the width of a tab is set to be a multiple of the space width, that the space width includes the synthetic bold expansion. The test passes if the width of the green box matches in both cases.
 <div>
-<pre style="font: bold 16px 'Monaco'; display: inline-block; background: green; tab-size: 16;">&#x9;</pre>
+<pre style="font: bold 16px 'DoesNotHaveBold'; display: inline-block; background: green; tab-size: 16;">&#x9;</pre>
 </div>
 </body>
 </html>
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to