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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/custom-elements/reactions/Element.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 Node interface</title>
5 <meta name="author" title="Ryosuke Niwa" href="mailto:rniwa@webkit.org">
6 <meta name="assert" content="id, className, slot, setAttribute, setAttributeNS, removeAttribute, removeAttributeNS, setAttributeNode, setAttributeNodeNS, remove AttributeNode, and insertAdjacentElement of Element interface must have CEReacti ons">
7 <meta name="help" content="https://dom.spec.whatwg.org/#element">
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 testReflectAttribute('id', 'id', 'foo', 'bar', 'id on Element');
17 testReflectAttribute('className', 'class', 'foo', 'bar', 'className on Element') ;
18 testReflectAttribute('slot', 'slot', 'foo', 'bar', 'slot on Element');
19
20 testAttributeAdder(function (element, name, value) {
21 element.setAttribute(name, value);
22 }, 'setAttribute on Element');
23
24 testAttributeAdder(function (element, name, value) {
25 element.setAttributeNS(null, name, value);
26 }, 'setAttributeNS on Element');
27
28 testAttributeRemover(function (element, name, value) {
29 element.removeAttribute(name, value);
30 }, 'removeAttribute on Element');
31
32 testAttributeRemover(function (element, name, value) {
33 element.removeAttributeNS(null, name, value);
34 }, 'removeAttributeNS on Element');
35
36 testAttributeAdder(function (element, name, value) {
37 var attr = document.createAttribute(name);
38 attr.value = value;
39 element.setAttributeNode(attr);
40 }, 'setAttributeNode on Element');
41
42 testAttributeAdder(function (element, name, value) {
43 var attr = document.createAttribute(name);
44 attr.value = value;
45 element.setAttributeNodeNS(attr);
46 }, 'setAttributeNodeNS on Element');
47
48 testAttributeRemover(function (element, name, value) {
49 var attr = element.getAttributeNode(name);
50 if (attr)
51 element.removeAttributeNode(element.getAttributeNode(name));
52 }, 'removeAttributeNode on Element');
53
54 testNodeConnector(function (newContainer, element) {
55 newContainer.insertAdjacentElement('afterBegin', element);
56 });
57
58 </script>
59 </body>
60 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698