зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1580554 - Move common report test cases into head_abuse_report.js and run them on sub-frame and dialog mode. r=mstriemer
Move test helpers and the common abuse report test cases (the ones that should run in sub-frame and dialog window mode) into an head_abuse_report.js support file, then run all the common test cases from browser_html_abuse_report.js (in sub-frame mode) and browser_html_abuse_report_dialog.js (in dialog window mode). Depends on D45571 Differential Revision: https://phabricator.services.mozilla.com/D46019 --HG-- rename : toolkit/mozapps/extensions/test/browser/browser_html_abuse_report.js => toolkit/mozapps/extensions/test/browser/head_abuse_report.js extra : moz-landing-system : lando
This commit is contained in:
Родитель
ac81c98b57
Коммит
b6e9ea77e6
|
@ -69,6 +69,11 @@ skip-if = true # Bug 1449071 - Frequent failures
|
|||
[browser_gmpProvider.js]
|
||||
[browser_history_navigation.js]
|
||||
[browser_html_abuse_report.js]
|
||||
support-files =
|
||||
head_abuse_report.js
|
||||
[browser_html_abuse_report_dialog.js]
|
||||
support-files =
|
||||
head_abuse_report.js
|
||||
[browser_html_detail_view.js]
|
||||
[browser_html_discover_view.js]
|
||||
[browser_html_discover_view_clientid.js]
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,18 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
/* eslint max-len: ["error", 80] */
|
||||
|
||||
loadTestSubscript("head_abuse_report.js");
|
||||
|
||||
add_task(async function setup() {
|
||||
await AbuseReportTestUtils.setup();
|
||||
|
||||
// Run abuse reports tests in the "dialog window" mode.
|
||||
await SpecialPowers.pushPrefEnv({
|
||||
set: [["extensions.abuseReport.openDialog", true]],
|
||||
});
|
||||
});
|
||||
|
||||
// Add all the test tasks shared with browser_html_abuse_report.js.
|
||||
addCommonAbuseReportTestTasks();
|
|
@ -1723,3 +1723,7 @@ async function testUndoPendingUninstall(addonList, addon) {
|
|||
"The addon pending uninstall cancelled"
|
||||
);
|
||||
}
|
||||
|
||||
function loadTestSubscript(filePath) {
|
||||
Services.scriptloader.loadSubScript(new URL(filePath, gTestPath).href, this);
|
||||
}
|
||||
|
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
Загрузка…
Ссылка в новой задаче