Index: LayoutTests/media/track/vtt-cue-exceptions.html |
diff --git a/LayoutTests/media/track/text-track-cue-exceptions.html b/LayoutTests/media/track/vtt-cue-exceptions.html |
similarity index 56% |
copy from LayoutTests/media/track/text-track-cue-exceptions.html |
copy to LayoutTests/media/track/vtt-cue-exceptions.html |
index 37546c0249ef7c34e3e89631e2c3c76ba9f50e43..3c92416686f69554a1da38e051fd22bdcc6767e4 100644 |
--- a/LayoutTests/media/track/text-track-cue-exceptions.html |
+++ b/LayoutTests/media/track/vtt-cue-exceptions.html |
@@ -5,24 +5,15 @@ |
</head> |
<body> |
<script> |
- description("Verify that TextTrackCue exceptions are properly messaged to developers."); |
+ description("Verify that VTTCue exceptions are properly messaged to developers."); |
var cue = new VTTCue(0, 0, "Test."); |
- function testInfinityAndNaN(property) { |
- shouldThrow("cue." + property + " = Number.NaN;"); |
- shouldThrow("cue." + property + " = Number.POSITIVE_INFINITY;"); |
- shouldThrow("cue." + property + " = Number.NEGATIVE_INFINITY;"); |
- } |
- |
function testPercentage(property) { |
shouldThrow("cue." + property + " = -1;"); |
shouldThrow("cue." + property + " = 101;"); |
} |
- testInfinityAndNaN("startTime"); |
- testInfinityAndNaN("endTime"); |
- |
shouldThrow("cue.vertical = 'Invalid!';"); |
cue.snapToLines = false; |