| <!DOCTYPE html> |
| <title>Test that no timeupdate event fires during loading.</title> |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| <video></video> |
| <script> |
| async_test(function(t) { |
| var video = document.querySelector("video"); |
| video.onloadstart = t.step_func(function() {}); |
| video.onloadedmetadata = t.step_func(function() {}); |
| video.onloadeddata = t.step_func(function() {}); |
| video.oncanplay = t.step_func(function() {}); |
| |
| video.oncanplaythrough = t.step_func(function() { |
| // Let pending async events fire before ending the test. |
| setTimeout(t.step_func_done(), 0); |
| }); |
| |
| video.ontimeupdate = t.unreached_func(); |
| video.src = "content/test.ogv"; |
| }); |
| </script> |