Files
sousa-gecko/testing/web-platform/tests/custom-elements/historical.html
T
Anne van Kesteren f469f5c829 Bug 1959120 [wpt PR 51889] - Update obsolete Scoped Custom Element Registry tests, a=testonly
Automatic update from web-platform-tests
Update obsolete Scoped Custom Element Registry tests

Update tests that don't appear to duplicate the "Revamped" tests to
match the new API surface.

The remainder are removed.

Historical tests are added at the same time for features we decided not
to standardize. Also remove some historical tests that have coverage
elsewhere.
--

wpt-commits: 36452efd48f9faca7a241ff4c82a7b378f891eff
wpt-pr: 51889
2025-04-10 15:20:18 +00:00

23 lines
838 B
HTML

<!doctype html>
<title>Custom Elements historical features</title>
<script src=/resources/testharness.js></script>
<script src=/resources/testharnessreport.js></script>
<script>
test(() => {
assert_false('registerElement' in document);
}, 'document.registerElement should not exist');
test(() => {
const dummy = document.createElement("div");
const shadowRoot = dummy.attachShadow({ mode: "closed" });
assert_equals(shadowRoot.importNode, undefined);
assert_equals(shadowRoot.createElement, undefined);
assert_equals(shadowRoot.createElementNS, undefined);
}, "ShadowRoot doesn't have importNode or createElement[NS]");
test(() => {
const dummy = document.createElement("div");
dummy.attachShadow({ mode: "closed", get registry() { throw "FAIL" } });
}, "attachShadow() does not recognize a registry member");
</script>