← Về thư mục
frontend/src/features/chrome/modal.test.ts
- FakeClassList · class · L11-L40 — class FakeClassList
- constructor · method · L13-L18 — constructor( private readonly owner: FakeEl, initial?: string, )
- add · method · L19-L22 — add(...names: string[]): void
- remove · method · L23-L26 — remove(...names: string[]): void
- contains · method · L27-L29 — contains(name: string): boolean
- toggle · method · L30-L36 — toggle(name: string, force?: boolean): boolean
- value · method · L37-L39 — get value(): string
- FakeEl · class · L42-L178 — class FakeEl
- constructor · method · L59-L64 — constructor(tag: string, doc: FakeDoc)
- className · method · L66-L68 — get className(): string
- className · method · L69-L72 — set className(value: string)
- textContent · method · L74-L77 — get textContent(): string
- textContent · method · L78-L81 — set textContent(value: string)
- innerHTML · method · L83-L85 — get innerHTML(): string
- innerHTML · method · L86-L100 — set innerHTML(value: string)
- syncHidden · method · L102-L104 — syncHidden(): void
- hasAttribute · method · L106-L109 — hasAttribute(name: string): boolean
- setAttribute · method · L110-L124 — setAttribute(name: string, value: string): void
- getAttribute · method · L125-L128 — getAttribute(name: string): string | null
- removeAttribute · method · L129-L132 — removeAttribute(name: string): void
- appendChild · method · L134-L146 — appendChild(child: FakeEl | { data?: string; textContent?: string }): FakeEl
- remove · method · L148-L152 — remove(): void
- contains · method · L154-L158 — contains(node: FakeEl | null): boolean
- focus · method · L160-L162 — focus(_opts?: { preventScroll?: boolean }): void
- addEventListener · method · L164-L168 — addEventListener(type: string, fn: (e: unknown) => void): void
- querySelector · method · L170-L172 — querySelector(sel: string): FakeEl | null
- querySelectorAll · method · L173-L177 — querySelectorAll(sel: string): FakeEl[]
- elText · function · L180-L184 — function elText(doc: FakeDoc): FakeEl
- matchSel · function · L186-L198 — function matchSel(node: FakeEl, sel: string): boolean
- isFocusable · function · L200-L212 — function isFocusable(node: FakeEl): boolean
- walkFind · function · L214-L221 — function walkFind(root: FakeEl, sel: string): FakeEl | null
- walkCollect · function · L223-L226 — function walkCollect(root: FakeEl, sel: string, out: FakeEl[], skipRoot: boolean): void
- FakeDoc · class · L228-L274 — class FakeDoc
- constructor · method · L234-L239 — constructor()
- registerId · method · L241-L243 — registerId(id: string, el: FakeEl): void
- getElementById · method · L245-L247 — getElementById(id: string): FakeEl | null
- createElement · method · L249-L251 — createElement(tag: string): FakeEl
- createTextNode · method · L253-L257 — createTextNode(data: string): FakeEl
- querySelector · method · L259-L262 — querySelector(sel: string): FakeEl | null
- querySelectorAll · method · L264-L268 — querySelectorAll(sel: string): FakeEl[]
- contains · method · L270-L273 — contains(node: FakeEl | null): boolean
- makeModal · function · L276-L301 — function makeModal(doc: FakeDoc, id: string, opts?: { extraButtons?: number; autofocus?: boolean }): FakeEl
- ModalApi · type · L303-L303 — type ModalApi = typeof import("./modal");
- flush · function · L334-L337 — function flush(): void
- key · function · L339-L341 — function key(name: string, shift = false): { key: string; shiftKey: boolean; preventDefault: ReturnType }