Improve test mathml/presentation/tokenElements-background-color.html
authorfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Jul 2016 14:09:22 +0000 (14:09 +0000)
committerfred.wang@free.fr <fred.wang@free.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 7 Jul 2016 14:09:22 +0000 (14:09 +0000)
https://bugs.webkit.org/show_bug.cgi?id=130693

We use the Ahem font to make tokenElements-background-color.html more reliable. However, we
remove the case of italic m because Ahem does not contain the required character U+1D45A.

Patch by Frederic Wang <fwang@igalia.com> on 2016-07-07
Reviewed by Martin Robinson.

* mathml/presentation/tokenElements-background-color-expected.html:
* mathml/presentation/tokenElements-background-color.html:
* platform/ios-simulator-wk1/TestExpectations:
* platform/ios-simulator-wk2/TestExpectations:
* platform/mac/TestExpectations:
* platform/win/TestExpectations:

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

LayoutTests/ChangeLog
LayoutTests/mathml/presentation/tokenElements-background-color-expected.html
LayoutTests/mathml/presentation/tokenElements-background-color.html
LayoutTests/platform/ios-simulator-wk1/TestExpectations
LayoutTests/platform/ios-simulator-wk2/TestExpectations
LayoutTests/platform/mac/TestExpectations
LayoutTests/platform/win/TestExpectations

index 57fa724..c0c49e4 100644 (file)
@@ -1,3 +1,20 @@
+2016-07-07  Frederic Wang  <fwang@igalia.com>
+
+        Improve test mathml/presentation/tokenElements-background-color.html
+        https://bugs.webkit.org/show_bug.cgi?id=130693
+
+        We use the Ahem font to make tokenElements-background-color.html more reliable. However, we
+        remove the case of italic m because Ahem does not contain the required character U+1D45A.
+
+        Reviewed by Martin Robinson.
+
+        * mathml/presentation/tokenElements-background-color-expected.html:
+        * mathml/presentation/tokenElements-background-color.html:
+        * platform/ios-simulator-wk1/TestExpectations:
+        * platform/ios-simulator-wk2/TestExpectations:
+        * platform/mac/TestExpectations:
+        * platform/win/TestExpectations:
+
 2016-07-07  Frederic Wang  <fred.wang@free.fr>
 
         Fix the name of mathml-in-dashboard-expected.txt for iOS.
index 8f86eec..78d8f77 100644 (file)
@@ -12,6 +12,9 @@
       math > mrow > mrow {
         visibility: hidden;
       }
+      mo, mtext, mn, mi {
+        font: 20px Ahem;
+      }
     </style>
   </head>
   <body>
@@ -22,7 +25,6 @@
         <mrow><mrow><mo>mo</mo></mrow></mrow>
         <mrow><mrow><mo>+</mo></mrow></mrow>
         <mrow><mrow><mi>mi</mi></mrow></mrow>
-        <mrow><mrow><mi>m</mi></mrow></mrow>
         <mrow><mrow><mn>mn</mn></mrow></mrow>
       </math>
     </p>
index 742ed82..1120413 100644 (file)
@@ -11,6 +11,7 @@
       }
       mo, mtext, mn, mi {
         background: #faa;
+        font: 20px Ahem;
       }
     </style>
   </head>
@@ -25,7 +26,6 @@
         <mo>mo</mo>
         <mo>+</mo>
         <mi>mi</mi>
-        <mi>m</mi>
         <mn>mn</mn>
       </math>
     </p>
index 037787e..8795785 100644 (file)
@@ -736,7 +736,6 @@ mathml/presentation/mo-invisible.html
 # MathML tests that fail:
 mathml/presentation/mo-stretch-update.html [ ImageOnlyFailure ]
 mathml/presentation/scripts-subsup.html [ ImageOnlyFailure ]
-mathml/presentation/tokenElements-background-color.html [ ImageOnlyFailure ]
 
 # SVG tests that fail:
 imported/mozilla/svg/smil/motion/animateMotion-values-linear-1.svg [ ImageOnlyFailure ]
index 79fe3cb..0fac76f 100644 (file)
@@ -134,9 +134,6 @@ scrollbars/scrolling-by-page-on-keyboard-spacebar.html [ Failure ]
 # WebKitTestRunner needs testRunner.setUseDashboardCompatibilityMode
 mathml/mathml-in-dashboard.html [ Skip ]
 
-# MathML tests that fail due to slight pixel differences:
-mathml/presentation/tokenElements-background-color.html [ ImageOnlyFailure ]
-
 # SVG tests that time out (these require EventSender)
 svg/animations/animVal-basics.html
 svg/animations/animate-calcMode-spline-by.html
index b48850b..8a80aff 100644 (file)
@@ -808,7 +808,6 @@ mathml/opentype/large-operators-italic-correction.html [ Skip ]
 # MathML tests that fail:
 mathml/presentation/multiscripts-positions.html [ Pass ImageOnlyFailure ]
 mathml/presentation/scripts-subsup.html [ Pass ImageOnlyFailure ]
-webkit.org/b/130693 mathml/presentation/tokenElements-background-color.html [ ImageOnlyFailure ]
 
 webkit.org/b/128255 compositing/columns/composited-lr-paginated-repaint.html [ Pass Failure ]
 webkit.org/b/128255 compositing/columns/composited-rl-paginated-repaint.html [ Pass Failure ]
index d2ed98f..1785d08 100644 (file)
@@ -1940,7 +1940,6 @@ http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html [
 ##################          MathML Issues                   ####################
 ################################################################################
 mathml/presentation/mo-stacked-glyphs.html [ ImageOnlyFailure ]
-mathml/presentation/tokenElements-background-color.html [ ImageOnlyFailure ]
 mathml/presentation/style-changed.html [ Crash Pass ]
 mathml/opentype/large-operators-munderover.html [ Failure ]
 mathml/presentation/attributes-mathvariant.html [ ImageOnlyFailure ]