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

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

Issue 262753004: Replace all remaining IDL finitude type checks with [TypeChecking=Unrestricted] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 8 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/text-track-cue-exceptions.html
diff --git a/LayoutTests/media/track/text-track-cue-exceptions.html b/LayoutTests/media/track/text-track-cue-exceptions.html
index 2fc535bbf910a4a66a89ca6067f1747ce15dd59f..9f687da3ff3cdf5acf15bc3d98379cda35027802 100644
--- a/LayoutTests/media/track/text-track-cue-exceptions.html
+++ b/LayoutTests/media/track/text-track-cue-exceptions.html
@@ -1,22 +1,17 @@
<!DOCTYPE html>
-<html>
-<head>
- <script src="../../resources/js-test.js"></script>
-</head>
+<script src="../../resources/js-test.js"></script>
<body>
- <script>
- description("Verify that TextTrackCue exceptions are properly messaged to developers.");
+<script>
+description("Verify that TextTrackCue exceptions are properly messaged to developers.");
- var cue = new VTTCue(0, 0, "Test.");
+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 testInfinityAndNaN(property) {
+ shouldThrow("cue." + property + " = Number.NaN;");
+ shouldThrow("cue." + property + " = Number.POSITIVE_INFINITY;");
+ shouldThrow("cue." + property + " = Number.NEGATIVE_INFINITY;");
+}
- testInfinityAndNaN("startTime");
- testInfinityAndNaN("endTime");
- </script>
-</body>
-</html>
+testInfinityAndNaN("startTime");
+testInfinityAndNaN("endTime");
+</script>

Powered by Google App Engine
This is Rietveld 408576698