Changeset 101949 in webkit


Ignore:
Timestamp:
Dec 4, 2011 12:28:17 AM (12 years ago)
Author:
rniwa@webkit.org
Message:

Convert isolate and plaintext tests to reftests
https://bugs.webkit.org/show_bug.cgi?id=73680

Reviewed by Darin Adler.

Convert bdi-element-expected.html, unicode-bidi-isolate-aharon.html, and unicode-bidi-plaintext.html to reftests.
In addition, isolate the failing test case in unicode-bidi-plaintext.html as unicode-bidi-isolate-aharon-failing.html.

  • css3/bdi-element-expected.html: Copied from LayoutTests/css3/bdi-element.html.
  • css3/unicode-bidi-isolate-aharon-expected.html: Copied from LayoutTests/css3/unicode-bidi-isolate-aharon.html.
  • css3/unicode-bidi-isolate-aharon-failing-expected.html: Added.
  • css3/unicode-bidi-isolate-aharon-failing.html: Added.
  • css3/unicode-bidi-isolate-aharon.html:
  • fast/text/international/unicode-bidi-plaintext.html:
  • platform/chromium-cg-mac-leopard/css3/bdi-element-expected.png: Removed.
  • platform/chromium-cg-mac-leopard/css3/bdi-element-expected.txt: Removed.
  • platform/chromium-cg-mac-leopard/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/chromium-cg-mac/css3/bdi-element-expected.png: Removed.
  • platform/chromium-linux/css3/bdi-element-expected.png: Removed.
  • platform/chromium-linux/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/chromium-mac-leopard/css3/bdi-element-expected.png: Removed.
  • platform/chromium-mac-leopard/css3/bdi-element-expected.txt: Removed.
  • platform/chromium-mac-leopard/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/chromium-mac/css3/bdi-element-expected.png: Removed.
  • platform/chromium-mac/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/chromium-win/css3/bdi-element-expected.png: Removed.
  • platform/chromium-win/css3/bdi-element-expected.txt: Removed.
  • platform/chromium-win/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/chromium-win/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
  • platform/chromium/css3/bdi-element-expected.txt: Removed.
  • platform/efl/css3/bdi-element-expected.png: Removed.
  • platform/efl/css3/bdi-element-expected.txt: Removed.
  • platform/efl/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/efl/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
  • platform/gtk/css3/bdi-element-expected.png: Removed.
  • platform/gtk/css3/bdi-element-expected.txt: Removed.
  • platform/gtk/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/gtk/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
  • platform/mac/css3/bdi-element-expected.png: Removed.
  • platform/mac/css3/bdi-element-expected.txt: Removed.
  • platform/mac/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/mac/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
  • platform/qt/css3/bdi-element-expected.png: Removed.
  • platform/qt/css3/bdi-element-expected.txt: Removed.
  • platform/win/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
  • platform/win/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
