Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 Test that media file is not reloaded when an element is inserted into the DOM. | |
| 2 | |
| 3 RUN(mediaElement = document.createElement('audio')) | |
| 4 RUN(mediaElement.src = 'content/test.wav') | |
| 5 RUN(mediaElement.load()) | |
| 6 | |
| 7 EVENT(loadstart) | |
| 8 EVENT(durationchange) | |
| 9 EVENT(loadeddata) | |
| 10 EVENT(canplaythrough) | |
| 11 | |
| 12 RUN(document.getElementById('parent').appendChild(mediaElement)) | |
| 13 RUN(mediaElement.play()) | |
| 14 | |
| 15 EVENT(canplaythrough) | |
| 16 EVENT(play) | |
| 17 EVENT(playing) | |
| 18 | |
| 19 END OF TEST | |
| 20 | |
| OLD | NEW |