diff options
Diffstat (limited to 'browser/components/preferences/tests/siteData')
3 files changed, 3 insertions, 3 deletions
diff --git a/browser/components/preferences/tests/siteData/browser_clearSiteData.js b/browser/components/preferences/tests/siteData/browser_clearSiteData.js index ad1d27bfe2..7ae1fda453 100644 --- a/browser/components/preferences/tests/siteData/browser_clearSiteData.js +++ b/browser/components/preferences/tests/siteData/browser_clearSiteData.js @@ -137,7 +137,7 @@ async function testClearData(clearSiteData, clearCache) { let clearButton = dialogWin.document .querySelector("dialog") .getButton("accept"); - if (!clearSiteData && !clearCache) { + if (!clearSiteData && !clearCache && useOldClearHistoryDialog) { // Simulate user input on one of the checkboxes to trigger the event listener for // disabling the clearButton. clearCacheCheckbox.doCommand(); diff --git a/browser/components/preferences/tests/siteData/head.js b/browser/components/preferences/tests/siteData/head.js index 2b8a9984a6..6385013a52 100644 --- a/browser/components/preferences/tests/siteData/head.js +++ b/browser/components/preferences/tests/siteData/head.js @@ -52,7 +52,7 @@ function is_element_hidden(aElement, aMsg) { } function promiseLoadSubDialog(aURL) { - return new Promise((resolve, reject) => { + return new Promise(resolve => { content.gSubDialog._dialogStack.addEventListener( "dialogopen", function dialogopen(aEvent) { diff --git a/browser/components/preferences/tests/siteData/service_worker_test.html b/browser/components/preferences/tests/siteData/service_worker_test.html index 56f5173481..710b61090f 100644 --- a/browser/components/preferences/tests/siteData/service_worker_test.html +++ b/browser/components/preferences/tests/siteData/service_worker_test.html @@ -13,7 +13,7 @@ <h1>Service Worker Test</h1> <script type="text/javascript"> navigator.serviceWorker.register("service_worker_test.js") - .then(regis => document.body.setAttribute("data-test-service-worker-registered", "true")); + .then(() => document.body.setAttribute("data-test-service-worker-registered", "true")); </script> </body> </html> |