Location:
trunk/LayoutTests
Files:
2 added
32 deleted
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r101947 r101949  
     12011-12-02  Ryosuke Niwa  <rniwa@webkit.org>
     2
     3        Convert isolate and plaintext tests to reftests
     4        https://bugs.webkit.org/show_bug.cgi?id=73680
     5
     6        Reviewed by Darin Adler.
     7
     8        Convert bdi-element-expected.html, unicode-bidi-isolate-aharon.html, and unicode-bidi-plaintext.html to reftests.
     9        In addition, isolate the failing test case in unicode-bidi-plaintext.html as unicode-bidi-isolate-aharon-failing.html.
     10
     11        * css3/bdi-element-expected.html: Copied from LayoutTests/css3/bdi-element.html.
     12        * css3/unicode-bidi-isolate-aharon-expected.html: Copied from LayoutTests/css3/unicode-bidi-isolate-aharon.html.
     13        * css3/unicode-bidi-isolate-aharon-failing-expected.html: Added.
     14        * css3/unicode-bidi-isolate-aharon-failing.html: Added.
     15        * css3/unicode-bidi-isolate-aharon.html:
     16        * fast/text/international/unicode-bidi-plaintext.html:
     17        * platform/chromium-cg-mac-leopard/css3/bdi-element-expected.png: Removed.
     18        * platform/chromium-cg-mac-leopard/css3/bdi-element-expected.txt: Removed.
     19        * platform/chromium-cg-mac-leopard/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     20        * platform/chromium-cg-mac/css3/bdi-element-expected.png: Removed.
     21        * platform/chromium-linux/css3/bdi-element-expected.png: Removed.
     22        * platform/chromium-linux/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     23        * platform/chromium-mac-leopard/css3/bdi-element-expected.png: Removed.
     24        * platform/chromium-mac-leopard/css3/bdi-element-expected.txt: Removed.
     25        * platform/chromium-mac-leopard/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     26        * platform/chromium-mac/css3/bdi-element-expected.png: Removed.
     27        * platform/chromium-mac/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     28        * platform/chromium-win/css3/bdi-element-expected.png: Removed.
     29        * platform/chromium-win/css3/bdi-element-expected.txt: Removed.
     30        * platform/chromium-win/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     31        * platform/chromium-win/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
     32        * platform/chromium/css3/bdi-element-expected.txt: Removed.
     33        * platform/efl/css3/bdi-element-expected.png: Removed.
     34        * platform/efl/css3/bdi-element-expected.txt: Removed.
     35        * platform/efl/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     36        * platform/efl/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
     37        * platform/gtk/css3/bdi-element-expected.png: Removed.
     38        * platform/gtk/css3/bdi-element-expected.txt: Removed.
     39        * platform/gtk/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     40        * platform/gtk/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
     41        * platform/mac/css3/bdi-element-expected.png: Removed.
     42        * platform/mac/css3/bdi-element-expected.txt: Removed.
     43        * platform/mac/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     44        * platform/mac/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
     45        * platform/qt/css3/bdi-element-expected.png: Removed.
     46        * platform/qt/css3/bdi-element-expected.txt: Removed.
     47        * platform/win/fast/text/international/unicode-bidi-plaintext-expected.png: Removed.
     48        * platform/win/fast/text/international/unicode-bidi-plaintext-expected.txt: Removed.
     49
    1502011-12-03  Vincent Scheib  <scheib@chromium.org>
    251
  • trunk/LayoutTests/css3/bdi-element-expected.html

    r101733 r101949  
    1212</p>
    1313<ul>
    14  <li>User <bdi>jcranmer</bdi>: 12 posts.
    15  <li>User <bdi>hober</bdi>: 5 posts.
    16  <li>User <bdi>إيان</bdi>: 3 posts.
     14 <li>User jcranmer: 12 posts.
     15 <li>User hober: 5 posts.
     16 <li>User <span style="display: inline-block;">إيان</span><span dir="ltr">: 3 posts.</span></span>
    1717</ul>
    1818</body>
  • trunk/LayoutTests/css3/unicode-bidi-isolate-aharon-expected.html

    r101733 r101949  
    22<html><head>
    33<title>Test cases for unicode-bidi:isolate</title>
    4 <style>
    5   .test {
    6     position: relative;
    7     color: red;
    8     z-index: -1;
    9     height: 0px; /* Remove height: 0px to see side-by-side comparisons. */
    10   }
    11   .isolate {
    12     unicode-bidi: -webkit-isolate;
    13   }
    14 </style>
    154</head><body>
    165No red text should be visible in any of the sections below.
    176opposite-to-base isolate followed by number.
    187<div>
    19   <div class="test">
    20     <span class="isolate">&#x05D0;</span> (3 reviews)
    21   </div>
    228  <div class="reference">
    239    <span dir="ltr">&#x05D0;</span> (3 reviews)
     
    2713opposite-to-base isolate with opposite-to-base text before it with neutrals in between.
    2814<div>
    29   <div class="test">
    30     &#x05D0;: <span class="isolate">&#x05D1;</span>
    31   </div>
    3215  <div class="reference">
    3316    <span dir="ltr">&#x05D0;</span>: <span dir="ltr">&#x05D1;</span>
     
    3720opposite-to-base isolate with opposite-to-base text before it and nothing in between.
    3821<div>
    39   <div class="test">
    40     &#x05D0;<span class="isolate">&#x05D1;</span>
    41   </div>
    4222  <div class="reference">
    4323    <bdo dir="ltr">&#x05D0;&#x05D1;</bdo>
     
    4727two opposite-to-base isolates with neutrals in between.
    4828<div>
    49   <div class="test">
    50     <span class="isolate">&#x05D0;</span> = <span class="isolate">&#x05D1;</span>
    51   </div>
    5229  <div class="reference">
    5330    <span dir="ltr">&#x05D0;</span> = <span dir="ltr">&#x05D1;</span>
     
    5734two opposite-to-base isolates with nothing in between.
    5835<div>
    59   <div class="test">
    60     <span class="isolate">&#x05D0;</span><span class="isolate">&#x05D1;</span>
    61   </div>
    6236  <div class="reference">
    6337    <bdo dir="ltr">&#x05D0;&#x05D1;</bdo>
     
    6741same-as-base isolate preceded by opposite-to-base text and followed by number
    6842<div dir="rtl">
    69   <div class="test">
    70     see <span class="isolate">&#x05D0;</span><sup>3</sup>
    71   </div>
    7243  <div class="reference">
    7344    see <span dir="ltr">&#x05D0;</span><sup>3</sup>
     
    7748same-as-base isolate surrounded by opposite-to-base text
    7849<div dir="rtl">
    79   <div class="test">
    80     with <span class="isolate">&#x05D0;</span>=<span class="isolate">&#x05D1;</span> everywhere
    81   </div>
    8250  <div class="reference">
    8351    with <span dir="ltr">&#x05D0;</span>=<span dir="ltr">&#x05D1;</span> everywhere
     
    8755chimeric isolate surrounded by chimeric text
    8856<div>
    89   <div class="test">
    90     about <span class="isolate">that &#x05D0;</span> - &#x05D1;
    91   </div>
    9257  <div class="reference">
    9358    about that <span dir="ltr">&#x05D0;</span> - &#x05D1;
     
    9560</div>
    9661<hr>
    97 same-as-base isolate containing &lt;br&gt; surrounded by opposite-to-base text
    98 <!-- FIXME: This subtest may be invalid, see https://bugs.webkit.org/show_bug.cgi?id=50912#c30 -->
    99 <div dir="rtl">
    100   <div class="test">
    101     things to do: (1) <span class="isolate">&#x05D0;<br></span> (2) sleep
    102   </div>
    103   <div class="reference">
    104     <span dir="ltr">things to do: (1) &#x05D0;</span><br><span dir="ltr"> (2) sleep</span>
    105   </div>
    106 </div>
    107 <hr>
    10862nested chimeric isolates surrounded by chimeric text
    10963<div>
    110   <div class="test">
    111     about <span class="isolate">that <span class="isolate">strange &#x05D0;</span> - &#x05D1;</span> - &#x05D2;
    112   </div>
    11364  <div class="reference">
    11465    about that strange <span dir="ltr">&#x05D0;</span> - <span dir="ltr">&#x05D1;</span> - &#x05D2;
  • trunk/LayoutTests/css3/unicode-bidi-isolate-aharon.html

    r94775 r101949  
    33<title>Test cases for unicode-bidi:isolate</title>
    44<style>
    5   .test {
    6     position: relative;
    7     color: red;
    8     z-index: -1;
    9     height: 0px; /* Remove height: 0px to see side-by-side comparisons. */
    10   }
    115  .isolate {
    126    unicode-bidi: -webkit-isolate;
     7    unicode-bidi: -moz-isolate;
     8    unicode-bidi: isolate;
    139  }
    1410</style>
     
    2016    <span class="isolate">&#x05D0;</span> (3 reviews)
    2117  </div>
    22   <div class="reference">
    23     <span dir="ltr">&#x05D0;</span> (3 reviews)
    24   </div>
    2518</div>
    2619<hr>
     
    2922  <div class="test">
    3023    &#x05D0;: <span class="isolate">&#x05D1;</span>
    31   </div>
    32   <div class="reference">
    33     <span dir="ltr">&#x05D0;</span>: <span dir="ltr">&#x05D1;</span>
    3424  </div>
    3525</div>
     
    4030    &#x05D0;<span class="isolate">&#x05D1;</span>
    4131  </div>
    42   <div class="reference">
    43     <bdo dir="ltr">&#x05D0;&#x05D1;</bdo>
    44   </div>
    4532</div>
    4633<hr>
     
    4936  <div class="test">
    5037    <span class="isolate">&#x05D0;</span> = <span class="isolate">&#x05D1;</span>
    51   </div>
    52   <div class="reference">
    53     <span dir="ltr">&#x05D0;</span> = <span dir="ltr">&#x05D1;</span>
    5438  </div>
    5539</div>
     
    6044    <span class="isolate">&#x05D0;</span><span class="isolate">&#x05D1;</span>
    6145  </div>
    62   <div class="reference">
    63     <bdo dir="ltr">&#x05D0;&#x05D1;</bdo>
    64   </div>
    6546</div>
    6647<hr>
     
    6950  <div class="test">
    7051    see <span class="isolate">&#x05D0;</span><sup>3</sup>
    71   </div>
    72   <div class="reference">
    73     see <span dir="ltr">&#x05D0;</span><sup>3</sup>
    7452  </div>
    7553</div>
     
    8058    with <span class="isolate">&#x05D0;</span>=<span class="isolate">&#x05D1;</span> everywhere
    8159  </div>
    82   <div class="reference">
    83     with <span dir="ltr">&#x05D0;</span>=<span dir="ltr">&#x05D1;</span> everywhere
    84   </div>
    8560</div>
    8661<hr>
     
    8964  <div class="test">
    9065    about <span class="isolate">that &#x05D0;</span> - &#x05D1;
    91   </div>
    92   <div class="reference">
    93     about that <span dir="ltr">&#x05D0;</span> - &#x05D1;
    94   </div>
    95 </div>
    96 <hr>
    97 same-as-base isolate containing &lt;br&gt; surrounded by opposite-to-base text
    98 <!-- FIXME: This subtest may be invalid, see https://bugs.webkit.org/show_bug.cgi?id=50912#c30 -->
    99 <div dir="rtl">
    100   <div class="test">
    101     things to do: (1) <span class="isolate">&#x05D0;<br></span> (2) sleep
    102   </div>
    103   <div class="reference">
    104     <span dir="ltr">things to do: (1) &#x05D0;</span><br><span dir="ltr"> (2) sleep</span>
    10566  </div>
    10667</div>
     
    11172    about <span class="isolate">that <span class="isolate">strange &#x05D0;</span> - &#x05D1;</span> - &#x05D2;
    11273  </div>
    113   <div class="reference">
    114     about that strange <span dir="ltr">&#x05D0;</span> - <span dir="ltr">&#x05D1;</span> - &#x05D2;
    115   </div>
    11674</div>
    11775</body></html>
  • trunk/LayoutTests/fast/text/international/unicode-bidi-plaintext-expected.html

    r101733 r101949  
    11<!DOCTYPE html>
    2 
    32<html>
    43<head>
    5 <style>
    6 .resultsDiv {
    7     position: absolute;
    8     top: 0px;
    9     left: 0px;
    10     -moz-column-width: 13em;
    11     -webkit-column-width: 13em;
    12     -moz-column-gap: 5em;
    13     -webkit-column-gap: 5em;
    14     height: 400px;
    15 }
    16 </style>
    174<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    185</head>
     
    207<div>This tests proper handling of unicode-bidi: plaintext. You should not see any red.</div>
    218
    22 <div style="position:relative">
    23 <div class="resultsDiv">
    24 <div style="color: red; unicode-bidi: -webkit-plaintext;">
    25 !hello.
    26 <br>
    27 !שלום.
    28 <br>
    29 hello, לוי!
    30 <br>
    31 שלום, WebKit!
    32 </div>
    33 <pre style="color: red; margin: 0;" dir="auto">
    34 a
    35 (
    36 שלום, WebKit!
    37 hello, לוי!
    38 )
    39 </pre>
    40 </div>
    41 </div>
    42 
    43 <div style="position: relative;">
    44 <div style="color:green;" class="resultsDiv" dir=ltr>
     9<div dir=ltr>
    4510!hello.<br>
    4611<span dir=rtl>
     
    5217<span dir=rtl>
    5318שלום, WebKit!</span><br>
    54 <pre style="color: green; margin: 0;">
     19<pre>
    5520a
    5621(
     
    6025</pre>
    6126</div>
     27
     28</body>
     29</html>
  • trunk/LayoutTests/fast/text/international/unicode-bidi-plaintext.html

    r89864 r101949  
    11<!DOCTYPE html>
    2 
    32<html>
    43<head>
    5 <style>
    6 .resultsDiv {
    7     position: absolute;
    8     top: 0px;
    9     left: 0px;
    10     -moz-column-width: 13em;
    11     -webkit-column-width: 13em;
    12     -moz-column-gap: 5em;
    13     -webkit-column-gap: 5em;
    14     height: 400px;
    15 }
    16 </style>
    174<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    185</head>
     
    207<div>This tests proper handling of unicode-bidi: plaintext. You should not see any red.</div>
    218
    22 <div style="position:relative">
    23 <div class="resultsDiv">
    24 <div style="color: red; unicode-bidi: -webkit-plaintext;">
     9<div style="unicode-bidi: -webkit-plaintext; unicode-bidi: -moz-plaintext; unicode-bidi: plaintext;">
    2510!hello.
    2611<br>
     
    3116שלום, WebKit!
    3217</div>
    33 <pre style="color: red; margin: 0;" dir="auto">
     18<pre dir="auto">
    3419a
    3520(
     
    3924</pre>
    4025</div>
    41 </div>
    4226
    43 <div style="position: relative;">
    44 <div style="color:green;" class="resultsDiv" dir=ltr>
    45 !hello.<br>
    46 <span dir=rtl>
    47 !שלום.
    48 </span><br>
    49 <span dir=ltr>
    50 hello, לוי!
    51 </span><br>
    52 <span dir=rtl>
    53 שלום, WebKit!</span><br>
    54 <pre style="color: green; margin: 0;">
    55 a
    56 (
    57 !WebKit ,שלום
    58 hello, לוי!
    59 )
    60 </pre>
    61 </div>
     27</body>
     28</html>
Note: See TracChangeset for help on using the changeset viewer.