From 2bc045879d1126618be0905423ed48010b49bde1 Mon Sep 17 00:00:00 2001 From: Burak Basbug Date: Wed, 20 Dec 2023 23:19:56 +0100 Subject: [PATCH] fix: add document.scripts & tests --- src/lib/web-worker/worker-document.ts | 6 ++++++ tests/platform/window/index.html | 16 ++++++++++++++++ tests/platform/window/window.spec.ts | 3 +++ 3 files changed, 25 insertions(+) diff --git a/src/lib/web-worker/worker-document.ts b/src/lib/web-worker/worker-document.ts index 6db5a18f..f05d4414 100644 --- a/src/lib/web-worker/worker-document.ts +++ b/src/lib/web-worker/worker-document.ts @@ -175,6 +175,12 @@ export const patchDocument = ( }, }, + scripts: { + get() { + return getter(this, ['scripts']); + }, + }, + implementation: { get() { return { diff --git a/tests/platform/window/index.html b/tests/platform/window/index.html index 52238eef..0609dbb4 100644 --- a/tests/platform/window/index.html +++ b/tests/platform/window/index.html @@ -769,6 +769,22 @@

Window

+
  • + Scripts + + +
  • +