From 644dbe251be45ed8e83ebe9e95b023ba6f7cdd34 Mon Sep 17 00:00:00 2001 From: Cesar Gonzalez Date: Tue, 11 Jun 2024 13:35:19 -0500 Subject: [PATCH] [PM-5189] Implementing jest tests for AutofillInlineMenuContentService --- .../menu-container/autofill-inline-menu-container.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts b/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts index 54d1472a478..fafc23f9258 100644 --- a/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts +++ b/apps/browser/src/autofill/overlay/inline-menu/pages/menu-container/autofill-inline-menu-container.ts @@ -9,12 +9,12 @@ import { } from "../../abstractions/autofill-inline-menu-container"; export class AutofillInlineMenuContainer { - private setElementStyles = setElementStyles; - private extensionOriginsSet: Set; + private readonly setElementStyles = setElementStyles; + private readonly extensionOriginsSet: Set; private port: chrome.runtime.Port | null = null; private portName: string; private inlineMenuPageIframe: HTMLIFrameElement; - private iframeStyles: Partial = { + private readonly iframeStyles: Partial = { all: "initial", position: "fixed", top: "0", @@ -32,14 +32,14 @@ export class AutofillInlineMenuContainer { padding: "0", colorScheme: "normal", }; - private defaultIframeAttributes: Record = { + private readonly defaultIframeAttributes: Record = { src: "", title: "", sandbox: "allow-scripts", allowtransparency: "true", tabIndex: "-1", }; - private windowMessageHandlers: AutofillInlineMenuContainerWindowMessageHandlers = { + private readonly windowMessageHandlers: AutofillInlineMenuContainerWindowMessageHandlers = { initAutofillInlineMenuButton: (message) => this.handleInitInlineMenuIframe(message), initAutofillInlineMenuList: (message) => this.handleInitInlineMenuIframe(message), };