mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1116006 - add debugging logs. r=cpearce
This commit is contained in:
parent
42aa94533b
commit
38d83a3f6e
@ -19,6 +19,7 @@ var manager = new MediaTestManager;
|
||||
|
||||
function loaded(event) {
|
||||
var v = event.target;
|
||||
info(v.token + ": event=" + event.type);
|
||||
if (v._finished)
|
||||
return;
|
||||
v.play();
|
||||
@ -26,19 +27,21 @@ function loaded(event) {
|
||||
|
||||
function started(event) {
|
||||
var v = event.target;
|
||||
info(v.token + ": event=" + event.type);
|
||||
if (v._finished)
|
||||
return;
|
||||
ok(!v.paused, "Video should not be paused while playing");
|
||||
ok(!v.paused, v.token + ": Video should not be paused while playing");
|
||||
v.parentNode.removeChild(v);
|
||||
v._played = true;
|
||||
}
|
||||
|
||||
function stopped(event) {
|
||||
var v = event.target;
|
||||
info(v.token + ": event=" + event.type);
|
||||
if (v._finished)
|
||||
return;
|
||||
v._finished = true;
|
||||
ok(v.paused, "Video should be paused after removing from the Document");
|
||||
ok(v.paused, v.token + ": Video should be paused after removing from the Document");
|
||||
removeNodeAndSource(v);
|
||||
manager.finished(v.token);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user