| OLD | NEW |
| 1 function getVideoURI(dummy) { | 1 function getVideoURI(dummy) { |
| 2 var bool=function(any){return!(any=="no"||!any)}; | 2 var bool=function(any){return!(any=="no"||!any)}; |
| 3 return "../../../content/test." + (bool(document.createElement("video").canPla
yType('video/ogg; codecs="theora"')) ? "ogv" : "mp4"); | 3 return "../../../content/test." + (bool(document.createElement("video").canPla
yType('video/ogg; codecs="theora"')) ? "ogv" : "mp4"); |
| 4 } | 4 } |
| 5 | 5 |
| 6 function getAudioURI(dummy) { | 6 function getAudioURI(dummy) { |
| 7 return "../../../content/test.wav"; | 7 return "../../../content/test.wav"; |
| 8 } | 8 } |
| 9 | 9 |
| 10 function test(testFunction) { | 10 function test(testFunction) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 if (window.testRunner) { | 45 if (window.testRunner) { |
| 46 testRunner.notifyDone(); | 46 testRunner.notifyDone(); |
| 47 } | 47 } |
| 48 } | 48 } |
| 49 } | 49 } |
| 50 | 50 |
| 51 return t; | 51 return t; |
| 52 } | 52 } |
| 53 | 53 |
| 54 document.write("<p id=description></p><div id=console></div>"); | 54 document.write("<p id=description></p><div id=console></div>"); |
| 55 document.write("<scr" + "ipt src='../../../../fast/js/resources/js-test-pre.js'>
</" + "script>"); | 55 document.write("<scr" + "ipt src='../../../../resources/js-test.js'></" + "scrip
t>"); |
| 56 | 56 |
| 57 assert_equals = function(a, b) { shouldBe('"' + a + '"', '"' + b + '"'); } | 57 assert_equals = function(a, b) { shouldBe('"' + a + '"', '"' + b + '"'); } |
| 58 assert_true = function(a) { shouldBeTrue("" + a); } | 58 assert_true = function(a) { shouldBeTrue("" + a); } |
| 59 assert_false = function(a) { shouldBeFalse("" + a); } | 59 assert_false = function(a) { shouldBeFalse("" + a); } |
| 60 | 60 |
| 61 var successfullyParsed = true; | 61 var successfullyParsed = true; |
| OLD | NEW |