| OLD | NEW |
| 1 Tests the constructor and mutation of VTTRegion. | 1 Tests the constructor and mutation of VTTRegion. |
| 2 | 2 |
| 3 ** Test instanceof VTTRegion. ** | 3 ** Test instanceof VTTRegion. ** |
| 4 EXPECTED (region instanceof VTTRegion == 'true') OK | 4 EXPECTED (region instanceof VTTRegion == 'true') OK |
| 5 ** Test the default indexs of a region. ** | 5 ** Test the default indexs of a region. ** |
| 6 EXPECTED (region.track == 'null') OK | 6 EXPECTED (region.track == 'null') OK |
| 7 EXPECTED (region.scroll == '') OK | 7 EXPECTED (region.scroll == '') OK |
| 8 EXPECTED (region.viewportAnchorX == '0') OK | 8 EXPECTED (region.viewportAnchorX == '0') OK |
| 9 EXPECTED (region.viewportAnchorY == '100') OK | 9 EXPECTED (region.viewportAnchorY == '100') OK |
| 10 EXPECTED (region.regionAnchorX == '0') OK | 10 EXPECTED (region.regionAnchorX == '0') OK |
| 11 EXPECTED (region.regionAnchorY == '100') OK | 11 EXPECTED (region.regionAnchorY == '100') OK |
| 12 EXPECTED (region.height == '3') OK | 12 EXPECTED (region.height == '3') OK |
| 13 EXPECTED (region.width == '100') OK | 13 EXPECTED (region.width == '100') OK |
| 14 | 14 |
| 15 ** Test that incorrect mutation keeps previous valid values. ** | 15 ** Test that incorrect mutation keeps previous valid values. ** |
| 16 RUN(region.scroll = 'invalid-scroll-value') | 16 RUN(region.scroll = 'invalid-scroll-value') |
| 17 SyntaxError: Failed to set the 'scroll' property on 'VTTRegion': The value provi
ded ('invalid-scroll-value') is invalid. The 'scroll' property must be either th
e empty string, or 'up'. | 17 SyntaxError: Failed to set the 'scroll' property on 'VTTRegion': The value provi
ded ('invalid-scroll-value') is invalid. The 'scroll' property must be either th
e empty string, or 'up'. |
| 18 EXPECTED (region.scroll == '') OK | 18 EXPECTED (region.scroll == '') OK |
| 19 | 19 |
| 20 Invalid percentage value: -1 | 20 Invalid percentage value: -1 |
| 21 RUN(region.viewportAnchorX = invalidPercentageValues[index]) | 21 RUN(region.viewportAnchorX = invalidPercentageValues[index]) |
| 22 IndexSizeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The
value provided (-1) is not between 0 and 100. | 22 IndexSizeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The
value provided (-1) is outside the range [0, 100]. |
| 23 EXPECTED (region.viewportAnchorX == '0') OK | 23 EXPECTED (region.viewportAnchorX == '0') OK |
| 24 RUN(region.viewportAnchorY = invalidPercentageValues[index]) | 24 RUN(region.viewportAnchorY = invalidPercentageValues[index]) |
| 25 IndexSizeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The
value provided (-1) is not between 0 and 100. | 25 IndexSizeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The
value provided (-1) is outside the range [0, 100]. |
| 26 EXPECTED (region.viewportAnchorY == '100') OK | 26 EXPECTED (region.viewportAnchorY == '100') OK |
| 27 RUN(region.regionAnchorX = invalidPercentageValues[index]) | 27 RUN(region.regionAnchorX = invalidPercentageValues[index]) |
| 28 IndexSizeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The v
alue provided (-1) is not between 0 and 100. | 28 IndexSizeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The v
alue provided (-1) is outside the range [0, 100]. |
| 29 EXPECTED (region.regionAnchorX == '0') OK | 29 EXPECTED (region.regionAnchorX == '0') OK |
| 30 RUN(region.regionAnchorY = invalidPercentageValues[index]) | 30 RUN(region.regionAnchorY = invalidPercentageValues[index]) |
| 31 IndexSizeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The v
alue provided (-1) is not between 0 and 100. | 31 IndexSizeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The v
alue provided (-1) is outside the range [0, 100]. |
| 32 EXPECTED (region.regionAnchorY == '100') OK | 32 EXPECTED (region.regionAnchorY == '100') OK |
| 33 RUN(region.width = invalidPercentageValues[index]) | 33 RUN(region.width = invalidPercentageValues[index]) |
| 34 IndexSizeError: Failed to set the 'width' property on 'VTTRegion': The value pro
vided (-1) is not between 0 and 100. | 34 IndexSizeError: Failed to set the 'width' property on 'VTTRegion': The value pro
vided (-1) is outside the range [0, 100]. |
| 35 EXPECTED (region.width == '100') OK | 35 EXPECTED (region.width == '100') OK |
| 36 | 36 |
| 37 Invalid percentage value: 101 | 37 Invalid percentage value: 101 |
| 38 RUN(region.viewportAnchorX = invalidPercentageValues[index]) | 38 RUN(region.viewportAnchorX = invalidPercentageValues[index]) |
| 39 IndexSizeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The
value provided (101) is not between 0 and 100. | 39 IndexSizeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The
value provided (101) is outside the range [0, 100]. |
| 40 EXPECTED (region.viewportAnchorX == '0') OK | 40 EXPECTED (region.viewportAnchorX == '0') OK |
| 41 RUN(region.viewportAnchorY = invalidPercentageValues[index]) | 41 RUN(region.viewportAnchorY = invalidPercentageValues[index]) |
| 42 IndexSizeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The
value provided (101) is not between 0 and 100. | 42 IndexSizeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The
value provided (101) is outside the range [0, 100]. |
| 43 EXPECTED (region.viewportAnchorY == '100') OK | 43 EXPECTED (region.viewportAnchorY == '100') OK |
| 44 RUN(region.regionAnchorX = invalidPercentageValues[index]) | 44 RUN(region.regionAnchorX = invalidPercentageValues[index]) |
| 45 IndexSizeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The v
alue provided (101) is not between 0 and 100. | 45 IndexSizeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The v
alue provided (101) is outside the range [0, 100]. |
| 46 EXPECTED (region.regionAnchorX == '0') OK | 46 EXPECTED (region.regionAnchorX == '0') OK |
| 47 RUN(region.regionAnchorY = invalidPercentageValues[index]) | 47 RUN(region.regionAnchorY = invalidPercentageValues[index]) |
| 48 IndexSizeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The v
alue provided (101) is not between 0 and 100. | 48 IndexSizeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The v
alue provided (101) is outside the range [0, 100]. |
| 49 EXPECTED (region.regionAnchorY == '100') OK | 49 EXPECTED (region.regionAnchorY == '100') OK |
| 50 RUN(region.width = invalidPercentageValues[index]) | 50 RUN(region.width = invalidPercentageValues[index]) |
| 51 IndexSizeError: Failed to set the 'width' property on 'VTTRegion': The value pro
vided (101) is not between 0 and 100. | 51 IndexSizeError: Failed to set the 'width' property on 'VTTRegion': The value pro
vided (101) is outside the range [0, 100]. |
| 52 EXPECTED (region.width == '100') OK | 52 EXPECTED (region.width == '100') OK |
| 53 | 53 |
| 54 Invalid percentage value: -Infinity | 54 Invalid percentage value: -Infinity |
| 55 RUN(region.viewportAnchorX = invalidPercentageValues[index]) | 55 RUN(region.viewportAnchorX = invalidPercentageValues[index]) |
| 56 TypeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The valu
e provided is infinite. | 56 TypeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The valu
e provided is infinite. |
| 57 EXPECTED (region.viewportAnchorX == '0') OK | 57 EXPECTED (region.viewportAnchorX == '0') OK |
| 58 RUN(region.viewportAnchorY = invalidPercentageValues[index]) | 58 RUN(region.viewportAnchorY = invalidPercentageValues[index]) |
| 59 TypeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The valu
e provided is infinite. | 59 TypeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The valu
e provided is infinite. |
| 60 EXPECTED (region.viewportAnchorY == '100') OK | 60 EXPECTED (region.viewportAnchorY == '100') OK |
| 61 RUN(region.regionAnchorX = invalidPercentageValues[index]) | 61 RUN(region.regionAnchorX = invalidPercentageValues[index]) |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 RUN(region.viewportAnchorY = 32) | 113 RUN(region.viewportAnchorY = 32) |
| 114 EXPECTED (region.viewportAnchorY == '32') OK | 114 EXPECTED (region.viewportAnchorY == '32') OK |
| 115 RUN(region.regionAnchorX = 16) | 115 RUN(region.regionAnchorX = 16) |
| 116 EXPECTED (region.regionAnchorX == '16') OK | 116 EXPECTED (region.regionAnchorX == '16') OK |
| 117 RUN(region.regionAnchorY = 8) | 117 RUN(region.regionAnchorY = 8) |
| 118 EXPECTED (region.regionAnchorY == '8') OK | 118 EXPECTED (region.regionAnchorY == '8') OK |
| 119 RUN(region.width = 42) | 119 RUN(region.width = 42) |
| 120 EXPECTED (region.width == '42') OK | 120 EXPECTED (region.width == '42') OK |
| 121 END OF TEST | 121 END OF TEST |
| 122 | 122 |
| OLD | NEW |