Changeset 180178 in webkit


Ignore:
Timestamp:
Feb 16, 2015 3:11:23 PM (9 years ago)
Author:
mmaxfield@apple.com
Message:

Update fast/dom/{Element,Range}/getClientRects.html after r177774
https://bugs.webkit.org/show_bug.cgi?id=141665

Reviewed by Alexey Proskuryakov.

Line breaking is different due to different text metrics.

  • fast/dom/Element/getClientRects-expected.txt:
  • fast/dom/Element/getClientRects.html:
  • fast/dom/Range/getClientRects-expected.txt:
  • fast/dom/Range/getClientRects.html:
  • platform/mac/TestExpectations:
Location:
trunk/LayoutTests
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r180176 r180178  
     12015-02-16  Myles C. Maxfield  <mmaxfield@apple.com>
     2
     3        Update fast/dom/{Element,Range}/getClientRects.html after r177774
     4        https://bugs.webkit.org/show_bug.cgi?id=141665
     5
     6        Reviewed by Alexey Proskuryakov.
     7
     8        Line breaking is different due to different text metrics.
     9
     10        * fast/dom/Element/getClientRects-expected.txt:
     11        * fast/dom/Element/getClientRects.html:
     12        * fast/dom/Range/getClientRects-expected.txt:
     13        * fast/dom/Range/getClientRects.html:
     14        * platform/mac/TestExpectations:
     15
    1162015-02-13  Myles C. Maxfield  <mmaxfield@apple.com>
    217
  • trunk/LayoutTests/fast/dom/Element/getClientRects-expected.txt

    r48806 r180178  
    1818
    1919Client bounding rects for #7
    20 PASS testRects.length is 10
     20PASS testRects.length is 11
    2121
    2222Client bounding rects for #8
     
    2424
    2525Client bounding rects for #9
    26 FAIL testRects.length should be 2. Was 1.
     26PASS testRects.length is 1
    2727
    2828Client bounding rects for #10
  • trunk/LayoutTests/fast/dom/Element/getClientRects.html

    r155265 r180178  
    129129        1,
    130130        1,
    131         10,
     131        11,
    132132        1,
    133         2,
     133        1,
    134134        1,
    135135        1,
  • trunk/LayoutTests/fast/dom/Range/getClientRects-expected.txt

    r152871 r180178  
    77PASS rects[1].left is 8
    88PASS rects[1].top is 19
    9 PASS rects[1].width is 396
     9PASS rects[1].width is 387
    1010PASS rects[1].height is 18
    1111PASS rects[2].left is 8
    1212PASS rects[2].top is 59
    13 PASS rects[2].width is 398
     13PASS rects[2].width is 360
    1414PASS rects[2].height is 18
    1515PASS rects[3].left is 8
    1616PASS rects[3].top is 99
    17 PASS rects[3].width is 360
     17PASS rects[3].width is 382
    1818PASS rects[3].height is 18
    1919PASS rects[4].left is 8
    2020PASS rects[4].top is 139
    21 PASS rects[4].width is 306
     21PASS rects[4].width is 369
    2222PASS rects[4].height is 18
    2323Test 2
     
    2525PASS rects[0].left is 8
    2626PASS rects[0].top is 215
    27 PASS rects[0].width is 396
     27PASS rects[0].width is 387
    2828PASS rects[0].height is 18
    2929PASS rects[1].left is 8
    3030PASS rects[1].top is 255
    31 PASS rects[1].width is 398
     31PASS rects[1].width is 360
    3232PASS rects[1].height is 18
    3333PASS rects[2].left is 8
    3434PASS rects[2].top is 295
    35 PASS rects[2].width is 360
     35PASS rects[2].width is 382
    3636PASS rects[2].height is 18
    3737PASS rects[3].left is 8
    3838PASS rects[3].top is 335
    39 PASS rects[3].width is 306
     39PASS rects[3].width is 369
    4040PASS rects[3].height is 18
    4141Test 3
    4242PASS rects.length is 4
    43 PASS rects[0].left is 80
     43PASS rects[0].left is 81
    4444PASS rects[0].top is 411
    45 PASS rects[0].width is 324
     45PASS rects[0].width is 314
    4646PASS rects[0].height is 18
    4747PASS rects[1].left is 8
    4848PASS rects[1].top is 451
    49 PASS rects[1].width is 398
     49PASS rects[1].width is 360
    5050PASS rects[1].height is 18
    5151PASS rects[2].left is 8
    5252PASS rects[2].top is 491
    53 PASS rects[2].width is 360
     53PASS rects[2].width is 382
    5454PASS rects[2].height is 18
    5555PASS rects[3].left is 8
    5656PASS rects[3].top is 531
    57 PASS rects[3].width is 88
     57PASS rects[3].width is 147
    5858PASS rects[3].height is 18
    5959Test 4
     
    6565PASS rects[1].left is 8
    6666PASS rects[1].top is 607
    67 PASS rects[1].width is 396
     67PASS rects[1].width is 387
    6868PASS rects[1].height is 18
    6969PASS rects[2].left is 8
    7070PASS rects[2].top is 725
    71 PASS rects[2].width is 242
    72 PASS rects[2].height is 18
    73 PASS rects[3].left is 326
     71PASS rects[2].width is 269
     72PASS rects[2].height is 18
     73PASS rects[3].left is 352
    7474PASS rects[3].top is 725
    75 PASS rects[3].width is 44
     75PASS rects[3].width is 46
    7676PASS rects[3].height is 18
    7777PASS rects[4].left is 8
    7878PASS rects[4].top is 765
    79 PASS rects[4].width is 341
     79PASS rects[4].width is 349
    8080PASS rects[4].height is 18
    8181PASS rects[5].left is 8
    8282PASS rects[5].top is 805
    83 PASS rects[5].width is 366
     83PASS rects[5].width is 376
    8484PASS rects[5].height is 18
    8585PASS rects[6].left is 8
    8686PASS rects[6].top is 845
    87 PASS rects[6].width is 67
     87PASS rects[6].width is 68
    8888PASS rects[6].height is 18
    8989Test 5
    9090PASS rects.length is 5
    91 PASS rects[0].left is 80
     91PASS rects[0].left is 81
    9292PASS rects[0].top is 921
    93 PASS rects[0].width is 324
     93PASS rects[0].width is 314
    9494PASS rects[0].height is 18
    9595PASS rects[1].left is 8
    9696PASS rects[1].top is 1039
    97 PASS rects[1].width is 242
    98 PASS rects[1].height is 18
    99 PASS rects[2].left is 250
     97PASS rects[1].width is 269
     98PASS rects[1].height is 18
     99PASS rects[2].left is 276
    100100PASS rects[2].top is 950
    101 PASS rects[2].width is 76
     101PASS rects[2].width is 77
    102102PASS rects[2].height is 103
    103 PASS rects[3].left is 326
     103PASS rects[3].left is 352
    104104PASS rects[3].top is 1039
    105 PASS rects[3].width is 44
     105PASS rects[3].width is 46
    106106PASS rects[3].height is 18
    107107PASS rects[4].left is 8
    108108PASS rects[4].top is 1079
    109 PASS rects[4].width is 284
     109PASS rects[4].width is 291
    110110PASS rects[4].height is 18
    111111Test 6
    112 PASS rects.length is 7
     112PASS rects.length is 8
    113113PASS rects[0].left is 8
    114114PASS rects[0].top is 1224
    115115PASS rects[0].width is 400
    116 PASS rects[0].height is 200
     116PASS rects[0].height is 240
    117117PASS rects[1].left is 8
    118118PASS rects[1].top is 1235
    119 PASS rects[1].width is 396
     119PASS rects[1].width is 387
    120120PASS rects[1].height is 18
    121121PASS rects[2].left is 8
    122122PASS rects[2].top is 1275
    123 PASS rects[2].width is 57
    124 PASS rects[2].height is 18
    125 PASS rects[3].left is 105
    126 PASS rects[3].top is 1275
    127 PASS rects[3].width is 44
    128 PASS rects[3].height is 18
    129 PASS rects[4].left is 8
     123PASS rects[2].width is 16
     124PASS rects[2].height is 18
     125PASS rects[3].left is 8
     126PASS rects[3].top is 1315
     127PASS rects[3].width is 59
     128PASS rects[3].height is 18
     129PASS rects[4].left is 106
    130130PASS rects[4].top is 1315
    131 PASS rects[4].width is 387
     131PASS rects[4].width is 46
    132132PASS rects[4].height is 18
    133133PASS rects[5].left is 8
     
    137137PASS rects[6].left is 8
    138138PASS rects[6].top is 1395
    139 PASS rects[6].width is 171
     139PASS rects[6].width is 360
    140140PASS rects[6].height is 18
     141PASS rects[7].left is 8
     142PASS rects[7].top is 1435
     143PASS rects[7].width is 222
     144PASS rects[7].height is 18
    141145Test 7
    142 PASS rects.length is 7
    143 PASS rects[0].left is 8
    144 PASS rects[0].top is 1471
    145 PASS rects[0].width is 396
    146 PASS rects[0].height is 18
    147 PASS rects[1].left is 8
    148 PASS rects[1].top is 1500
    149 PASS rects[1].width is 400
    150 PASS rects[1].height is 40
    151 PASS rects[2].left is 8
    152 PASS rects[2].top is 1511
    153 PASS rects[2].width is 57
    154 PASS rects[2].height is 18
    155 PASS rects[3].left is 105
    156 PASS rects[3].top is 1511
    157 PASS rects[3].width is 44
    158 PASS rects[3].height is 18
    159 PASS rects[4].left is 8
    160 PASS rects[4].top is 1551
    161 PASS rects[4].width is 387
     146PASS rects.length is 8
     147PASS rects[0].left is 8
     148PASS rects[0].top is 1511
     149PASS rects[0].width is 387
     150PASS rects[0].height is 18
     151PASS rects[1].left is 8
     152PASS rects[1].top is 1551
     153PASS rects[1].width is 16
     154PASS rects[1].height is 18
     155PASS rects[2].left is 8
     156PASS rects[2].top is 1580
     157PASS rects[2].width is 400
     158PASS rects[2].height is 40
     159PASS rects[3].left is 8
     160PASS rects[3].top is 1591
     161PASS rects[3].width is 59
     162PASS rects[3].height is 18
     163PASS rects[4].left is 106
     164PASS rects[4].top is 1591
     165PASS rects[4].width is 46
    162166PASS rects[4].height is 18
    163167PASS rects[5].left is 8
    164 PASS rects[5].top is 1591
     168PASS rects[5].top is 1631
    165169PASS rects[5].width is 397
    166170PASS rects[5].height is 18
    167171PASS rects[6].left is 8
    168 PASS rects[6].top is 1631
    169 PASS rects[6].width is 171
     172PASS rects[6].top is 1671
     173PASS rects[6].width is 360
    170174PASS rects[6].height is 18
     175PASS rects[7].left is 8
     176PASS rects[7].top is 1711
     177PASS rects[7].width is 222
     178PASS rects[7].height is 18
    171179Test 8
    172180PASS rects.length is 4
    173181PASS rects[0].left is 168
    174 PASS rects[0].top is 1678
    175 PASS rects[0].width is 269
    176 PASS rects[0].height is 316
     182PASS rects[0].top is 1758
     183PASS rects[0].width is 263
     184PASS rects[0].height is 309
    177185PASS rects[1].left is 137
    178 PASS rects[1].top is 1704
    179 PASS rects[1].width is 271
    180 PASS rects[1].height is 317
     186PASS rects[1].top is 1784
     187PASS rects[1].width is 247
     188PASS rects[1].height is 288
    181189PASS rects[2].left is 107
    182 PASS rects[2].top is 1729
    183 PASS rects[2].width is 246
    184 PASS rects[2].height is 289
     190PASS rects[2].top is 1809
     191PASS rects[2].width is 260
     192PASS rects[2].height is 305
    185193PASS rects[3].left is 76
    186 PASS rects[3].top is 1755
    187 PASS rects[3].width is 212
    188 PASS rects[3].height is 247
     194PASS rects[3].top is 1835
     195PASS rects[3].width is 252
     196PASS rects[3].height is 295
    189197Test 9
    190 FAIL rects.length should be 1. Was 0.
    191 FAIL rects[0].left should be 8. Threw exception TypeError: undefined is not an object (evaluating 'rects[0].left')
    192 FAIL rects[0].top should be 1903. Threw exception TypeError: undefined is not an object (evaluating 'rects[0].top')
    193 FAIL rects[0].width should be 0. Threw exception TypeError: undefined is not an object (evaluating 'rects[0].width')
    194 FAIL rects[0].height should be 18. Threw exception TypeError: undefined is not an object (evaluating 'rects[0].height')
     198PASS rects.length is 0
    195199Test 9b
    196200PASS rects.length is 1
    197201PASS rects[0].left is 8
    198 PASS rects[0].top is 1903
     202PASS rects[0].top is 1983
    199203PASS rects[0].width is 0
    200204PASS rects[0].height is 18
    201205Test 10
    202 PASS rects.length is 4
     206PASS rects.length is 5
    203207PASS rects[0].left is 19
    204 PASS rects[0].top is 2088
     208PASS rects[0].top is 2168
    205209PASS rects[0].width is 18
    206 PASS rects[0].height is 393
     210PASS rects[0].height is 375
    207211PASS rects[1].left is 59
    208 PASS rects[1].top is 2088
     212PASS rects[1].top is 2168
    209213PASS rects[1].width is 18
    210 PASS rects[1].height is 377
     214PASS rects[1].height is 368
    211215PASS rects[2].left is 99
    212 PASS rects[2].top is 2088
     216PASS rects[2].top is 2168
    213217PASS rects[2].width is 18
    214 PASS rects[2].height is 372
     218PASS rects[2].height is 349
    215219PASS rects[3].left is 139
    216 PASS rects[3].top is 2088
     220PASS rects[3].top is 2168
    217221PASS rects[3].width is 18
    218 PASS rects[3].height is 360
     222PASS rects[3].height is 376
     223PASS rects[4].left is 179
     224PASS rects[4].top is 2168
     225PASS rects[4].width is 18
     226PASS rects[4].height is 68
    219227Test 11
    220228PASS rects.length is 2
    221229PASS rects[0].left is 8
    222 PASS rects[0].top is 2524
     230PASS rects[0].top is 2604
    223231PASS rects[0].width is 400
    224232PASS rects[0].height is 40
    225233PASS rects[1].left is 8
    226 PASS rects[1].top is 2535
    227 PASS rects[1].width is 177
     234PASS rects[1].top is 2615
     235PASS rects[1].width is 182
    228236PASS rects[1].height is 18
    229237Test 12
    230238PASS rects.length is 1
    231239PASS rects[0].left is 8
    232 PASS rects[0].top is 2760
     240PASS rects[0].top is 2840
    233241PASS rects[0].width is 400
    234242PASS rects[0].height is 160
     
    236244PASS rects.length is 4
    237245PASS rects[0].left is 8
    238 PASS rects[0].top is 2967
    239 PASS rects[0].width is 396
    240 PASS rects[0].height is 18
    241 PASS rects[1].left is 8
    242 PASS rects[1].top is 3007
    243 PASS rects[1].width is 398
    244 PASS rects[1].height is 18
    245 PASS rects[2].left is 8
    246 PASS rects[2].top is 3047
    247 PASS rects[2].width is 360
    248 PASS rects[2].height is 18
    249 PASS rects[3].left is 8
    250 PASS rects[3].top is 3087
    251 PASS rects[3].width is 306
     246PASS rects[0].top is 3047
     247PASS rects[0].width is 387
     248PASS rects[0].height is 18
     249PASS rects[1].left is 8
     250PASS rects[1].top is 3087
     251PASS rects[1].width is 360
     252PASS rects[1].height is 18
     253PASS rects[2].left is 8
     254PASS rects[2].top is 3127
     255PASS rects[2].width is 382
     256PASS rects[2].height is 18
     257PASS rects[3].left is 8
     258PASS rects[3].top is 3167
     259PASS rects[3].width is 369
    252260PASS rects[3].height is 18
    253261Test 14
  • trunk/LayoutTests/fast/dom/Range/getClientRects.html

    r155265 r180178  
    139139    shouldBe("rects[1].left", "8");
    140140    shouldBe("rects[1].top", "19");
    141     shouldBe("rects[1].width", "396");
     141    shouldBe("rects[1].width", "387");
    142142    shouldBe("rects[1].height", "18");
    143143    shouldBe("rects[2].left", "8");
    144144    shouldBe("rects[2].top", "59");
    145     shouldBe("rects[2].width", "398");
     145    shouldBe("rects[2].width", "360");
    146146    shouldBe("rects[2].height", "18");
    147147    shouldBe("rects[3].left", "8");
    148148    shouldBe("rects[3].top", "99");
    149     shouldBe("rects[3].width", "360");
     149    shouldBe("rects[3].width", "382");
    150150    shouldBe("rects[3].height", "18");
    151151    shouldBe("rects[4].left", "8");
    152152    shouldBe("rects[4].top", "139");
    153     shouldBe("rects[4].width", "306");
     153    shouldBe("rects[4].width", "369");
    154154    shouldBe("rects[4].height", "18");
    155155
     
    163163    shouldBe("rects[0].left", "8");
    164164    shouldBe("rects[0].top", "215");
    165     shouldBe("rects[0].width", "396");
     165    shouldBe("rects[0].width", "387");
    166166    shouldBe("rects[0].height", "18");
    167167    shouldBe("rects[1].left", "8");
    168168    shouldBe("rects[1].top", "255");
    169     shouldBe("rects[1].width", "398");
     169    shouldBe("rects[1].width", "360");
    170170    shouldBe("rects[1].height", "18");
    171171    shouldBe("rects[2].left", "8");
    172172    shouldBe("rects[2].top", "295");
    173     shouldBe("rects[2].width", "360");
     173    shouldBe("rects[2].width", "382");
    174174    shouldBe("rects[2].height", "18");
    175175    shouldBe("rects[3].left", "8");
    176176    shouldBe("rects[3].top", "335");
    177     shouldBe("rects[3].width", "306");
     177    shouldBe("rects[3].width", "369");
    178178    shouldBe("rects[3].height", "18");
    179179
     
    186186    rects = range3.getClientRects();
    187187    shouldBe("rects.length", "4");
    188     shouldBe("rects[0].left", "80");
     188    shouldBe("rects[0].left", "81");
    189189    shouldBe("rects[0].top", "411");
    190     shouldBe("rects[0].width", "324");
     190    shouldBe("rects[0].width", "314");
    191191    shouldBe("rects[0].height", "18");
    192192    shouldBe("rects[1].left", "8");
    193193    shouldBe("rects[1].top", "451");
    194     shouldBe("rects[1].width", "398");
     194    shouldBe("rects[1].width", "360");
    195195    shouldBe("rects[1].height", "18");
    196196    shouldBe("rects[2].left", "8");
    197197    shouldBe("rects[2].top", "491");
    198     shouldBe("rects[2].width", "360");
     198    shouldBe("rects[2].width", "382");
    199199    shouldBe("rects[2].height", "18");
    200200    shouldBe("rects[3].left", "8");
    201201    shouldBe("rects[3].top", "531");
    202     shouldBe("rects[3].width", "88");
     202    shouldBe("rects[3].width", "147");
    203203    shouldBe("rects[3].height", "18");
    204204
     
    216216    shouldBe("rects[1].left", "8");
    217217    shouldBe("rects[1].top", "607");
    218     shouldBe("rects[1].width", "396");
     218    shouldBe("rects[1].width", "387");
    219219    shouldBe("rects[1].height", "18");
    220220    shouldBe("rects[2].left", "8");
    221221    shouldBe("rects[2].top", "725");
    222     shouldBe("rects[2].width", "242");
    223     shouldBe("rects[2].height", "18");
    224     shouldBe("rects[3].left", "326");
     222    shouldBe("rects[2].width", "269");
     223    shouldBe("rects[2].height", "18");
     224    shouldBe("rects[3].left", "352");
    225225    shouldBe("rects[3].top", "725");
    226     shouldBe("rects[3].width", "44");
     226    shouldBe("rects[3].width", "46");
    227227    shouldBe("rects[3].height", "18");
    228228    shouldBe("rects[4].left", "8");
    229229    shouldBe("rects[4].top", "765");
    230     shouldBe("rects[4].width", "341");
     230    shouldBe("rects[4].width", "349");
    231231    shouldBe("rects[4].height", "18");
    232232    shouldBe("rects[5].left", "8");
    233233    shouldBe("rects[5].top", "805");
    234     shouldBe("rects[5].width", "366");
     234    shouldBe("rects[5].width", "376");
    235235    shouldBe("rects[5].height", "18");
    236236    shouldBe("rects[6].left", "8");
    237237    shouldBe("rects[6].top", "845");
    238     shouldBe("rects[6].width", "67");
     238    shouldBe("rects[6].width", "68");
    239239    shouldBe("rects[6].height", "18");
    240240   
     
    247247    rects = range5.getClientRects();
    248248    shouldBe("rects.length", "5");
    249     shouldBe("rects[0].left", "80");
     249    shouldBe("rects[0].left", "81");
    250250    shouldBe("rects[0].top", "921");
    251     shouldBe("rects[0].width", "324");
     251    shouldBe("rects[0].width", "314");
    252252    shouldBe("rects[0].height", "18");
    253253    shouldBe("rects[1].left", "8");
    254254    shouldBe("rects[1].top", "1039");
    255     shouldBe("rects[1].width", "242");
    256     shouldBe("rects[1].height", "18");
    257     shouldBe("rects[2].left", "250");
     255    shouldBe("rects[1].width", "269");
     256    shouldBe("rects[1].height", "18");
     257    shouldBe("rects[2].left", "276");
    258258    shouldBe("rects[2].top", "950");
    259     shouldBe("rects[2].width", "76");
     259    shouldBe("rects[2].width", "77");
    260260    shouldBe("rects[2].height", "103");
    261     shouldBe("rects[3].left", "326");
     261    shouldBe("rects[3].left", "352");
    262262    shouldBe("rects[3].top", "1039");
    263     shouldBe("rects[3].width", "44");
     263    shouldBe("rects[3].width", "46");
    264264    shouldBe("rects[3].height", "18");
    265265    shouldBe("rects[4].left", "8");
    266266    shouldBe("rects[4].top", "1079");
    267     shouldBe("rects[4].width", "284");
     267    shouldBe("rects[4].width", "291");
    268268    shouldBe("rects[4].height", "18");
    269269
     
    274274    show(range6);
    275275    rects = range6.getClientRects();
    276     shouldBe("rects.length", "7");
     276    shouldBe("rects.length", "8");
    277277    shouldBe("rects[0].left", "8");
    278278    shouldBe("rects[0].top", "1224");
    279279    shouldBe("rects[0].width", "400");
    280     shouldBe("rects[0].height", "200");
     280    shouldBe("rects[0].height", "240");
    281281    shouldBe("rects[1].left", "8");
    282282    shouldBe("rects[1].top", "1235");
    283     shouldBe("rects[1].width", "396");
     283    shouldBe("rects[1].width", "387");
    284284    shouldBe("rects[1].height", "18");
    285285    shouldBe("rects[2].left", "8");
    286286    shouldBe("rects[2].top", "1275");
    287     shouldBe("rects[2].width", "57");
    288     shouldBe("rects[2].height", "18");
    289     shouldBe("rects[3].left", "105");
    290     shouldBe("rects[3].top", "1275");
    291     shouldBe("rects[3].width", "44");
    292     shouldBe("rects[3].height", "18");
    293     shouldBe("rects[4].left", "8");
     287    shouldBe("rects[2].width", "16");
     288    shouldBe("rects[2].height", "18");
     289    shouldBe("rects[3].left", "8");
     290    shouldBe("rects[3].top", "1315");
     291    shouldBe("rects[3].width", "59");
     292    shouldBe("rects[3].height", "18");
     293    shouldBe("rects[4].left", "106");
    294294    shouldBe("rects[4].top", "1315");
    295     shouldBe("rects[4].width", "387");
     295    shouldBe("rects[4].width", "46");
    296296    shouldBe("rects[4].height", "18");
    297297    shouldBe("rects[5].left", "8");
     
    301301    shouldBe("rects[6].left", "8");
    302302    shouldBe("rects[6].top", "1395");
    303     shouldBe("rects[6].width", "171");
     303    shouldBe("rects[6].width", "360");
    304304    shouldBe("rects[6].height", "18");
     305    shouldBe("rects[7].left", "8");
     306    shouldBe("rects[7].top", "1435");
     307    shouldBe("rects[7].width", "222");
     308    shouldBe("rects[7].height", "18");
    305309
    306310    // Test 7 - Should include green but not blue box
     
    310314    show(range7);
    311315    rects = range7.getClientRects();
    312     shouldBe("rects.length", "7");
    313     shouldBe("rects[0].left", "8");
    314     shouldBe("rects[0].top", "1471");
    315     shouldBe("rects[0].width", "396");
    316     shouldBe("rects[0].height", "18");
    317     shouldBe("rects[1].left", "8");
    318     shouldBe("rects[1].top", "1500");
    319     shouldBe("rects[1].width", "400");
    320     shouldBe("rects[1].height", "40");
    321     shouldBe("rects[2].left", "8");
    322     shouldBe("rects[2].top", "1511");
    323     shouldBe("rects[2].width", "57");
    324     shouldBe("rects[2].height", "18");
    325     shouldBe("rects[3].left", "105");
    326     shouldBe("rects[3].top", "1511");
    327     shouldBe("rects[3].width", "44");
    328     shouldBe("rects[3].height", "18");
    329     shouldBe("rects[4].left", "8");
    330     shouldBe("rects[4].top", "1551");
    331     shouldBe("rects[4].width", "387");
     316    shouldBe("rects.length", "8");
     317    shouldBe("rects[0].left", "8");
     318    shouldBe("rects[0].top", "1511");
     319    shouldBe("rects[0].width", "387");
     320    shouldBe("rects[0].height", "18");
     321    shouldBe("rects[1].left", "8");
     322    shouldBe("rects[1].top", "1551");
     323    shouldBe("rects[1].width", "16");
     324    shouldBe("rects[1].height", "18");
     325    shouldBe("rects[2].left", "8");
     326    shouldBe("rects[2].top", "1580");
     327    shouldBe("rects[2].width", "400");
     328    shouldBe("rects[2].height", "40");
     329    shouldBe("rects[3].left", "8");
     330    shouldBe("rects[3].top", "1591");
     331    shouldBe("rects[3].width", "59");
     332    shouldBe("rects[3].height", "18");
     333    shouldBe("rects[4].left", "106");
     334    shouldBe("rects[4].top", "1591");
     335    shouldBe("rects[4].width", "46");
    332336    shouldBe("rects[4].height", "18");
    333337    shouldBe("rects[5].left", "8");
    334     shouldBe("rects[5].top", "1591");
     338    shouldBe("rects[5].top", "1631");
    335339    shouldBe("rects[5].width", "397");
    336340    shouldBe("rects[5].height", "18");
    337341    shouldBe("rects[6].left", "8");
    338     shouldBe("rects[6].top", "1631");
    339     shouldBe("rects[6].width", "171");
     342    shouldBe("rects[6].top", "1671");
     343    shouldBe("rects[6].width", "360");
    340344    shouldBe("rects[6].height", "18");
     345    shouldBe("rects[7].left", "8");
     346    shouldBe("rects[7].top", "1711");
     347    shouldBe("rects[7].width", "222");
     348    shouldBe("rects[7].height", "18");
    341349
    342350    // Test 8
     
    348356    shouldBe("rects.length", "4");
    349357    shouldBe("rects[0].left", "168");
    350     shouldBe("rects[0].top", "1678");
    351     shouldBe("rects[0].width", "269");
    352     shouldBe("rects[0].height", "316");
     358    shouldBe("rects[0].top", "1758");
     359    shouldBe("rects[0].width", "263");
     360    shouldBe("rects[0].height", "309");
    353361    shouldBe("rects[1].left", "137");
    354     shouldBe("rects[1].top", "1704");
    355     shouldBe("rects[1].width", "271");
    356     shouldBe("rects[1].height", "317");
     362    shouldBe("rects[1].top", "1784");
     363    shouldBe("rects[1].width", "247");
     364    shouldBe("rects[1].height", "288");
    357365    shouldBe("rects[2].left", "107");
    358     shouldBe("rects[2].top", "1729");
    359     shouldBe("rects[2].width", "246");
    360     shouldBe("rects[2].height", "289");
     366    shouldBe("rects[2].top", "1809");
     367    shouldBe("rects[2].width", "260");
     368    shouldBe("rects[2].height", "305");
    361369    shouldBe("rects[3].left", "76");
    362     shouldBe("rects[3].top", "1755");
    363     shouldBe("rects[3].width", "212");
    364     shouldBe("rects[3].height", "247");
     370    shouldBe("rects[3].top", "1835");
     371    shouldBe("rects[3].width", "252");
     372    shouldBe("rects[3].height", "295");
    365373
    366374    debug("Test 9");
     
    370378    show(range9);
    371379    rects = range9.getClientRects();
    372     shouldBe("rects.length", "1");
    373     shouldBe("rects[0].left", "8");
    374     shouldBe("rects[0].top", "1903");
    375     shouldBe("rects[0].width", "0");
    376     shouldBe("rects[0].height", "18");
     380    shouldBe("rects.length", "0");
    377381
    378382    debug("Test 9b");
     
    383387    shouldBe("rects.length", "1");
    384388    shouldBe("rects[0].left", "8");
    385     shouldBe("rects[0].top", "1903");
     389    shouldBe("rects[0].top", "1983");
    386390    shouldBe("rects[0].width", "0");
    387391    shouldBe("rects[0].height", "18");
     
    393397    show(range10);
    394398    rects = range10.getClientRects();
    395     shouldBe("rects.length", "4");
     399    shouldBe("rects.length", "5");
    396400    shouldBe("rects[0].left", "19");
    397     shouldBe("rects[0].top", "2088");
     401    shouldBe("rects[0].top", "2168");
    398402    shouldBe("rects[0].width", "18");
    399     shouldBe("rects[0].height", "393");
     403    shouldBe("rects[0].height", "375");
    400404    shouldBe("rects[1].left", "59");
    401     shouldBe("rects[1].top", "2088");
     405    shouldBe("rects[1].top", "2168");
    402406    shouldBe("rects[1].width", "18");
    403     shouldBe("rects[1].height", "377");
     407    shouldBe("rects[1].height", "368");
    404408    shouldBe("rects[2].left", "99");
    405     shouldBe("rects[2].top", "2088");
     409    shouldBe("rects[2].top", "2168");
    406410    shouldBe("rects[2].width", "18");
    407     shouldBe("rects[2].height", "372");
     411    shouldBe("rects[2].height", "349");
    408412    shouldBe("rects[3].left", "139");
    409     shouldBe("rects[3].top", "2088");
     413    shouldBe("rects[3].top", "2168");
    410414    shouldBe("rects[3].width", "18");
    411     shouldBe("rects[3].height", "360");
     415    shouldBe("rects[3].height", "376");
     416    shouldBe("rects[4].left", "179");
     417    shouldBe("rects[4].top", "2168");
     418    shouldBe("rects[4].width", "18");
     419    shouldBe("rects[4].height", "68");
    412420
    413421    // Test 11
     
    420428    shouldBe("rects.length", "2");
    421429    shouldBe("rects[0].left", "8");
    422     shouldBe("rects[0].top", "2524");
     430    shouldBe("rects[0].top", "2604");
    423431    shouldBe("rects[0].width", "400");
    424432    shouldBe("rects[0].height", "40");
    425433    shouldBe("rects[1].left", "8");
    426     shouldBe("rects[1].top", "2535");
    427     shouldBe("rects[1].width", "177");
     434    shouldBe("rects[1].top", "2615");
     435    shouldBe("rects[1].width", "182");
    428436    shouldBe("rects[1].height", "18");
    429437
     
    437445    shouldBe("rects.length", "1");
    438446    shouldBe("rects[0].left", "8");
    439     shouldBe("rects[0].top", "2760");
     447    shouldBe("rects[0].top", "2840");
    440448    shouldBe("rects[0].width", "400");
    441449    shouldBe("rects[0].height", "160");
     
    450458    shouldBe("rects.length", "4");
    451459    shouldBe("rects[0].left", "8");
    452     shouldBe("rects[0].top", "2967");
    453     shouldBe("rects[0].width", "396");
    454     shouldBe("rects[0].height", "18");
    455     shouldBe("rects[1].left", "8");
    456     shouldBe("rects[1].top", "3007");
    457     shouldBe("rects[1].width", "398");
    458     shouldBe("rects[1].height", "18");
    459     shouldBe("rects[2].left", "8");
    460     shouldBe("rects[2].top", "3047");
    461     shouldBe("rects[2].width", "360");
    462     shouldBe("rects[2].height", "18");
    463     shouldBe("rects[3].left", "8");
    464     shouldBe("rects[3].top", "3087");
    465     shouldBe("rects[3].width", "306");
     460    shouldBe("rects[0].top", "3047");
     461    shouldBe("rects[0].width", "387");
     462    shouldBe("rects[0].height", "18");
     463    shouldBe("rects[1].left", "8");
     464    shouldBe("rects[1].top", "3087");
     465    shouldBe("rects[1].width", "360");
     466    shouldBe("rects[1].height", "18");
     467    shouldBe("rects[2].left", "8");
     468    shouldBe("rects[2].top", "3127");
     469    shouldBe("rects[2].width", "382");
     470    shouldBe("rects[2].height", "18");
     471    shouldBe("rects[3].left", "8");
     472    shouldBe("rects[3].top", "3167");
     473    shouldBe("rects[3].width", "369");
    466474    shouldBe("rects[3].height", "18");
    467475
  • trunk/LayoutTests/platform/mac/TestExpectations

    r180172 r180178  
    12671267# The following tests' expected results don't look like render tree dumps
    12681268webkit.org/b/139968 editing/selection/fake-drag.html [ Failure ]
    1269 webkit.org/b/139968 fast/dom/Element/getClientRects.html [ Failure ]
    1270 webkit.org/b/139968 fast/dom/Range/getClientRects.html [ Failure ]
    12711269webkit.org/b/139968 fast/regions/cssom/get-regions-by-content-horiz-bt.html [ Failure ]
    12721270webkit.org/b/139968 fast/regions/cssom/get-regions-by-content-horiz-tb.html [ Failure ]
Note: See TracChangeset for help on using the changeset viewer.