diff --git a/spec/tests/test-hyperscript-behavioral.sx b/spec/tests/test-hyperscript-behavioral.sx index 655d464e..0d961f25 100644 --- a/spec/tests/test-hyperscript-behavioral.sx +++ b/spec/tests/test-hyperscript-behavioral.sx @@ -6925,7 +6925,9 @@ ;; ── expressions/symbol (2 tests) ── (defsuite "hs-upstream-expressions/symbol" (deftest "resolves global context properly" - (error "SKIP (untranslated): resolves global context properly")) + (let ((r (eval-hs "document"))) + (assert (hs-ref-eq r (host-global "document")))) + ) (deftest "resolves local context properly" (assert= (eval-hs-locals "foo" (list (list (quote foo) 42))) 42) ) diff --git a/tests/playwright/generate-sx-tests.py b/tests/playwright/generate-sx-tests.py index e0a2684b..d7c03cba 100644 --- a/tests/playwright/generate-sx-tests.py +++ b/tests/playwright/generate-sx-tests.py @@ -326,6 +326,11 @@ MANUAL_TEST_BODIES = { ' (list (list (quote record) record)))', ' "
John Connor
"))', ], + # symbol: document resolves to the global document object (reference equality) + "resolves global context properly": [ + ' (let ((r (eval-hs "document")))', + ' (assert (hs-ref-eq r (host-global "document"))))', + ], # asExpression: custom conversions — set/clear via hs-set-conversion! + hs-add-dynamic-converter! "can accept custom conversions": [ ' (do',