Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Unified Diff: LayoutTests/media/track/vtt-cue-exceptions.html

Issue 140573002: Split TextTrackCue exceptions test into TextTrackCue+VTTCue (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698