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

Side by Side 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, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <script src="../../resources/js-test.js"></script>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body> 3 <body>
7 <script> 4 <script>
8 description("Verify that TextTrackCue exceptions are properly messaged t o developers."); 5 description("Verify that TextTrackCue exceptions are properly messaged to develo pers.");
9 6
10 var cue = new VTTCue(0, 0, "Test."); 7 var cue = new VTTCue(0, 0, "Test.");
11 8
12 function testInfinityAndNaN(property) { 9 function testInfinityAndNaN(property) {
13 shouldThrow("cue." + property + " = Number.NaN;"); 10 shouldThrow("cue." + property + " = Number.NaN;");
14 shouldThrow("cue." + property + " = Number.POSITIVE_INFINITY;"); 11 shouldThrow("cue." + property + " = Number.POSITIVE_INFINITY;");
15 shouldThrow("cue." + property + " = Number.NEGATIVE_INFINITY;"); 12 shouldThrow("cue." + property + " = Number.NEGATIVE_INFINITY;");
16 } 13 }
17 14
18 testInfinityAndNaN("startTime"); 15 testInfinityAndNaN("startTime");
19 testInfinityAndNaN("endTime"); 16 testInfinityAndNaN("endTime");
20 </script> 17 </script>
21 </body>
22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698