| OLD | NEW |
| 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> | |
| OLD | NEW |