Bug 2069131 - Rename most browser/base/content/test browser-chrome directories to match eslint-test-paths conventions. r=frontend-codestyle-reviewers,Gijs

This handles most of the directories, where the changes required do not affect tests outside of the browser/base/content/test directory.

Differential Revision: https://phabricator.services.mozilla.com/D323419
This commit is contained in:
Mark Banner
2026-09-11 15:27:28 +00:00
committed by mbanner@mozilla.com
parent 23f8b955a3
commit a0364d50fd
295 changed files with 120 additions and 152 deletions
+8 -8
View File
@@ -167,18 +167,18 @@ browser/base/content/test/about/dummy_page.html
browser/base/content/test/contextMenu/subtst_contextmenu.html
browser/base/content/test/favicons/datauri-favicon.html
browser/base/content/test/favicons/file_bug970276_popup1.html
browser/base/content/test/fullscreen/open_and_focus_helper.html
browser/base/content/test/browser-fullscreen/open_and_focus_helper.html
browser/base/content/test/general/browser_tab_dragdrop_embed.html
browser/base/content/test/general/dummy_page.html
browser/base/content/test/general/file_documentnavigation_frameset.html
browser/base/content/test/outOfProcess/file_base.html
browser/base/content/test/outOfProcess/file_frame2.html
browser/base/content/test/outOfProcess/file_innerframe.html
browser/base/content/test/pageinfo/svg_image.html
browser/base/content/test/browser-outOfProcess/file_base.html
browser/base/content/test/browser-outOfProcess/file_frame2.html
browser/base/content/test/browser-outOfProcess/file_innerframe.html
browser/base/content/test/browser-pageinfo/svg_image.html
browser/base/content/test/permissions/temporary_permissions_frame.html
browser/base/content/test/permissions/temporary_permissions_subframe.html
browser/base/content/test/plugins/plugin_bug797677.html
browser/base/content/test/sanitize/dummy_page.html
browser/base/content/test/browser-plugins/plugin_bug797677.html
browser/base/content/test/browser-sanitize/dummy_page.html
browser/base/content/test/siteIdentity/dummy_iframe_page.html
browser/base/content/test/siteIdentity/dummy_page.html
browser/base/content/test/siteIdentity/test-mixedcontent-securityerrors.html
@@ -1014,7 +1014,7 @@ browser/app/
browser/branding/**/firefox-branding.js
# Gzipped test file.
browser/base/content/test/general/gZipOfflineChild.html
browser/base/content/test/urlbar/file_blank_but_not_blank.html
browser/components/urlbar/tests/browser/file_blank_but_not_blank.html
# Test files that are really json not js, and don't need to be linted.
browser/components/sessionstore/test/unit/data/sessionstore_valid.js
browser/components/sessionstore/test/unit/data/sessionstore_invalid.js
+20 -20
View File
@@ -14,10 +14,10 @@ with Files("pageinfo/**"):
with Files("test/about/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/alerts/**"):
with Files("test/browser-alerts/**"):
BUG_COMPONENT = ("Toolkit", "Alerts Service")
with Files("test/captivePortal/**"):
with Files("test/browser-captivePortal/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/chrome/**"):
@@ -29,19 +29,19 @@ with Files("test/contextMenu/**"):
with Files("test/forms/**"):
BUG_COMPONENT = ("Core", "Layout: Form Controls")
with Files("test/historySwipeAnimation/**"):
with Files("test/browser-historySwipeAnimation/**"):
BUG_COMPONENT = ("Core", "Widget: Cocoa")
with Files("test/keyboard/**"):
with Files("test/browser-keyboard/**"):
BUG_COMPONENT = ("Firefox", "Keyboard Navigation")
with Files("test/outOfProcess/**"):
with Files("test/browser-outOfProcess/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/pageActions*/**"):
with Files("test/browser-pageActions*/**"):
BUG_COMPONENT = ("Firefox", "Toolbars and Customization")
with Files("test/pageinfo/**"):
with Files("test/browser-pageinfo/**"):
BUG_COMPONENT = ("Firefox", "Page Info Window")
with Files("test/performance/**"):
@@ -53,22 +53,22 @@ with Files("test/performance/browser_appmenu.js"):
with Files("test/permissions/**"):
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("test/plugins/**"):
with Files("test/browser-plugins/**"):
BUG_COMPONENT = ("Core", "Audio/Video: GMP")
with Files("test/popupNotifications/**"):
with Files("test/browser-popupNotifications/**"):
BUG_COMPONENT = ("Toolkit", "PopupNotifications and Notification Bars")
with Files("test/popups/**"):
BUG_COMPONENT = ("Firefox", "Site Permissions")
with Files("test/referrer/**"):
with Files("test/browser-referrer/**"):
BUG_COMPONENT = ("Core", "DOM: Navigation")
with Files("test/sanitize/**"):
with Files("test/browser-sanitize/**"):
BUG_COMPONENT = ("Toolkit", "Data Sanitization")
with Files("test/scroll-to-text-fragment/**"):
with Files("test/browser-scroll-to-text-fragment/**"):
BUG_COMPONENT = ("Core", "DOM: Navigation")
with Files("test/siteIdentity/**"):
@@ -77,7 +77,7 @@ with Files("test/siteIdentity/**"):
with Files("test/sidebar/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/startup/**"):
with Files("test/browser-startup/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/static/**"):
@@ -86,22 +86,22 @@ with Files("test/static/**"):
with Files("test/sync/**"):
BUG_COMPONENT = ("Firefox", "Sync")
with Files("test/tabdialogs/**"):
with Files("test/browser-tabdialogs/**"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
with Files("test/notificationbox/**"):
with Files("test/browser-notificationbox/**"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
with Files("test/tabPrompts/**"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
with Files("test/tabcrashed/**"):
with Files("test/browser-tabcrashed/**"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
with Files("test/touch/**"):
with Files("test/browser-touch/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/utilityOverlay/**"):
with Files("test/browser-utilityOverlay/**"):
BUG_COMPONENT = ("Firefox", "Tabbed Browser")
with Files("test/protectionsUI/**"):
@@ -113,10 +113,10 @@ with Files("test/webextensions/**"):
with Files("test/webrtc/**"):
BUG_COMPONENT = ("Core", "WebRTC")
with Files("test/zoom/**"):
with Files("test/browser-zoom/**"):
BUG_COMPONENT = ("Firefox", "General")
with Files("test/caps/**"):
with Files("test/browser-caps/**"):
BUG_COMPONENT = ("Firefox", "Security")
with Files("blockedSite.xhtml"):
@@ -9,7 +9,7 @@ const { PermissionTestUtils } = ChromeUtils.importESModule(
);
let notificationURL =
"https://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
"https://example.org/browser/browser/base/content/test/browser-alerts/file_dom_notifications.html";
add_task(async function test_notificationClose() {
await addNotificationPermission(notificationURL);
@@ -14,7 +14,7 @@ const ALERT_SERVICE = Cc["@mozilla.org/alerts-service;1"]
.QueryInterface(Ci.nsIAlertsDoNotDisturb);
const PAGE =
"https://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
"https://example.org/browser/browser/base/content/test/browser-alerts/file_dom_notifications.html";
// The amount of time in seconds that we will wait for a notification
// to show up before we decide that it's not coming.
@@ -1,7 +1,7 @@
"use strict";
var notificationURL =
"https://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
"https://example.org/browser/browser/base/content/test/browser-alerts/file_dom_notifications.html";
// BrowserGlue passes "privacy-permissions" to openPreferences when the
// notifications-open-settings observer fires; the Settings Redesign
// LegacyPaneMappings shim routes that to the permissionsData pane.
@@ -6,7 +6,7 @@ const { PermissionTestUtils } = ChromeUtils.importESModule(
var tab;
var notificationURL =
"https://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
"https://example.org/browser/browser/base/content/test/browser-alerts/file_dom_notifications.html";
var alertWindowClosed = false;
var permRemoved = false;
@@ -11,7 +11,7 @@ const { PermissionTestUtils } = ChromeUtils.importESModule(
var tab;
var notification;
var notificationURL =
"https://example.org/browser/browser/base/content/test/alerts/file_dom_notifications.html";
"https://example.org/browser/browser/base/content/test/browser-alerts/file_dom_notifications.html";
var newWindowOpenedFromTab;
add_task(async function test_notificationPreventDefaultAndSwitchTabs() {
@@ -5,7 +5,7 @@ const { HttpServer } = ChromeUtils.importESModule(
);
const PUBLIC_PAGE_URL =
"https://example.com/browser/browser/base/content/test/captivePortal/file_captivePortal_lna.html";
"https://example.com/browser/browser/base/content/test/browser-captivePortal/file_captivePortal_lna.html";
let SERVER_RESPONSE = "";
const CANONICAL_HTML = "<!DOCTYPE html><html><body>hello</body></html>";
let gHttpServer;
@@ -7,9 +7,9 @@ XPCOMUtils.defineLazyServiceGetter(
const CANONICAL_CONTENT = "success";
const CANONICAL_URL =
"https://example.com/browser/browser/base/content/test/captivePortal/canonical.txt";
"https://example.com/browser/browser/base/content/test/browser-captivePortal/canonical.txt";
const CANONICAL_URL_REDIRECTED =
"https://example.com/browser/browser/base/content/test/captivePortal/redirected.txt";
"https://example.com/browser/browser/base/content/test/browser-captivePortal/redirected.txt";
const PORTAL_NOTIFICATION_VALUE = "captive-portal-detected";
const BAD_CERT_PAGE = "https://expired.example.com/";
@@ -15,7 +15,7 @@ const tab1URL = `data:text/html,
</html>`;
const ORIGIN =
"https://example.com/browser/browser/base/content/test/fullscreen/fullscreen_frame.html";
"https://example.com/browser/browser/base/content/test/browser-fullscreen/fullscreen_frame.html";
add_task(async function test_fullscreen_cross_origin() {
async function requestFullscreenThenCloseTab() {
@@ -4,7 +4,7 @@
"use strict";
const ORIGIN =
"https://example.com/browser/browser/base/content/test/fullscreen/fullscreen_frame.html";
"https://example.com/browser/browser/base/content/test/browser-fullscreen/fullscreen_frame.html";
add_task(async function test_fullscreen_cross_origin() {
async function requestFullscreen(aAllow, aExpect) {
@@ -33,7 +33,7 @@ add_task(async function test_keydown_event_reservation_toggling_fullscreen() {
for (const shortcutKey of shortcutKeys) {
const tab = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
"https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"
"https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"
);
await SimpleTest.promiseFocus(tab.linkedBrowser);
@@ -19,7 +19,7 @@ add_task(async function test_shortcut_key_label_in_fullscreen_menu_item() {
const tab = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
"https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"
"https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"
);
await SimpleTest.promiseFocus(tab.linkedBrowser);
@@ -15,7 +15,7 @@ add_task(async function test_fullscreen_display_none() {
let tab = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
"https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"
"https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"
);
let fullScreenEntered = BrowserTestUtils.waitForEvent(
@@ -15,7 +15,7 @@ add_task(async function test_fullscreen_new_window() {
let tab = await BrowserTestUtils.openNewForegroundTab(
gBrowser,
"https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"
"https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"
);
let fullScreenEntered = BrowserTestUtils.waitForEvent(
@@ -4,7 +4,7 @@
"use strict";
const FULLSCREEN_PATH =
"/browser/browser/base/content/test/fullscreen/fullscreen.html";
"/browser/browser/base/content/test/browser-fullscreen/fullscreen.html";
function getWarningDomain(warning) {
let textElem = warning.querySelector(".pointerlockfswarning-domain-text");
@@ -43,7 +43,7 @@ add_task(async function test_fullscreen_display_none() {
</head>
<body id="body">
<iframe
src="https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"
src="https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"
hidden
allowfullscreen></iframe>
</body>
@@ -2,8 +2,8 @@
<html>
<body>
<iframe id="frameAllowed"
src="https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"
src="https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"
allowfullscreen></iframe>
<iframe id="frameDenied" src="https://example.org/browser/browser/base/content/test/fullscreen/fullscreen.html"></iframe>
<iframe id="frameDenied" src="https://example.org/browser/browser/base/content/test/browser-fullscreen/fullscreen.html"></iframe>
</body>
</html>
@@ -1,5 +1,5 @@
const TEST_URL =
"https://example.com/browser/browser/base/content/test/fullscreen/open_and_focus_helper.html";
"https://example.com/browser/browser/base/content/test/browser-fullscreen/open_and_focus_helper.html";
const { DOMFullscreenTestUtils } = ChromeUtils.importESModule(
"resource://testing-common/DOMFullscreenTestUtils.sys.mjs"
@@ -15,7 +15,7 @@ add_task(async function () {
});
await BrowserTestUtils.withNewTab(
"https://example.com/browser/browser/base/content/test/keyboard/file_empty.html",
"https://example.com/browser/browser/base/content/test/browser-keyboard/file_empty.html",
async function (browser) {
await SpecialPowers.spawn(browser, [], () => {
content.document.documentElement.scrollTop; // Flush layout.

Some files were not shown because too many files have changed in this diff Show More