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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/media/media-source/mediasource-duration.html

Issue 2157963002: Improve grammar in some comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: maxiumum Created 4 years, 5 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
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="/w3c/resources/testharness.js"></script> 4 <script src="/w3c/resources/testharness.js"></script>
5 <script src="/w3c/resources/testharnessreport.js"></script> 5 <script src="/w3c/resources/testharnessreport.js"></script>
6 <script src="mediasource-util.js"></script> 6 <script src="mediasource-util.js"></script>
7 <link rel='stylesheet' href='/w3c/resources/testharness.css'> 7 <link rel='stylesheet' href='/w3c/resources/testharness.css'>
8 </head> 8 </head>
9 <body> 9 <body>
10 <div id="log"></div> 10 <div id="log"></div>
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // Reducing duration to below the highest buffered PTS should trigger exception. 243 // Reducing duration to below the highest buffered PTS should trigger exception.
244 assert_throws('InvalidStateError', 244 assert_throws('InvalidStateError',
245 function() { mediaSource.duration = fullDuration - 0.05; } , 245 function() { mediaSource.duration = fullDuration - 0.05; } ,
246 'Duration reduction that truncates at least one whole code d frame throws an exception.'); 246 'Duration reduction that truncates at least one whole code d frame throws an exception.');
247 247
248 assert_equals(mediaSource.duration, fullDuration + 1, 'mediaSo urce duration matches fullDuration+1'); 248 assert_equals(mediaSource.duration, fullDuration + 1, 'mediaSo urce duration matches fullDuration+1');
249 249
250 // Reducing duration without truncating any buffered media sho uld not trigger exception. 250 // Reducing duration without truncating any buffered media sho uld not trigger exception.
251 mediaSource.duration = fullDuration; 251 mediaSource.duration = fullDuration;
252 252
253 // Reducing duration by less then the minimum of the last test audio and video frame 253 // Reducing duration by less than the minimum of the last test audio and video frame
254 // durations should not trigger exception. 254 // durations should not trigger exception.
255 mediaSource.duration = fullDuration - 0.001; 255 mediaSource.duration = fullDuration - 0.001;
256 test.done(); 256 test.done();
257 }); 257 });
258 }, 'Test duration reduction below highest buffered presentation time i s disallowed'); 258 }, 'Test duration reduction below highest buffered presentation time i s disallowed');
259 259
260 </script> 260 </script>
261 </body> 261 </body>
262 </html> 262 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698