Test for bug 464377 - <video> fires load events twice

This commit is contained in:
Justin Dolske 2009-01-29 17:45:58 -08:00
Родитель e74ce779cc
Коммит 50cebbb869
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -23,7 +23,7 @@ function runTest(event) {
switch (testnum) {
case 1:
// Check initial state upon load
is(event.type, "loadeddata", "checking event type");
is(event.type, "load", "checking event type");
is(video.paused, true, "checking video play state");
is(video.muted, false, "checking video mute state");
@ -104,8 +104,8 @@ function runTest(event) {
var testnum = 1;
var video = document.getElementById("video");
// Kick off test once we've got enough to do something.
video.addEventListener("loadeddata", runTest, false);
// Kick off test once video has loaded.
video.addEventListener("load", runTest, false);
// Other events expected by the test.
video.addEventListener("play", runTest, false);