OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>test playbackRate and defaultPlaybackRate</title> | 4 <title>test playbackRate and defaultPlaybackRate</title> |
5 <script src=media-file.js></script> | 5 <script src=media-file.js></script> |
| 6 <!-- TODO(philipj): Convert test to testharness.js. crbug.com/588956 |
| 7 (Please avoid writing new tests using video-test.js) --> |
6 <script src=video-test.js></script> | 8 <script src=video-test.js></script> |
7 <script> | 9 <script> |
8 var rateChangeCount = 0; | 10 var rateChangeCount = 0; |
9 | 11 |
10 function ratechange() | 12 function ratechange() |
11 { | 13 { |
12 consoleWrite("*** checking rates after event"); | 14 consoleWrite("*** checking rates after event"); |
13 switch (++rateChangeCount) | 15 switch (++rateChangeCount) |
14 { | 16 { |
15 case 1: | 17 case 1: |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 112 |
111 <body onload="start()"> | 113 <body onload="start()"> |
112 | 114 |
113 <video controls > </video> | 115 <video controls > </video> |
114 <ol> | 116 <ol> |
115 <li>'playbackRate' should not change when play() is called.</li> | 117 <li>'playbackRate' should not change when play() is called.</li> |
116 <li>'playbackRate' and 'defaultPlaybackRate' should always return th
e last value set.</li> | 118 <li>'playbackRate' and 'defaultPlaybackRate' should always return th
e last value set.</li> |
117 </ol> | 119 </ol> |
118 </body> | 120 </body> |
119 </html> | 121 </html> |
OLD | NEW |