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("

"); document.write(""); assert_equals = function(a, b) { shouldBe('"' + a + '"', '"' + b + '"'); } assert_true = function(a) { shouldBeTrue("" + a); } assert_false = function(a) { shouldBeFalse("" + a); } // Don't report unhandled promise rejections in these tests. window.onunhandledrejection = function() { return false; } var successfullyParsed = true;