diff --git a/dom/media/test/manifest.js b/dom/media/test/manifest.js index 08c88010b21f..9db940ef7719 100644 --- a/dom/media/test/manifest.js +++ b/dom/media/test/manifest.js @@ -631,15 +631,6 @@ var gUnseekableTests = [ { name:"bogus.duh", type:"bogus/duh"} ]; -function isWindows32() { - return navigator.userAgent.includes("Windows") && - !navigator.userAgent.includes("Win64"); -} - -function isAndroid() { - return navigator.userAgent.includes("Android"); -} - var androidVersion = -1; // non-Android platforms if (manifestNavigator().userAgent.includes("Mobile") || manifestNavigator().userAgent.includes("Tablet")) { @@ -1868,11 +1859,6 @@ function mediaTestCleanup(callback) { SpecialPowers.exactGC(callback); } -// B2G emulator and Android 2.3 are condidered slow platforms -function isSlowPlatform() { - return SpecialPowers.Services.appinfo.name == "B2G" || getAndroidVersion() == 10; -} - async function dumpDebugInfoForToken(token) { for (let v of document.getElementsByTagName("video")) { if (token === v.token) { diff --git a/dom/media/test/test_playback.html b/dom/media/test/test_playback.html index 55e9bd1960e8..d82e4f074926 100644 --- a/dom/media/test/test_playback.html +++ b/dom/media/test/test_playback.html @@ -98,20 +98,6 @@ function startTest(test, token) { document.body.appendChild(v); v.play(); - - // Debug timeouts on slow platforms. - if (isSlowPlatform()) { - var events = ["suspend", "play", "canplay", "canplaythrough", "loadstart", "loadedmetadata", - "loadeddata", "playing", "ended", "error", "stalled", "emptied", "abort", - "waiting", "pause"]; - function logEvent(e) { - var v = e.target; - Log(e.target.token, "got " + e.type); - } - events.forEach(function(e) { - v.addEventListener(e, logEvent); - }); - } } manager.runTests(gPlayTests, startTest); diff --git a/dom/media/test/test_playback_hls.html b/dom/media/test/test_playback_hls.html index 72d6cf1bceec..553c8d253eba 100644 --- a/dom/media/test/test_playback_hls.html +++ b/dom/media/test/test_playback_hls.html @@ -81,20 +81,6 @@ function startTest(test, token) { document.body.appendChild(v); v.play(); - - // Log the event on android devices or emulator for debugging. - if (isSlowPlatform()) { - var events = ["suspend", "play", "canplay", "canplaythrough", "loadstart","loadedmetadata", - "loadeddata", "playing", "ended", "error", "stalled", "emptied", "abort", - "waiting", "pause"]; - function logEvent(e) { - var v = e.target; - Log(e.target.token, "got " + e.type); - } - events.forEach(function(e) { - v.addEventListener(e, logEvent); - }); - } } manager.runTests(gHLSTests, startTest); diff --git a/dom/media/test/test_playback_reactivate.html b/dom/media/test/test_playback_reactivate.html index 3f76b5f739fd..cfbc6f493251 100644 --- a/dom/media/test/test_playback_reactivate.html +++ b/dom/media/test/test_playback_reactivate.html @@ -67,20 +67,6 @@ function startTest(test, token) { v.addEventListener("ended", checkEnded); document.body.appendChild(v); - - // Debug timeouts on slow platforms. - if (isSlowPlatform()) { - var events = ["suspend", "play", "canplay", "canplaythrough", "loadstart", "loadedmetadata", - "loadeddata", "playing", "ended", "error", "stalled", "emptied", "abort", - "waiting", "pause"]; - function logEvent(e) { - var v = e.target; - Log(e.target.token, "got " + e.type); - } - events.forEach(function(e) { - v.addEventListener(e, logEvent); - }); - } } manager.runTests(gSmallTests, startTest);