Bug 951100 - a.setAttribute("autoplay", false) doesn't work as expected as a.autoplay = false. r=cpearce

This commit is contained in:
JW Wang 2014-02-10 10:27:47 +08:00
parent 3cd73fb7c3
commit 3bae414e05

View File

@ -25,11 +25,11 @@ var manager = new MediaTestManager;
var player = new Audio();
function startTest(test, token) {
if (!player.canPlayType(test.type))
if (!player.canPlayType(test.type)) {
return;
}
manager.started(token);
var a = new Audio(test.name);
a.setAttribute("autoplay", false);
a.addEventListener("canplaythrough",
function(e){ e.target.play(); },
false);