| OLD | NEW |
| 1 Test that 'error' events are fired from <source> element when it can not be used
. | 1 Test that 'error' events are fired from <source> element when it can not be used
. |
| 2 | 2 |
| 3 | 3 |
| 4 EVENT(error) from <source id='missing-src' src=null> OK | 4 EVENT(error) from <source id='missing-src' src=null> OK |
| 5 EXPECTED (video.error == 'null') OK | 5 EXPECTED (video.error == 'null') OK |
| 6 | 6 |
| 7 EVENT(error) from <source id='bogus-type' src='content/test.mp4'> OK | 7 EVENT(error) from <source id='bogus-type' src='content/test.ogv'> OK |
| 8 EXPECTED (video.error == 'null') OK | |
| 9 | |
| 10 EVENT(error) from <source id='unsupported-media-query' src='content/test.mp4'> O
K | |
| 11 EXPECTED (video.error == 'null') OK | 8 EXPECTED (video.error == 'null') OK |
| 12 | 9 |
| 13 EVENT(error) from <source id='empty-src' src='video-source-error-no-candidate.ht
ml'> OK | 10 EVENT(error) from <source id='empty-src' src='video-source-error-no-candidate.ht
ml'> OK |
| 14 EXPECTED (video.error == 'null') OK | 11 EXPECTED (video.error == 'null') OK |
| 15 | 12 |
| 16 EVENT(error) from <source id='no-extension-no-type' src='nonexistent'> OK | 13 EVENT(error) from <source id='no-extension-no-type' src='nonexistent'> OK |
| 17 EXPECTED (video.error == 'null') OK | 14 EXPECTED (video.error == 'null') OK |
| 18 | 15 |
| 19 END OF TEST | 16 END OF TEST |
| 20 | 17 |
| OLD | NEW |