diff options
Diffstat (limited to 'test-suite/unit/automation-target.test.mjs')
| -rw-r--r-- | test-suite/unit/automation-target.test.mjs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test-suite/unit/automation-target.test.mjs b/test-suite/unit/automation-target.test.mjs index 73fbc77..1ac3fd6 100644 --- a/test-suite/unit/automation-target.test.mjs +++ b/test-suite/unit/automation-target.test.mjs @@ -9,6 +9,10 @@ // Like csp-eval.test.mjs we load the *real* worker into a vm sandbox with a stateful chrome.* // mock, then exercise the real helpers and the real dispatch() paths. Chrome state (tabs/windows/ // storage.session) can be shared across two sandbox loads to simulate a service-worker restart. +// +// Its chrome.windows mock has no getLastFocused, so the worker takes the path for a browser with no +// window to share and gives each target a window of its own. Placement in the user's window is +// covered by user-window.test.mjs. import vm from "node:vm"; import fs from "node:fs"; |
