commit 01bb21a848cf787895d0ab2d17a2ca8b980d15f7
parent 0f05ae33567732ceda0ec74c59a978ef03252ad7
Author: Emilio Cobos Álvarez <emilio@crisal.io>
Date: Wed, 7 Jan 2026 00:56:46 +0100
Bug 2008041 - Fix browser_help_panel_cloning.js.
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/browser/components/customizableui/test/browser_help_panel_cloning.js b/browser/components/customizableui/test/browser_help_panel_cloning.js
@@ -78,6 +78,13 @@ add_task(async function test_help_panel_cloning() {
appMenuHelpItem.getAttribute("oncommand"),
"oncommand was properly cloned."
);
+ } else if (attr == "command") {
+ // We really clone the property, so the attribute value might differ (e.g. "true" vs "").
+ Assert.equal(
+ helpMenuPopupItem.hasAttribute(attr),
+ appMenuHelpItem.hasAttribute(attr),
+ `${attr} property was cloned.`
+ );
} else {
Assert.equal(
helpMenuPopupItem.getAttribute(attr),