function getVideoURI(dummy) {
var bool=function(any){return!(any=="no"||!any)};
return "../../../content/test." + (bool(document.createElement("video").canPlayType('video/ogg; codecs="theora"')) ? "ogv" : "mp4");
}
function getAudioURI(dummy) {
return "../../../content/test.wav";
}
function test(testFunction) {
description(document.title);
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
try {
testFunction();
}
catch (e) {
testFailed('Aborted with exception: ' + e.message);
}
debug('
TEST COMPLETE');
if (window.testRunner)
testRunner.notifyDone();
}
function async_test(title, options) {
description(title);
if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var t = {
step: function(testFunction) {
try {
testFunction();
}
catch (e) {
testFailed('Aborted with exception: ' + e.message);
}
},
done: function() {
debug('
TEST COMPLETE');
if (window.testRunner) {
testRunner.notifyDone();
}
}
}
return t;
}
document.write("