Commit b0ef5246 authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Move test to web-components-v0-only

This test is a V0 only test.

This was suggested by a comment in [1].

[1] https://chromium-review.googlesource.com/c/chromium/src/+/2208386/3/third_party/blink/web_tests/fast/dom/shadow/disconnected-distribution-cycle.html#15

Bug: 937746
Change-Id: I9fdf4620f36d6f44d8451d7529d2d605f52453dd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2225824Reviewed-by: default avatarStephen Chenney <schenney@chromium.org>
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#774319}
parent 346e9e48
CONSOLE WARNING: line 15: Element.createShadowRoot is deprecated and will be removed in M80, around February 2020. Please use Element.attachShadow instead. See https://www.chromestatus.com/features/4507242028072960 and https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade for more details.
Distributions from disconnected subtrees should be cleared when inserted again to avoid cycles.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
......
......@@ -12,14 +12,14 @@
// Put "a" it into a disconnected element with a shadow root with an insertion point.
var host = document.createElement("div");
var content = host.attachShadow({mode: 'open'}).appendChild(document.createElement("content"));
var content = host.createShadowRoot().appendChild(document.createElement("content"));
host.appendChild(a);
// Cause a distribution of "a" into the disconnected host.
a.getDestinationInsertionPoints();
// Distribute "a" into a host in the page.
b.attachShadow({mode: 'open'}).appendChild(document.createElement("content"));
b.createShadowRoot().appendChild(document.createElement("content"));
b.appendChild(a);
// Cause an attach of all elements in the page.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment