1 function getVideoURI(dummy) {
2 var bool=function(any){return!(any=="no"||!any)};
3 return "../../../content/test." + (bool(document.createElement("video").canPlayType('video/ogg; codecs="theora"')) ? "ogv" : "mp4");
6 function getAudioURI(dummy) {
7 return "../../../content/test.wav";
10 function testStep(testFunction) {
14 testFailed('Aborted with exception: ' + e.message);
19 // Match the semantics of testharness.js done(), where nothing that
20 // happens after that call has any effect on the test result.
21 if (!window.wasFinishJSTestCalled) {
23 assert_equals = assert_true = assert_false = function() { };
27 function test(testFunction) {
28 description(document.title);
29 testStep(testFunction);
32 function async_test(title, options) {
33 window.jsTestIsAsync = true;
41 document.write("<p id=description></p><div id=console></div>");
42 document.write("<script src='../../../../resources/js-test.js'></" + "script>");
44 assert_equals = function(a, b) { shouldBe('"' + a + '"', '"' + b + '"'); }
45 assert_true = function(a) { shouldBeTrue("" + a); }
46 assert_false = function(a) { shouldBeFalse("" + a); }
48 if (window.testRunner)
49 testRunner.dumpAsText();