Bug 1871023 - Trivially fix some orange.

MANUAL PUSH: Trivial orange fix CLOSED TREE
This commit is contained in:
Emilio Cobos Álvarez 2023-12-21 11:16:20 +01:00
parent 9bbc53b438
commit 06608371e0
2 changed files with 5 additions and 13 deletions

View File

@ -6,7 +6,7 @@
/* import-globals-from ../../mochitest/role.js */
loadScripts({ name: "role.js", dir: MOCHITESTS_DIR });
// Verify we recieve hide and show notifications when the chrome
// Verify we receive hide and show notifications when the chrome
// XUL alert is closed or opened. Mac expects both notifications to
// properly communicate live region changes.
async function runTests(browser) {
@ -31,13 +31,9 @@ async function runTests(browser) {
ok(isAccessible(PopupNotifications.panel), "Popup panel is accessible");
testAccessibleTree(PopupNotifications.panel, {
ALERT: [
{
TEXT_CONTAINER: [
{ LABEL: [{ TEXT_LEAF: [] }] },
{ PUSHBUTTON: [] },
{ PUSHBUTTON: [] },
],
},
{ LABEL: [{ TEXT_LEAF: [] }] },
{ PUSHBUTTON: [] },
{ PUSHBUTTON: [] },
],
});
// Verify the popup panel is associated with the chrome window.

View File

@ -45,11 +45,7 @@ add_task(async function testPopupBorderRadius() {
let arrowContent = panel.panelContent;
let panelStyle = getComputedStyle(arrowContent);
is(
panelStyle.overflow,
"hidden",
"overflow is not hidden, thus it doesn't clip"
);
is(panelStyle.overflow, "clip", "overflow is clipped");
let stack = browser.parentNode;
let viewNode = stack.parentNode === panel ? browser : stack.parentNode;