Changeset 174614 in webkit


Ignore:
Timestamp:
Oct 10, 2014 3:29:20 PM (10 years ago)
Author:
dino@apple.com
Message:

RenderMathMLUnderOver adds spacing to the child operator indefinitely when resizing the window.
https://bugs.webkit.org/show_bug.cgi?id=137330

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2014-10-10
Reviewed by Simon Fraser.

Change the layout with resize test of the MathML underover object from being render tree test
to be reference test. The render test was failing on WK2 because it was doing window resizing
and view zooming. The new test rely solely on forcing the layout synchronously by resizing the
math container <div> element.

  • mathml/opentype/munderover-layout-resize-expected.html: Added.
  • mathml/opentype/munderover-layout-resize.html: Added.
  • mathml/opentype/munderover-window-resize-expected.txt: Removed.
  • mathml/opentype/munderover-window-resize.html: Removed.
Location:
trunk/LayoutTests
Files:
1 deleted
1 edited
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r174613 r174614  
     12014-10-10  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        RenderMathMLUnderOver adds spacing to the child operator indefinitely when resizing the window.
     4        https://bugs.webkit.org/show_bug.cgi?id=137330
     5
     6        Reviewed by Simon Fraser.
     7
     8        Change the layout with resize test of the MathML underover object from being render tree test
     9        to be reference test. The render test was failing on WK2 because it was doing window resizing
     10        and view zooming.  The new test rely solely on forcing the layout synchronously by resizing the
     11        math container <div> element.
     12
     13        * mathml/opentype/munderover-layout-resize-expected.html: Added.
     14        * mathml/opentype/munderover-layout-resize.html: Added.
     15        * mathml/opentype/munderover-window-resize-expected.txt: Removed.
     16        * mathml/opentype/munderover-window-resize.html: Removed.
     17
    1182014-10-10  Benjamin Poulain  <benjamin@webkit.org>
    219
  • trunk/LayoutTests/mathml/opentype/munderover-layout-resize-expected.html

    r174613 r174614  
    22<html>
    33<head>
    4   <title>Open Type MATH - under-over operator</title>
    5   <meta charset="utf-8">
    64  <style type="text/css">
    7     /* This font is taken from Mozilla's test suite. */
    85    @font-face {
    96      font-family: stretchy;
     
    1310      font-family: stretchy;
    1411      font-size: 10px;
     12    }
     13    div {
     14      width: 700px;
     15      height: 100px;
     16      background-color:#eeeeee;
    1517    }
    1618  </style>
     
    98100  </math>
    99101</div>
    100 <script>
    101         for (var zoom = 110; zoom <= 200; zoom += 10) {
    102         document.body.style.zoom = zoom + "%";
    103         }
    104     document.body.style.zoom="100%";
    105     var width = window.outerWidth;
    106     window.resizeTo(250, window.outerHeight);
    107     window.resizeTo(width, window.outerHeight);
    108 </script>
    109102</body>
    110103</html>
  • trunk/LayoutTests/mathml/opentype/munderover-layout-resize.html

    • Property svn:eol-style set to native
    • Property svn:keywords set to Date Revision
    • Property svn:mime-type set to text/html
    r174613 r174614  
    22<html>
    33<head>
    4   <title>Open Type MATH - under-over operator</title>
    5   <meta charset="utf-8">
    64  <style type="text/css">
    7     /* This font is taken from Mozilla's test suite. */
    85    @font-face {
    96      font-family: stretchy;
     
    1411      font-size: 10px;
    1512    }
     13    div {
     14      width: 700px;
     15      height: 100px;
     16      background-color:#eeeeee;
     17    }
    1618  </style>
    1719<body>
    18 <div>
     20<div id="mathContainer">
    1921  <math display='block'>
    2022    <mrow>
     
    99101</div>
    100102<script>
    101         for (var zoom = 110; zoom <= 200; zoom += 10) {
    102         document.body.style.zoom = zoom + "%";
    103         }
    104     document.body.style.zoom="100%";
    105     var width = window.outerWidth;
    106     window.resizeTo(250, window.outerHeight);
    107     window.resizeTo(width, window.outerHeight);
     103  var mathDiv = document.getElementById("mathContainer");
     104
     105  mathDiv.style.width = "300px";
     106  document.body.offsetWidth; // forces layout
     107
     108  mathDiv.style.width = "500px";
     109  document.body.offsetWidth; // forces layout
     110
     111  mathDiv.style.width = "700px";
     112  document.body.offsetWidth; // forces layout
    108113</script>
    109114</body>
Note: See TracChangeset for help on using the changeset viewer.