summaryrefslogtreecommitdiffstats
path: root/dom/media/autoplay/test/mochitest
diff options
context:
space:
mode:
Diffstat (limited to 'dom/media/autoplay/test/mochitest')
-rw-r--r--dom/media/autoplay/test/mochitest/file_autoplay_policy_eventdown_activation.html4
-rw-r--r--dom/media/autoplay/test/mochitest/file_autoplay_policy_key_blacklist.html2
-rw-r--r--dom/media/autoplay/test/mochitest/file_autoplay_policy_play_before_loadedmetadata.html2
-rw-r--r--dom/media/autoplay/test/mochitest/file_autoplay_policy_unmute_pauses.html4
4 files changed, 6 insertions, 6 deletions
diff --git a/dom/media/autoplay/test/mochitest/file_autoplay_policy_eventdown_activation.html b/dom/media/autoplay/test/mochitest/file_autoplay_policy_eventdown_activation.html
index e25b6401d1..9fcda2afe9 100644
--- a/dom/media/autoplay/test/mochitest/file_autoplay_policy_eventdown_activation.html
+++ b/dom/media/autoplay/test/mochitest/file_autoplay_policy_eventdown_activation.html
@@ -36,8 +36,8 @@
let x = eventNames.map(
(eventName) => {
- return new Promise(function (resolve, reject) {
- window.addEventListener(eventName, async function (event) {
+ return new Promise(function (resolve) {
+ window.addEventListener(eventName, async function () {
let p = await element.play().then(() => true, () => false);
ok(p, "Expect to be activated already in " + eventName);
resolve();
diff --git a/dom/media/autoplay/test/mochitest/file_autoplay_policy_key_blacklist.html b/dom/media/autoplay/test/mochitest/file_autoplay_policy_key_blacklist.html
index b901df3324..fc8c47065e 100644
--- a/dom/media/autoplay/test/mochitest/file_autoplay_policy_key_blacklist.html
+++ b/dom/media/autoplay/test/mochitest/file_autoplay_policy_key_blacklist.html
@@ -91,7 +91,7 @@
input.blur();
}
- async function testAutoplayKeyBlacklist(testCase, parent_window) {
+ async function testAutoplayKeyBlacklist() {
let element = document.createElement("video");
element.preload = "auto";
element.src = "short.mp4";
diff --git a/dom/media/autoplay/test/mochitest/file_autoplay_policy_play_before_loadedmetadata.html b/dom/media/autoplay/test/mochitest/file_autoplay_policy_play_before_loadedmetadata.html
index 3594d0f236..dd358e6dc1 100644
--- a/dom/media/autoplay/test/mochitest/file_autoplay_policy_play_before_loadedmetadata.html
+++ b/dom/media/autoplay/test/mochitest/file_autoplay_policy_play_before_loadedmetadata.html
@@ -22,7 +22,7 @@
window.is = window.opener.is;
window.info = window.opener.info;
- async function testPlayBeforeLoadedMetata(testCase, parent_window) {
+ async function testPlayBeforeLoadedMetata(testCase) {
info("testPlayBeforeLoadedMetata: " + testCase.resource);
let element = document.createElement("video");
diff --git a/dom/media/autoplay/test/mochitest/file_autoplay_policy_unmute_pauses.html b/dom/media/autoplay/test/mochitest/file_autoplay_policy_unmute_pauses.html
index 125ee156b6..f3b4e7da4d 100644
--- a/dom/media/autoplay/test/mochitest/file_autoplay_policy_unmute_pauses.html
+++ b/dom/media/autoplay/test/mochitest/file_autoplay_policy_unmute_pauses.html
@@ -22,8 +22,8 @@
window.is = window.opener.is;
window.info = window.opener.info;
- function testAutoplayUnmutePauses(testCase, parent_window) {
- return new Promise(function (resolve, reject) {
+ function testAutoplayUnmutePauses(testCase) {
+ return new Promise(function (resolve) {
info("testAutoplayUnmutePauses: " + testCase.property);