| OLD | NEW |
| 1 1. Test that errors fired while evaluating/loading <source> elements are fired a
t the <source> and not at the <video> element. | 1 1. Test that errors fired while evaluating/loading <source> elements are fired a
t the <source> and not at the <video> element. |
| 2 2. Verifiy that an 'error' event fired while processing/loading a <source> eleme
nt does not set the media element's 'error' attribute. | 2 2. Verifiy that an 'error' event fired while processing/loading a <source> eleme
nt does not set the media element's 'error' attribute. |
| 3 | 3 |
| 4 EVENT(loadstart) | 4 EVENT(loadstart) |
| 5 EVENT(error) from <source id='missing-src' src=''> OK | 5 EVENT(error) from <source id='missing-src' src=''> OK |
| 6 EXPECTED (video.error == 'null') OK | 6 EXPECTED (video.error == 'null') OK |
| 7 | 7 |
| 8 EVENT(error) from <source id='bogus-type' src='content/test.mp4'> OK | 8 EVENT(error) from <source id='bogus-type' src='content/test.mp4'> OK |
| 9 EXPECTED (video.error == 'null') OK | 9 EXPECTED (video.error == 'null') OK |
| 10 | 10 |
| 11 EVENT(error) from <source id='unsupported-media-query' src='content/test.mp4'> O
K | |
| 12 EXPECTED (video.error == 'null') OK | |
| 13 | |
| 14 EVENT(error) from <source id='missing-file' src='content/error2.mpeg'> OK | 11 EVENT(error) from <source id='missing-file' src='content/error2.mpeg'> OK |
| 15 EXPECTED (video.error == 'null') OK | 12 EXPECTED (video.error == 'null') OK |
| 16 | 13 |
| 17 EVENT(error) from <source id='format-error' src='content/unsupported_track.mov'>
OK | 14 EVENT(error) from <source id='format-error' src='content/unsupported_track.mov'>
OK |
| 18 EXPECTED (video.error == 'null') OK | 15 EXPECTED (video.error == 'null') OK |
| 19 | 16 |
| 20 EVENT(error) from <source id='supported-format-mp4' src='content/test.mp4'> OK | 17 EVENT(error) from <source id='supported-format-mp4' src='content/test.mp4'> OK |
| 21 EXPECTED (video.error == 'null') OK | 18 EXPECTED (video.error == 'null') OK |
| 22 | 19 |
| 23 EVENT(durationchange) | 20 EVENT(durationchange) |
| 24 EVENT(loadeddata) | 21 EVENT(loadeddata) |
| 25 | 22 |
| 26 EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK | 23 EXPECTED (relativeURL(video.currentSrc) == 'content/test.ogv') OK |
| 27 EXPECTED (video.error == 'null') OK | 24 EXPECTED (video.error == 'null') OK |
| 28 | 25 |
| 29 END OF TEST | 26 END OF TEST |
| 30 | 27 |
| OLD | NEW |