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

Side by Side Diff: LayoutTests/media/track/opera/interfaces/VTTCue/constructor.html

Issue 854863002: VTTCue: Add TypeChecking=Unrestricted (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Drop unnecessary test. Created 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/media/track/track-add-remove-cue.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!doctype html>
2 <title>VTTCue constructor</title>
3 <script src=../../../../../resources/testharness.js></script>
4 <script src=../../../../../resources/testharnessreport.js></script>
5 <div id=log></div>
6 <script>
7 test(function() {
8 assert_throws(new TypeError, function() { new VTTCue(NaN, 0, 'foo'); });
9 assert_throws(new TypeError, function() { new VTTCue(Infinity, 0, 'foo'); }) ;
10 assert_throws(new TypeError, function() { new VTTCue('tomorrow', 0, 'foo'); });
11 }, document.title+', non-finite start time');
12 test(function() {
13 assert_throws(new TypeError, function() { new VTTCue(0, NaN, 'foo'); });
14 assert_throws(new TypeError, function() { new VTTCue(0, Infinity, 'foo'); }) ;
15 assert_throws(new TypeError, function() { new VTTCue(0, 'tomorrow', 'foo'); });
16 }, document.title+', non-finite end time');
17 test(function() {
18 var start = { valueOf: function() { return 42; } };
19 var end = { valueOf: function() { return 84; } };
20 var cue = new VTTCue(start, end, 'bar');
21 assert_equals(cue.startTime, 42);
22 assert_equals(cue.endTime, 84);
23 assert_equals(cue.text, 'bar');
24 }, document.title+', valueOf');
25 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/media/track/track-add-remove-cue.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698