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

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

Issue 2408083002: Revert of Import wpt@357b83b809e3cbc7a1805e7c3ca108a7980d782f (Closed)
Patch Set: 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <title>Custom Elements: CEReactions on ChildNode interface</title> 4 <title>Custom Elements: CEReactions on ChildNode interface</title>
5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org"> 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"> 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"> 7 <meta name="help" content="https://dom.spec.whatwg.org/#parentnode">
8 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script> 9 <script src="/resources/testharnessreport.js"></script>
10 <script src="../resources/custom-elements-helpers.js"></script>
11 <script src="./resources/reactions.js"></script> 10 <script src="./resources/reactions.js"></script>
12 </head> 11 </head>
13 <body> 12 <body>
14 <div id="log"></div> 13 <div id="log"></div>
15 <script> 14 <script>
16 15
17 testNodeConnector(function (newContainer, customElement) { 16 testNodeConnector(function (newContainer, customElement) {
18 newContainer.firstChild.before(customElement); 17 newContainer.firstChild.before(customElement);
19 }, 'before on ChildNode'); 18 }, 'before on ChildNode');
20 19
21 testNodeConnector(function (newContainer, customElement) { 20 testNodeConnector(function (newContainer, customElement) {
22 newContainer.firstChild.after(customElement); 21 newContainer.firstChild.after(customElement);
23 }, 'after on ChildNode'); 22 }, 'after on ChildNode');
24 23
25 testNodeConnector(function (newContainer, customElement) { 24 testNodeConnector(function (newContainer, customElement) {
26 newContainer.firstChild.replaceWith(customElement); 25 newContainer.firstChild.replaceWith(customElement);
27 }, 'replaceWith on ChildNode'); 26 }, 'replaceWith on ChildNode');
28 27
29 testNodeDisconnector(function (customElement) { 28 testNodeDisconnector(function (customElement) {
30 customElement.remove(); 29 customElement.remove();
31 }, 'replaceWith on ChildNode'); 30 }, 'replaceWith on ChildNode');
32 31
33 </script> 32 </script>
34 </body> 33 </body>
35 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698