Changeset 51626 in webkit


Ignore:
Timestamp:
Dec 2, 2009 11:27:34 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-12-02 Shinichiro Hamaji <hamaji@chromium.org>

Reviewed by Darin Adler.

Rewrite two tests with dumpAsText
https://bugs.webkit.org/show_bug.cgi?id=32014

  • fast/block/positioning/complex-percentage-height-expected.txt: Added.
  • fast/block/positioning/complex-percentage-height.html:
  • fast/lists/item-not-in-list-line-wrapping-expected.txt: Added.
  • fast/lists/item-not-in-list-line-wrapping.html:
  • platform/mac/fast/block/positioning/complex-percentage-height-expected.checksum: Removed.
  • platform/mac/fast/block/positioning/complex-percentage-height-expected.png: Removed.
  • platform/mac/fast/block/positioning/complex-percentage-height-expected.txt: Removed.
  • platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.checksum: Removed.
  • platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.png: Removed.
  • platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.txt: Removed.
  • platform/qt/Skipped:
  • platform/qt/fast/block/positioning/complex-percentage-height-expected.txt: Removed.
  • platform/qt/fast/lists/item-not-in-list-line-wrapping-expected.txt: Removed.
Location:
trunk/LayoutTests
Files:
2 added
8 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r51615 r51626  
     12009-12-02  Shinichiro Hamaji  <hamaji@chromium.org>
     2
     3        Reviewed by Darin Adler.
     4
     5        Rewrite two tests with dumpAsText
     6        https://bugs.webkit.org/show_bug.cgi?id=32014
     7
     8        * fast/block/positioning/complex-percentage-height-expected.txt: Added.
     9        * fast/block/positioning/complex-percentage-height.html:
     10        * fast/lists/item-not-in-list-line-wrapping-expected.txt: Added.
     11        * fast/lists/item-not-in-list-line-wrapping.html:
     12        * platform/mac/fast/block/positioning/complex-percentage-height-expected.checksum: Removed.
     13        * platform/mac/fast/block/positioning/complex-percentage-height-expected.png: Removed.
     14        * platform/mac/fast/block/positioning/complex-percentage-height-expected.txt: Removed.
     15        * platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.checksum: Removed.
     16        * platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.png: Removed.
     17        * platform/mac/fast/lists/item-not-in-list-line-wrapping-expected.txt: Removed.
     18        * platform/qt/Skipped:
     19        * platform/qt/fast/block/positioning/complex-percentage-height-expected.txt: Removed.
     20        * platform/qt/fast/lists/item-not-in-list-line-wrapping-expected.txt: Removed.
     21
    1222009-12-02  Alexey Proskuryakov  <ap@apple.com>
    223
  • trunk/LayoutTests/fast/block/positioning/complex-percentage-height.html

    r21816 r51626  
    11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
    22<html>
    3         <head>
    4         <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
     3    <head>
     4        <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    55
    6         <style type="text/css" media="screen">
     6        <style type="text/css" media="screen">
    77
    8                         * {
    9                                 margin: 0;
    10                                 padding: 0;
    11                         }
     8            * {
     9                margin: 0;
     10                padding: 0;
     11            }
    1212
    13                         /* -------- Test case ---------- */
     13            /* -------- Test case ---------- */
    1414
    15                         #warper {
    16                                 margin: 40px;
    17                                 width: 400px;
    18                                 border: 3px solid blue;
    19                                 position: relative;
    20                                 height: auto;
    21                         }
     15            #warper {
     16                margin: 40px;
     17                width: 400px;
     18                border: 3px solid blue;
     19                position: relative;
     20                height: auto;
     21            }
    2222
    23                         .fill {
    24                                 height: 40px;
    25                                 margin-bottom: 10px;
    26                                 background-color: green;
    27                         }
     23            .fill {
     24                height: 40px;
     25                margin-bottom: 10px;
     26                background-color: green;
     27            }
    2828
    29                         #abs_100_height {
    30                                 height: 100%;
    31                                 width: 200px;
    32                                 position: absolute;
    33                                 top: 0;
    34                                 left: 0;
    35                                 border: 3px solid yellow;
    36                         }
     29            #abs_100_height {
     30                height: 100%;
     31                width: 200px;
     32                position: absolute;
     33                top: 0;
     34                left: 0;
     35                border: 3px solid yellow;
     36            }
    3737
    38                         #abs_100_height div {
    39                                 height: 100%;
    40                                 border: 3px dashed red;
    41                         }
     38            #abs_100_height div {
     39                height: 100%;
     40                border: 3px dashed red;
     41            }
    4242
    43                         /* -------- Test case ends ---------- */
     43            /* -------- Test case ends ---------- */
    4444
    45                         #desc {
    46                                 margin: 100px 0 0 50px;
    47                         }
     45            #desc {
     46                margin: 100px 0 0 50px;
     47            }
    4848
    49                         h3 {
    50                                 margin-bottom: 5px;
    51                         }
     49            h3 {
     50                margin-bottom: 5px;
     51            }
    5252
    53                         ul {
    54                                 list-style-position: inside;
    55                                 margin-bottom: 20px;
    56                         }
     53            ul {
     54                list-style-position: inside;
     55                margin-bottom: 20px;
     56            }
    5757
    58                         li {
    59                                 margin-bottom: 7px;
    60                         }
     58            li {
     59                margin-bottom: 7px;
     60            }
    6161
    62                         p {
    63                                 margin-bottom: 20px;
    64                         }
     62            p {
     63                margin-bottom: 20px;
     64            }
    6565
    66                 </style>
     66        </style>
    6767
    6868    </head>
    6969
    70         <body>
     70    <body>
    7171
    72                 <!-- Test case -->
     72        <!-- Test case -->
    7373
    74                 <div id="warper">
     74        <div id="warper">
    7575
    76                         <div class="fill"></div>
    77                         <div class="fill"></div>
    78                         <div class="fill"></div>
     76            <div class="fill"></div>
     77            <div class="fill"></div>
     78            <div class="fill"></div>
    7979
    80                         <div id="abs_100_height">
    81                                 <div></div>
    82                         </div>
     80            <div id="abs_100_height">
     81                <div id="inner_abs_100_height"></div>
     82            </div>
    8383
    84                 </div>
     84        </div>
    8585
    86                 <!-- Test case ends -->
     86        <!-- Test case ends -->
    8787
    88                 <div id="desc">
     88        <div id="desc">
    8989
    90                         <h3>Test case:</h3>
    91                         <ul>
    92                                 <li>
    93                                         Blue div has 400px width, dynamic height, and position: relative.
    94                                 </li>
    95                                 <li>
    96                                         Inside blue div there are 3 other div with height: 40px (and has some bottom margin..)<br>
    97                                         the height of the blue div expands with the green divs inside..
    98                                 </li>
    99                                 <li>
    100                                         Yellow div has position absolute (and positioned in the top left corner of the blue div)<br>
    101                                         it's height set to 100%<br>
    102                                         the height of the yellow div now equals with the height of the blue div
    103                                 </li>
    104                                 <li>
    105                                         Red div is inserted into the yellow div, and it's height set to 100%
    106                                 </li>
    107                         </ul>
     90            <h3>Test case:</h3>
     91            <ul>
     92                <li>
     93                    Blue div has 400px width, dynamic height, and position: relative.
     94                </li>
     95                <li>
     96                    Inside blue div there are 3 other div with height: 40px (and has some bottom margin..)<br>
     97                    the height of the blue div expands with the green divs inside..
     98                </li>
     99                <li>
     100                    Yellow div has position absolute (and positioned in the top left corner of the blue div)<br>
     101                    it's height set to 100%<br>
     102                    the height of the yellow div now equals with the height of the blue div
     103                </li>
     104                <li>
     105                    Red div is inserted into the yellow div, and it's height set to 100%
     106                </li>
     107            </ul>
    108108
    109                         <h3>Problem:</h3>
    110                         <p>
    111                                 The height of the red div <strong>should equals</strong> to the height of the blue (and yellow) div.<br>
    112                                 It works right with Opera 9.2, Firefox 2, Camino 1.0.4 and Internet Explorer 7.
    113                         </p>
     109            <h3>Problem:</h3>
     110            <p>
     111                The height of the red div <strong>should equals</strong> to the height of the blue (and yellow) div.<br>
     112                It works right with Opera 9.2, Firefox 2, Camino 1.0.4 and Internet Explorer 7.
     113            </p>
    114114
    115                         <h3>Workaround:</h3>
    116                         <p>
    117                                 If you set position absolute to the red div, it's height will expands along with the blue div.
    118                         </p>
     115            <h3>Workaround:</h3>
     116            <p>
     117                If you set position absolute to the red div, it's height will expands along with the blue div.
     118            </p>
    119119
    120                 </div>
     120            <h3>Result:</h3>
     121            <div id="result"></div>
     122        </div>
    121123
    122         </body>
     124        <script>
     125            function gebi(id)
     126            {
     127                return document.getElementById(id);
     128            }
     129
     130            function addResult(color, message)
     131            {
     132                var result = gebi("result");
     133                var div = document.createElement("div");
     134                div.style.color = color;
     135                div.appendChild(document.createTextNode(message));
     136                result.appendChild(div);
     137            }
     138
     139            var blueHeight = gebi("warper").offsetHeight;
     140            var yellowHeight = gebi("abs_100_height").offsetHeight;
     141            var redHeight = gebi("inner_abs_100_height").offsetHeight;
     142            if (redHeight == yellowHeight)
     143                addResult("green", "PASS: redHeight == yellowHeight");
     144            else
     145                addResult("red", "FAILED: redHeight (" + redHeight + ") != yellowHeight (" + yellowHeight + ")");
     146            if (redHeight == blueHeight)
     147                addResult("green", "PASS: redHeight == blueHeight");
     148            else
     149                addResult("red", "FAILED: redHeight (" + redHeight + ") != blueHeight (" + blueHeight + ")");
     150
     151            if (window.layoutTestController)
     152                layoutTestController.dumpAsText();
     153        </script>
     154
     155    </body>
    123156</html>
  • trunk/LayoutTests/fast/lists/item-not-in-list-line-wrapping.html

    r19601 r51626  
    1212    </p>
    1313    <div style="background-color:yellow; width: 125px;">
    14         <li>
     14        <li><span id="text">
    1515            Lorem ipsum dolor sit amet
    16         </li>
     16        </span></li>
    1717    </div>
     18    <div id="result">
     19    </div>
     20    <script>
     21        var result = document.getElementById("result");
     22        var text = document.getElementById("text");
     23        if (text.offsetWidth <= 125)
     24            result.innerHTML = "PASS";
     25        else
     26            result.innerHTML = "FAILED: text.offsetWidth=" + text.offsetWidth;
     27
     28        if (window.layoutTestController)
     29            layoutTestController.dumpAsText();
     30    </script>
    1831</body>
    1932</html>
  • trunk/LayoutTests/platform/qt/Skipped

    r51610 r51626  
    52825282# hamaji will look into this.
    52835283editing/selection/last-empty-inline.html
    5284 
    5285 fast/block/positioning/complex-percentage-height.html
    5286 fast/lists/item-not-in-list-line-wrapping.html
Note: See TracChangeset for help on using the changeset viewer.