Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1578)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/ChildNode.html

Issue 2376103007: Import wpt@09907a9c4bcee14986431d53e4381384c7c69107 (Closed)
Patch Set: update platform expectations Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Custom Elements: CEReactions on ChildNode interface</title>
5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
6 <meta name="assert" content="before, after, after, replaceWith, and remove of Ch ildNode interface must have CEReactions">
7 <meta name="help" content="https://dom.spec.whatwg.org/#parentnode">
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script src="./resources/reactions.js"></script>
11 </head>
12 <body>
13 <div id="log"></div>
14 <script>
15
16 testNodeConnector(function (newContainer, customElement) {
17 newContainer.firstChild.before(customElement);
18 }, 'before on ChildNode');
19
20 testNodeConnector(function (newContainer, customElement) {
21 newContainer.firstChild.after(customElement);
22 }, 'after on ChildNode');
23
24 testNodeConnector(function (newContainer, customElement) {
25 newContainer.firstChild.replaceWith(customElement);
26 }, 'replaceWith on ChildNode');
27
28 testNodeDisconnector(function (customElement) {
29 customElement.remove();
30 }, 'replaceWith on ChildNode');
31
32 </script>
33 </body>
34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698