diff --git a/webvtt/api/VTTRegion/lines-long.html b/webvtt/api/VTTRegion/lines-long.html new file mode 100644 index 00000000000000..6a9a1e4203af85 --- /dev/null +++ b/webvtt/api/VTTRegion/lines-long.html @@ -0,0 +1,37 @@ + +VTTRegion.lines unsiged long + + + +
+ diff --git a/webvtt/api/VTTRegion/lines.html b/webvtt/api/VTTRegion/lines.html index 90e08b489303ea..fa74ad3d288f12 100644 --- a/webvtt/api/VTTRegion/lines.html +++ b/webvtt/api/VTTRegion/lines.html @@ -17,19 +17,25 @@ // https://heycam.github.io/webidl/#abstract-opdef-converttoint [[0, 0], [-0, 0], - [-1, 4294967295], - [-100, 4294967196], + [-1, 'IndexSizeError'], + [-100, 'IndexSizeError'], [101, 101], - [-2147483648, 2147483648], + [-2147483648, 'IndexSizeError'], [2147483647, 2147483647], - [2147483648, 2147483648], [NaN, 0], [Infinity, 0], [-Infinity, 0]].forEach(function (pair) { var input = pair[0]; var expected = pair[1]; - region.lines = input; - assert_equals(region.lines, expected); + + if (expected === 'IndexSizeError') { + assert_throws(expected, function() { + region.lines = input; + }); + } else { + region.lines = input; + assert_equals(region.lines, expected); + } }); }, document.title + ' script-created region');