Commit 106fabac authored by eae's avatar eae Committed by Commit bot

Convert fast/dom/Range/getClientRects.html to web-platform test

Rewrite the fast/dom/Range/getClientRects.html layout test to rely on a
reference rendering for each test case instead of hardcoded line rects.

TBR=szager@chromium.org
BUG=464851
TEST=fast/dom/Range/getClientRects.html

Review-Url: https://codereview.chromium.org/2475393002
Cr-Commit-Position: refs/heads/master@{#430162}
parent 9625fddb
Test 1
PASS rects.length is 5
PASS rects[0].left is 8
PASS rects[0].top is 8
PASS rects[0].width is 400
PASS rects[0].height is 160
PASS rects[1].left is 8
FAIL rects[1].top should be 19. Was 18.
FAIL rects[1].width should be 396. Was 378.
FAIL rects[1].height should be 18. Was 19.
PASS rects[2].left is 8
FAIL rects[2].top should be 59. Was 58.
FAIL rects[2].width should be 398. Was 378.
FAIL rects[2].height should be 18. Was 19.
PASS rects[3].left is 8
FAIL rects[3].top should be 99. Was 98.
FAIL rects[3].width should be 360. Was 380.
FAIL rects[3].height should be 18. Was 19.
PASS rects[4].left is 8
FAIL rects[4].top should be 139. Was 138.
FAIL rects[4].width should be 306. Was 247.
FAIL rects[4].height should be 18. Was 19.
Test 2
PASS rects.length is 4
PASS rects[0].left is 8
FAIL rects[0].top should be 215. Was 218.
FAIL rects[0].width should be 396. Was 378.
FAIL rects[0].height should be 18. Was 19.
PASS rects[1].left is 8
FAIL rects[1].top should be 255. Was 258.
FAIL rects[1].width should be 398. Was 378.
FAIL rects[1].height should be 18. Was 19.
PASS rects[2].left is 8
FAIL rects[2].top should be 295. Was 298.
FAIL rects[2].width should be 360. Was 380.
FAIL rects[2].height should be 18. Was 19.
PASS rects[3].left is 8
FAIL rects[3].top should be 335. Was 338.
FAIL rects[3].width should be 306. Was 247.
FAIL rects[3].height should be 18. Was 19.
Test 3
PASS rects.length is 4
FAIL rects[0].left should be 80. Was 76.
FAIL rects[0].top should be 411. Was 418.
FAIL rects[0].width should be 324. Was 310.
FAIL rects[0].height should be 18. Was 19.
PASS rects[1].left is 8
FAIL rects[1].top should be 451. Was 458.
FAIL rects[1].width should be 398. Was 378.
FAIL rects[1].height should be 18. Was 19.
PASS rects[2].left is 8
FAIL rects[2].top should be 491. Was 498.
FAIL rects[2].width should be 360. Was 380.
FAIL rects[2].height should be 18. Was 19.
PASS rects[3].left is 8
FAIL rects[3].top should be 531. Was 538.
FAIL rects[3].width should be 88. Was 38.
FAIL rects[3].height should be 18. Was 19.
Test 4
FAIL rects.length should be 7. Was 6.
PASS rects[0].left is 8
FAIL rects[0].top should be 596. Was 608.
PASS rects[0].width is 400
FAIL rects[0].height should be 278. Was 238.
PASS rects[1].left is 8
FAIL rects[1].top should be 607. Was 618.
FAIL rects[1].width should be 396. Was 378.
FAIL rects[1].height should be 18. Was 19.
PASS rects[2].left is 8
FAIL rects[2].top should be 725. Was 736.
FAIL rects[2].width should be 242. Was 230.
FAIL rects[2].height should be 18. Was 19.
FAIL rects[3].left should be 326. Was 314.
FAIL rects[3].top should be 725. Was 736.
FAIL rects[3].width should be 44. Was 86.
FAIL rects[3].height should be 18. Was 19.
PASS rects[4].left is 8
FAIL rects[4].top should be 765. Was 776.
FAIL rects[4].width should be 341. Was 398.
FAIL rects[4].height should be 18. Was 19.
PASS rects[5].left is 8
FAIL rects[5].top should be 805. Was 816.
FAIL rects[5].width should be 366. Was 291.
FAIL rects[5].height should be 18. Was 19.
FAIL rects[6].left should be 8. Threw exception TypeError: Cannot read property 'left' of undefined
FAIL rects[6].top should be 845. Threw exception TypeError: Cannot read property 'top' of undefined
FAIL rects[6].width should be 67. Threw exception TypeError: Cannot read property 'width' of undefined
FAIL rects[6].height should be 18. Threw exception TypeError: Cannot read property 'height' of undefined
Test 5
PASS rects.length is 5
FAIL rects[0].left should be 80. Was 76.
FAIL rects[0].top should be 921. Was 896.
FAIL rects[0].width should be 324. Was 310.
FAIL rects[0].height should be 18. Was 19.
PASS rects[1].left is 8
FAIL rects[1].top should be 1039. Was 1014.
FAIL rects[1].width should be 242. Was 230.
FAIL rects[1].height should be 18. Was 19.
FAIL rects[2].left should be 250. Was 238.
FAIL rects[2].top should be 950. Was 926.
PASS rects[2].width is 76
PASS rects[2].height is 103
FAIL rects[3].left should be 326. Was 314.
FAIL rects[3].top should be 1039. Was 1014.
FAIL rects[3].width should be 44. Was 86.
FAIL rects[3].height should be 18. Was 19.
PASS rects[4].left is 8
FAIL rects[4].top should be 1079. Was 1054.
FAIL rects[4].width should be 284. Was 220.
FAIL rects[4].height should be 18. Was 19.
Test 6
PASS rects.length is 7
PASS rects[0].left is 8
FAIL rects[0].top should be 1224. Was 1164.
PASS rects[0].width is 400
PASS rects[0].height is 200
PASS rects[1].left is 8
FAIL rects[1].top should be 1235. Was 1174.
FAIL rects[1].width should be 396. Was 378.
FAIL rects[1].height should be 18. Was 19.
PASS rects[2].left is 8
FAIL rects[2].top should be 1275. Was 1214.
FAIL rects[2].width should be 57. Was 54.
FAIL rects[2].height should be 18. Was 19.
FAIL rects[3].left should be 105. Was 102.
FAIL rects[3].top should be 1275. Was 1214.
FAIL rects[3].width should be 44. Was 43.
FAIL rects[3].height should be 18. Was 19.
PASS rects[4].left is 8
FAIL rects[4].top should be 1315. Was 1254.
FAIL rects[4].width should be 387. Was 363.
FAIL rects[4].height should be 18. Was 19.
PASS rects[5].left is 8
FAIL rects[5].top should be 1355. Was 1294.
FAIL rects[5].width should be 397. Was 389.
FAIL rects[5].height should be 18. Was 19.
PASS rects[6].left is 8
FAIL rects[6].top should be 1395. Was 1334.
FAIL rects[6].width should be 171. Was 148.
FAIL rects[6].height should be 18. Was 19.
Test 7
PASS rects.length is 7
PASS rects[0].left is 8
FAIL rects[0].top should be 1471. Was 1414.
FAIL rects[0].width should be 396. Was 378.
FAIL rects[0].height should be 18. Was 19.
PASS rects[1].left is 8
FAIL rects[1].top should be 1500. Was 1444.
PASS rects[1].width is 400
PASS rects[1].height is 40
PASS rects[2].left is 8
FAIL rects[2].top should be 1511. Was 1454.
FAIL rects[2].width should be 57. Was 54.
FAIL rects[2].height should be 18. Was 19.
FAIL rects[3].left should be 105. Was 102.
FAIL rects[3].top should be 1511. Was 1454.
FAIL rects[3].width should be 44. Was 43.
FAIL rects[3].height should be 18. Was 19.
PASS rects[4].left is 8
FAIL rects[4].top should be 1551. Was 1494.
FAIL rects[4].width should be 387. Was 363.
FAIL rects[4].height should be 18. Was 19.
PASS rects[5].left is 8
FAIL rects[5].top should be 1591. Was 1534.
FAIL rects[5].width should be 397. Was 389.
FAIL rects[5].height should be 18. Was 19.
PASS rects[6].left is 8
FAIL rects[6].top should be 1631. Was 1574.
FAIL rects[6].width should be 171. Was 148.
FAIL rects[6].height should be 18. Was 19.
Test 8
PASS rects.length is 4
FAIL rects[0].left should be 168. Was 168.5107421875.
FAIL rects[0].top should be 1678. Was 1625.7960205078125.
FAIL rects[0].width should be 269. Was 257.528564453125.
FAIL rects[0].height should be 316. Was 301.7777099609375.
FAIL rects[1].left should be 137. Was 137.8689727783203.
FAIL rects[1].top should be 1704. Was 1651.5074462890625.
FAIL rects[1].width should be 271. Was 257.528564453125.
FAIL rects[1].height should be 317. Was 301.77783203125.
FAIL rects[2].left should be 107. Was 107.22718811035156.
FAIL rects[2].top should be 1729. Was 1677.218994140625.
FAIL rects[2].width should be 246. Was 258.81414794921875.
FAIL rects[2].height should be 289. Was 303.309814453125.
FAIL rects[3].left should be 76. Was 76.58541107177734.
FAIL rects[3].top should be 1755. Was 1702.9305419921875.
FAIL rects[3].width should be 212. Was 173.32339477539062.
FAIL rects[3].height should be 247. Was 201.4259033203125.
Test 9
FAIL rects.length should be 1. Was 0.
FAIL rects[0].left should be 8. Threw exception TypeError: Cannot read property 'left' of undefined
FAIL rects[0].top should be 1903. Threw exception TypeError: Cannot read property 'top' of undefined
FAIL rects[0].width should be 0. Threw exception TypeError: Cannot read property 'width' of undefined
FAIL rects[0].height should be 18. Threw exception TypeError: Cannot read property 'height' of undefined
Test 9b
PASS rects.length is 1
PASS rects[0].left is 8
FAIL rects[0].top should be 1903. Was 1854.
PASS rects[0].width is 0
FAIL rects[0].height should be 18. Was 19.
Test 10
PASS rects.length is 4
FAIL rects[0].left should be 19. Was 18.
FAIL rects[0].top should be 2088. Was 2044.
FAIL rects[0].width should be 18. Was 19.
FAIL rects[0].height should be 393. Was 399.
FAIL rects[1].left should be 59. Was 58.
FAIL rects[1].top should be 2088. Was 2044.
FAIL rects[1].width should be 18. Was 19.
FAIL rects[1].height should be 377. Was 398.
FAIL rects[2].left should be 99. Was 98.
FAIL rects[2].top should be 2088. Was 2044.
FAIL rects[2].width should be 18. Was 19.
FAIL rects[2].height should be 372. Was 380.
FAIL rects[3].left should be 139. Was 138.
FAIL rects[3].top should be 2088. Was 2044.
FAIL rects[3].width should be 18. Was 19.
FAIL rects[3].height should be 360. Was 247.
Test 11
PASS rects.length is 0
PASS successfullyParsed is true
TEST COMPLETE
Test 1
PASS rects.length is 5
PASS rects[0].left is 8
PASS rects[0].top is 8
PASS rects[0].width is 400
PASS rects[0].height is 160
PASS rects[1].left is 8
PASS rects[1].top is 19
FAIL rects[1].width should be 396. Was 386.578125.
PASS rects[1].height is 18
PASS rects[2].left is 8
PASS rects[2].top is 59
FAIL rects[2].width should be 398. Was 359.90625.
PASS rects[2].height is 18
PASS rects[3].left is 8
PASS rects[3].top is 99
FAIL rects[3].width should be 360. Was 381.25.
PASS rects[3].height is 18
PASS rects[4].left is 8
PASS rects[4].top is 139
FAIL rects[4].width should be 306. Was 368.359375.
PASS rects[4].height is 18
Test 2
PASS rects.length is 4
PASS rects[0].left is 8
PASS rects[0].top is 215
FAIL rects[0].width should be 396. Was 386.578125.
PASS rects[0].height is 18
PASS rects[1].left is 8
PASS rects[1].top is 255
FAIL rects[1].width should be 398. Was 359.90625.
PASS rects[1].height is 18
PASS rects[2].left is 8
PASS rects[2].top is 295
FAIL rects[2].width should be 360. Was 381.25.
PASS rects[2].height is 18
PASS rects[3].left is 8
PASS rects[3].top is 335
FAIL rects[3].width should be 306. Was 368.359375.
PASS rects[3].height is 18
Test 3
PASS rects.length is 4
FAIL rects[0].left should be 80. Was 81.
PASS rects[0].top is 411
FAIL rects[0].width should be 324. Was 313.578125.
PASS rects[0].height is 18
PASS rects[1].left is 8
PASS rects[1].top is 451
FAIL rects[1].width should be 398. Was 359.90625.
PASS rects[1].height is 18
PASS rects[2].left is 8
PASS rects[2].top is 491
FAIL rects[2].width should be 360. Was 381.25.
PASS rects[2].height is 18
PASS rects[3].left is 8
PASS rects[3].top is 531
FAIL rects[3].width should be 88. Was 147.
PASS rects[3].height is 18
Test 4
PASS rects.length is 7
PASS rects[0].left is 8
PASS rects[0].top is 596
PASS rects[0].width is 400
PASS rects[0].height is 278
PASS rects[1].left is 8
PASS rects[1].top is 607
FAIL rects[1].width should be 396. Was 386.578125.
PASS rects[1].height is 18
PASS rects[2].left is 8
PASS rects[2].top is 725
FAIL rects[2].width should be 242. Was 268.390625.
PASS rects[2].height is 18
FAIL rects[3].left should be 326. Was 352.390625.
PASS rects[3].top is 725
FAIL rects[3].width should be 44. Was 44.875.
PASS rects[3].height is 18
PASS rects[4].left is 8
PASS rects[4].top is 765
FAIL rects[4].width should be 341. Was 348.375.
PASS rects[4].height is 18
PASS rects[5].left is 8
PASS rects[5].top is 805
FAIL rects[5].width should be 366. Was 375.890625.
PASS rects[5].height is 18
PASS rects[6].left is 8
PASS rects[6].top is 845
FAIL rects[6].width should be 67. Was 67.96875.
PASS rects[6].height is 18
Test 5
PASS rects.length is 5
FAIL rects[0].left should be 80. Was 81.
PASS rects[0].top is 921
FAIL rects[0].width should be 324. Was 313.578125.
PASS rects[0].height is 18
PASS rects[1].left is 8
PASS rects[1].top is 1039
FAIL rects[1].width should be 242. Was 268.390625.
PASS rects[1].height is 18
FAIL rects[2].left should be 250. Was 276.390625.
PASS rects[2].top is 950
PASS rects[2].width is 76
PASS rects[2].height is 103
FAIL rects[3].left should be 326. Was 352.390625.
PASS rects[3].top is 1039
FAIL rects[3].width should be 44. Was 44.875.
PASS rects[3].height is 18
PASS rects[4].left is 8
PASS rects[4].top is 1079
FAIL rects[4].width should be 284. Was 290.
PASS rects[4].height is 18
Test 6
FAIL rects.length should be 7. Was 8.
PASS rects[0].left is 8
PASS rects[0].top is 1224
PASS rects[0].width is 400
FAIL rects[0].height should be 200. Was 240.
PASS rects[1].left is 8
PASS rects[1].top is 1235
FAIL rects[1].width should be 396. Was 386.578125.
PASS rects[1].height is 18
PASS rects[2].left is 8
PASS rects[2].top is 1275
FAIL rects[2].width should be 57. Was 16.
PASS rects[2].height is 18
FAIL rects[3].left should be 105. Was 8.
FAIL rects[3].top should be 1275. Was 1315.
FAIL rects[3].width should be 44. Was 58.21875.
PASS rects[3].height is 18
FAIL rects[4].left should be 8. Was 106.21875.
PASS rects[4].top is 1315
FAIL rects[4].width should be 387. Was 45.3125.
PASS rects[4].height is 18
PASS rects[5].left is 8
PASS rects[5].top is 1355
FAIL rects[5].width should be 397. Was 396.34375.
PASS rects[5].height is 18
PASS rects[6].left is 8
PASS rects[6].top is 1395
FAIL rects[6].width should be 171. Was 359.921875.
PASS rects[6].height is 18
Test 7
FAIL rects.length should be 7. Was 8.
PASS rects[0].left is 8
FAIL rects[0].top should be 1471. Was 1511.
FAIL rects[0].width should be 396. Was 386.578125.
PASS rects[0].height is 18
PASS rects[1].left is 8
FAIL rects[1].top should be 1500. Was 1551.
FAIL rects[1].width should be 400. Was 16.
FAIL rects[1].height should be 40. Was 18.
PASS rects[2].left is 8
FAIL rects[2].top should be 1511. Was 1580.
FAIL rects[2].width should be 57. Was 400.
FAIL rects[2].height should be 18. Was 40.
FAIL rects[3].left should be 105. Was 8.
FAIL rects[3].top should be 1511. Was 1591.
FAIL rects[3].width should be 44. Was 58.21875.
PASS rects[3].height is 18
FAIL rects[4].left should be 8. Was 106.21875.
FAIL rects[4].top should be 1551. Was 1591.
FAIL rects[4].width should be 387. Was 45.3125.
PASS rects[4].height is 18
PASS rects[5].left is 8
FAIL rects[5].top should be 1591. Was 1631.
FAIL rects[5].width should be 397. Was 396.34375.
PASS rects[5].height is 18
PASS rects[6].left is 8
FAIL rects[6].top should be 1631. Was 1671.
FAIL rects[6].width should be 171. Was 359.921875.
PASS rects[6].height is 18
Test 8
PASS rects.length is 4
FAIL rects[0].left should be 168. Was 168.5107421875.
FAIL rects[0].top should be 1678. Was 1758.438720703125.
FAIL rects[0].width should be 269. Was 262.27642822265625.
FAIL rects[0].height should be 316. Was 307.706298828125.
FAIL rects[1].left should be 137. Was 137.8689727783203.
FAIL rects[1].top should be 1704. Was 1784.1502685546875.
FAIL rects[1].width should be 271. Was 245.13206481933594.
FAIL rects[1].height should be 317. Was 287.2742919921875.
FAIL rects[2].left should be 107. Was 107.22718811035156.
FAIL rects[2].top should be 1729. Was 1809.86181640625.
FAIL rects[2].width should be 246. Was 258.8515625.
FAIL rects[2].height should be 289. Was 303.62451171875.
FAIL rects[3].left should be 76. Was 76.58541107177734.
FAIL rects[3].top should be 1755. Was 1835.5732421875.
FAIL rects[3].width should be 212. Was 250.56564331054688.
FAIL rects[3].height should be 247. Was 293.749755859375.
Test 9
FAIL rects.length should be 1. Was 0.
FAIL rects[0].left should be 8. Threw exception TypeError: Cannot read property 'left' of undefined
FAIL rects[0].top should be 1903. Threw exception TypeError: Cannot read property 'top' of undefined
FAIL rects[0].width should be 0. Threw exception TypeError: Cannot read property 'width' of undefined
FAIL rects[0].height should be 18. Threw exception TypeError: Cannot read property 'height' of undefined
Test 9b
PASS rects.length is 1
PASS rects[0].left is 8
FAIL rects[0].top should be 1903. Was 1983.
PASS rects[0].width is 0
PASS rects[0].height is 18
Test 10
FAIL rects.length should be 4. Was 5.
PASS rects[0].left is 19
FAIL rects[0].top should be 2088. Was 2168.
PASS rects[0].width is 18
FAIL rects[0].height should be 393. Was 375.
PASS rects[1].left is 59
FAIL rects[1].top should be 2088. Was 2168.
PASS rects[1].width is 18
FAIL rects[1].height should be 377. Was 367.03125.
PASS rects[2].left is 99
FAIL rects[2].top should be 2088. Was 2168.
PASS rects[2].width is 18
FAIL rects[2].height should be 372. Was 348.375.
PASS rects[3].left is 139
FAIL rects[3].top should be 2088. Was 2168.
PASS rects[3].width is 18
FAIL rects[3].height should be 360. Was 375.890625.
Test 11
PASS rects.length is 0
PASS successfullyParsed is true
TEST COMPLETE
Test 1
PASS rects.length is 5
PASS rects[0].left is 8
PASS rects[0].top is 8
PASS rects[0].width is 400
PASS rects[0].height is 160
PASS rects[1].left is 8
PASS rects[1].top is 19
FAIL rects[1].width should be 396. Was 386.578125.
FAIL rects[1].height should be 18. Was 17.
PASS rects[2].left is 8
PASS rects[2].top is 59
FAIL rects[2].width should be 398. Was 359.90625.
FAIL rects[2].height should be 18. Was 17.
PASS rects[3].left is 8
PASS rects[3].top is 99
FAIL rects[3].width should be 360. Was 381.25.
FAIL rects[3].height should be 18. Was 17.
PASS rects[4].left is 8
PASS rects[4].top is 139
FAIL rects[4].width should be 306. Was 368.359375.
FAIL rects[4].height should be 18. Was 17.
Test 2
PASS rects.length is 4
PASS rects[0].left is 8
PASS rects[0].top is 215
FAIL rects[0].width should be 396. Was 386.578125.
FAIL rects[0].height should be 18. Was 17.
PASS rects[1].left is 8
PASS rects[1].top is 255
FAIL rects[1].width should be 398. Was 359.90625.
FAIL rects[1].height should be 18. Was 17.
PASS rects[2].left is 8
PASS rects[2].top is 295
FAIL rects[2].width should be 360. Was 381.25.
FAIL rects[2].height should be 18. Was 17.
PASS rects[3].left is 8
PASS rects[3].top is 335
FAIL rects[3].width should be 306. Was 368.359375.
FAIL rects[3].height should be 18. Was 17.
Test 3
PASS rects.length is 4
FAIL rects[0].left should be 80. Was 81.
PASS rects[0].top is 411
FAIL rects[0].width should be 324. Was 313.578125.
FAIL rects[0].height should be 18. Was 17.
PASS rects[1].left is 8
PASS rects[1].top is 451
FAIL rects[1].width should be 398. Was 359.90625.
FAIL rects[1].height should be 18. Was 17.
PASS rects[2].left is 8
PASS rects[2].top is 491
FAIL rects[2].width should be 360. Was 381.25.
FAIL rects[2].height should be 18. Was 17.
PASS rects[3].left is 8
PASS rects[3].top is 531
FAIL rects[3].width should be 88. Was 147.
FAIL rects[3].height should be 18. Was 17.
Test 4
PASS rects.length is 7
PASS rects[0].left is 8
PASS rects[0].top is 596
PASS rects[0].width is 400
PASS rects[0].height is 278
PASS rects[1].left is 8
PASS rects[1].top is 607
FAIL rects[1].width should be 396. Was 386.578125.
FAIL rects[1].height should be 18. Was 17.
PASS rects[2].left is 8
PASS rects[2].top is 725
FAIL rects[2].width should be 242. Was 268.390625.
FAIL rects[2].height should be 18. Was 17.
FAIL rects[3].left should be 326. Was 352.390625.
PASS rects[3].top is 725
FAIL rects[3].width should be 44. Was 44.875.
FAIL rects[3].height should be 18. Was 17.
PASS rects[4].left is 8
PASS rects[4].top is 765
FAIL rects[4].width should be 341. Was 348.375.
FAIL rects[4].height should be 18. Was 17.
PASS rects[5].left is 8
PASS rects[5].top is 805
FAIL rects[5].width should be 366. Was 375.890625.
FAIL rects[5].height should be 18. Was 17.
PASS rects[6].left is 8
PASS rects[6].top is 845
FAIL rects[6].width should be 67. Was 67.96875.
FAIL rects[6].height should be 18. Was 17.
Test 5
PASS rects.length is 5
FAIL rects[0].left should be 80. Was 81.
PASS rects[0].top is 921
FAIL rects[0].width should be 324. Was 313.578125.
FAIL rects[0].height should be 18. Was 17.
PASS rects[1].left is 8
PASS rects[1].top is 1039
FAIL rects[1].width should be 242. Was 268.390625.
FAIL rects[1].height should be 18. Was 17.
FAIL rects[2].left should be 250. Was 276.390625.
PASS rects[2].top is 950
PASS rects[2].width is 76
PASS rects[2].height is 103
FAIL rects[3].left should be 326. Was 352.390625.
PASS rects[3].top is 1039
FAIL rects[3].width should be 44. Was 44.875.
FAIL rects[3].height should be 18. Was 17.
PASS rects[4].left is 8
PASS rects[4].top is 1079
FAIL rects[4].width should be 284. Was 290.
FAIL rects[4].height should be 18. Was 17.
Test 6
FAIL rects.length should be 7. Was 8.
PASS rects[0].left is 8
PASS rects[0].top is 1224
PASS rects[0].width is 400
FAIL rects[0].height should be 200. Was 240.
PASS rects[1].left is 8
PASS rects[1].top is 1235
FAIL rects[1].width should be 396. Was 386.578125.
FAIL rects[1].height should be 18. Was 17.
PASS rects[2].left is 8
PASS rects[2].top is 1275
FAIL rects[2].width should be 57. Was 16.
FAIL rects[2].height should be 18. Was 17.
FAIL rects[3].left should be 105. Was 8.
FAIL rects[3].top should be 1275. Was 1315.
FAIL rects[3].width should be 44. Was 58.21875.
FAIL rects[3].height should be 18. Was 17.
FAIL rects[4].left should be 8. Was 106.21875.
PASS rects[4].top is 1315
FAIL rects[4].width should be 387. Was 45.3125.
FAIL rects[4].height should be 18. Was 17.
PASS rects[5].left is 8
PASS rects[5].top is 1355
FAIL rects[5].width should be 397. Was 396.34375.
FAIL rects[5].height should be 18. Was 17.
PASS rects[6].left is 8
PASS rects[6].top is 1395
FAIL rects[6].width should be 171. Was 359.921875.
FAIL rects[6].height should be 18. Was 17.
Test 7
FAIL rects.length should be 7. Was 8.
PASS rects[0].left is 8
FAIL rects[0].top should be 1471. Was 1511.
FAIL rects[0].width should be 396. Was 386.578125.
FAIL rects[0].height should be 18. Was 17.
PASS rects[1].left is 8
FAIL rects[1].top should be 1500. Was 1551.
FAIL rects[1].width should be 400. Was 16.
FAIL rects[1].height should be 40. Was 17.
PASS rects[2].left is 8
FAIL rects[2].top should be 1511. Was 1580.
FAIL rects[2].width should be 57. Was 400.
FAIL rects[2].height should be 18. Was 40.
FAIL rects[3].left should be 105. Was 8.
FAIL rects[3].top should be 1511. Was 1591.
FAIL rects[3].width should be 44. Was 58.21875.
FAIL rects[3].height should be 18. Was 17.
FAIL rects[4].left should be 8. Was 106.21875.
FAIL rects[4].top should be 1551. Was 1591.
FAIL rects[4].width should be 387. Was 45.3125.
FAIL rects[4].height should be 18. Was 17.
PASS rects[5].left is 8
FAIL rects[5].top should be 1591. Was 1631.
FAIL rects[5].width should be 397. Was 396.34375.
FAIL rects[5].height should be 18. Was 17.
PASS rects[6].left is 8
FAIL rects[6].top should be 1631. Was 1671.
FAIL rects[6].width should be 171. Was 359.921875.
FAIL rects[6].height should be 18. Was 17.
Test 8
PASS rects.length is 4
FAIL rects[0].left should be 168. Was 169.27679443359375.
FAIL rects[0].top should be 1678. Was 1758.438720703125.
FAIL rects[0].width should be 269. Was 261.5103759765625.
FAIL rects[0].height should be 316. Was 307.0634765625.
FAIL rects[1].left should be 137. Was 138.635009765625.
FAIL rects[1].top should be 1704. Was 1784.1502685546875.
FAIL rects[1].width should be 271. Was 244.36602783203125.
FAIL rects[1].height should be 317. Was 286.6314697265625.
FAIL rects[2].left should be 107. Was 107.99323272705078.
FAIL rects[2].top should be 1729. Was 1809.86181640625.
FAIL rects[2].width should be 246. Was 258.0855407714844.
FAIL rects[2].height should be 289. Was 302.981689453125.
FAIL rects[3].left should be 76. Was 77.35145568847656.
FAIL rects[3].top should be 1755. Was 1835.5732421875.
FAIL rects[3].width should be 212. Was 249.7996063232422.
FAIL rects[3].height should be 247. Was 293.107177734375.
Test 9
FAIL rects.length should be 1. Was 0.
FAIL rects[0].left should be 8. Threw exception TypeError: Cannot read property 'left' of undefined
FAIL rects[0].top should be 1903. Threw exception TypeError: Cannot read property 'top' of undefined
FAIL rects[0].width should be 0. Threw exception TypeError: Cannot read property 'width' of undefined
FAIL rects[0].height should be 18. Threw exception TypeError: Cannot read property 'height' of undefined
Test 9b
PASS rects.length is 1
PASS rects[0].left is 8
FAIL rects[0].top should be 1903. Was 1983.
PASS rects[0].width is 0
FAIL rects[0].height should be 18. Was 17.
Test 10
FAIL rects.length should be 4. Was 5.
PASS rects[0].left is 19
FAIL rects[0].top should be 2088. Was 2168.
FAIL rects[0].width should be 18. Was 17.
FAIL rects[0].height should be 393. Was 375.
PASS rects[1].left is 59
FAIL rects[1].top should be 2088. Was 2168.
FAIL rects[1].width should be 18. Was 17.
FAIL rects[1].height should be 377. Was 367.03125.
PASS rects[2].left is 99
FAIL rects[2].top should be 2088. Was 2168.
FAIL rects[2].width should be 18. Was 17.
FAIL rects[2].height should be 372. Was 348.375.
PASS rects[3].left is 139
FAIL rects[3].top should be 2088. Was 2168.
FAIL rects[3].width should be 18. Was 17.
FAIL rects[3].height should be 360. Was 375.890625.
Test 11
PASS rects.length is 0
PASS successfullyParsed is true
TEST COMPLETE
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment