test_utility_audio.html (909B)
1 <!DOCTYPE HTML> 2 <html> 3 <head> 4 <title>Audio decoder in Utility process</title> 5 <script src="/tests/SimpleTest/SimpleTest.js"></script> 6 <script src="head.js"></script> 7 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" /> 8 </head> 9 <body> 10 <pre id="test"> 11 <script type="text/javascript"> 12 SimpleTest.waitForExplicitFinish(); 13 14 (async function() { 15 const platform = SpecialPowers.Services.appinfo.OS; 16 for (let {src, expectations} of audioTestData()) { 17 if (!(platform in expectations)) { 18 info(`Skipping ${src} for ${platform}`); 19 continue; 20 } 21 22 try { 23 await runMochitestUtilityAudio(src, { expectUtility: expectations[platform].process, expectDecoder: expectations[platform].decoder, expectContent: false, expectJava: false }); 24 } catch (ex) { 25 ok(false, `Failure for ${src}`); 26 } 27 } 28 29 SimpleTest.finish(); 30 })(); 31 </script> 32 </pre> 33 </body> 34 </html>