| 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 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 outside the range [0, 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 outside the range [0, 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 prov
ided double value is non-finite. |
| 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 prov
ided double value is non-finite. |
| 60 EXPECTED (region.viewportAnchorY == '100') OK | 60 EXPECTED (region.viewportAnchorY == '100') OK |
| 61 RUN(region.regionAnchorX = invalidPercentageValues[index]) | 61 RUN(region.regionAnchorX = invalidPercentageValues[index]) |
| 62 TypeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The value
provided is infinite. | 62 TypeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The provid
ed double value is non-finite. |
| 63 EXPECTED (region.regionAnchorX == '0') OK | 63 EXPECTED (region.regionAnchorX == '0') OK |
| 64 RUN(region.regionAnchorY = invalidPercentageValues[index]) | 64 RUN(region.regionAnchorY = invalidPercentageValues[index]) |
| 65 TypeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The value
provided is infinite. | 65 TypeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The provid
ed double value is non-finite. |
| 66 EXPECTED (region.regionAnchorY == '100') OK | 66 EXPECTED (region.regionAnchorY == '100') OK |
| 67 RUN(region.width = invalidPercentageValues[index]) | 67 RUN(region.width = invalidPercentageValues[index]) |
| 68 TypeError: Failed to set the 'width' property on 'VTTRegion': The value provided
is infinite. | 68 TypeError: Failed to set the 'width' property on 'VTTRegion': The provided doubl
e value is non-finite. |
| 69 EXPECTED (region.width == '100') OK | 69 EXPECTED (region.width == '100') OK |
| 70 | 70 |
| 71 Invalid percentage value: Infinity | 71 Invalid percentage value: Infinity |
| 72 RUN(region.viewportAnchorX = invalidPercentageValues[index]) | 72 RUN(region.viewportAnchorX = invalidPercentageValues[index]) |
| 73 TypeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The valu
e provided is infinite. | 73 TypeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The prov
ided double value is non-finite. |
| 74 EXPECTED (region.viewportAnchorX == '0') OK | 74 EXPECTED (region.viewportAnchorX == '0') OK |
| 75 RUN(region.viewportAnchorY = invalidPercentageValues[index]) | 75 RUN(region.viewportAnchorY = invalidPercentageValues[index]) |
| 76 TypeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The valu
e provided is infinite. | 76 TypeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The prov
ided double value is non-finite. |
| 77 EXPECTED (region.viewportAnchorY == '100') OK | 77 EXPECTED (region.viewportAnchorY == '100') OK |
| 78 RUN(region.regionAnchorX = invalidPercentageValues[index]) | 78 RUN(region.regionAnchorX = invalidPercentageValues[index]) |
| 79 TypeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The value
provided is infinite. | 79 TypeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The provid
ed double value is non-finite. |
| 80 EXPECTED (region.regionAnchorX == '0') OK | 80 EXPECTED (region.regionAnchorX == '0') OK |
| 81 RUN(region.regionAnchorY = invalidPercentageValues[index]) | 81 RUN(region.regionAnchorY = invalidPercentageValues[index]) |
| 82 TypeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The value
provided is infinite. | 82 TypeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The provid
ed double value is non-finite. |
| 83 EXPECTED (region.regionAnchorY == '100') OK | 83 EXPECTED (region.regionAnchorY == '100') OK |
| 84 RUN(region.width = invalidPercentageValues[index]) | 84 RUN(region.width = invalidPercentageValues[index]) |
| 85 TypeError: Failed to set the 'width' property on 'VTTRegion': The value provided
is infinite. | 85 TypeError: Failed to set the 'width' property on 'VTTRegion': The provided doubl
e value is non-finite. |
| 86 EXPECTED (region.width == '100') OK | 86 EXPECTED (region.width == '100') OK |
| 87 | 87 |
| 88 Invalid percentage value: NaN | 88 Invalid percentage value: NaN |
| 89 RUN(region.viewportAnchorX = invalidPercentageValues[index]) | 89 RUN(region.viewportAnchorX = invalidPercentageValues[index]) |
| 90 TypeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The valu
e provided is not a number. | 90 TypeError: Failed to set the 'viewportAnchorX' property on 'VTTRegion': The prov
ided double value is non-finite. |
| 91 EXPECTED (region.viewportAnchorX == '0') OK | 91 EXPECTED (region.viewportAnchorX == '0') OK |
| 92 RUN(region.viewportAnchorY = invalidPercentageValues[index]) | 92 RUN(region.viewportAnchorY = invalidPercentageValues[index]) |
| 93 TypeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The valu
e provided is not a number. | 93 TypeError: Failed to set the 'viewportAnchorY' property on 'VTTRegion': The prov
ided double value is non-finite. |
| 94 EXPECTED (region.viewportAnchorY == '100') OK | 94 EXPECTED (region.viewportAnchorY == '100') OK |
| 95 RUN(region.regionAnchorX = invalidPercentageValues[index]) | 95 RUN(region.regionAnchorX = invalidPercentageValues[index]) |
| 96 TypeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The value
provided is not a number. | 96 TypeError: Failed to set the 'regionAnchorX' property on 'VTTRegion': The provid
ed double value is non-finite. |
| 97 EXPECTED (region.regionAnchorX == '0') OK | 97 EXPECTED (region.regionAnchorX == '0') OK |
| 98 RUN(region.regionAnchorY = invalidPercentageValues[index]) | 98 RUN(region.regionAnchorY = invalidPercentageValues[index]) |
| 99 TypeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The value
provided is not a number. | 99 TypeError: Failed to set the 'regionAnchorY' property on 'VTTRegion': The provid
ed double value is non-finite. |
| 100 EXPECTED (region.regionAnchorY == '100') OK | 100 EXPECTED (region.regionAnchorY == '100') OK |
| 101 RUN(region.width = invalidPercentageValues[index]) | 101 RUN(region.width = invalidPercentageValues[index]) |
| 102 TypeError: Failed to set the 'width' property on 'VTTRegion': The value provided
is not a number. | 102 TypeError: Failed to set the 'width' property on 'VTTRegion': The provided doubl
e value is non-finite. |
| 103 EXPECTED (region.width == '100') OK | 103 EXPECTED (region.width == '100') OK |
| 104 RUN(region.height = -1) | 104 RUN(region.height = -1) |
| 105 IndexSizeError: Failed to set the 'height' property on 'VTTRegion': The height p
rovided (-1) is negative. | 105 IndexSizeError: Failed to set the 'height' property on 'VTTRegion': The height p
rovided (-1) is negative. |
| 106 EXPECTED (region.height == '3') OK | 106 EXPECTED (region.height == '3') OK |
| 107 | 107 |
| 108 ** Test that proper mutation keeps assigned value. ** | 108 ** Test that proper mutation keeps assigned value. ** |
| 109 RUN(region.height = 130) | 109 RUN(region.height = 130) |
| 110 EXPECTED (region.height == '130') OK | 110 EXPECTED (region.height == '130') OK |
| 111 RUN(region.viewportAnchorX = 64) | 111 RUN(region.viewportAnchorX = 64) |
| 112 EXPECTED (region.viewportAnchorX == '64') OK | 112 EXPECTED (region.viewportAnchorX == '64') OK |
| 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 |