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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/nodes/attributes.html

Issue 1988983002: Move the dom directory from web-platform-tests/ to wpt/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <meta charset=utf-8> 2 <meta charset=utf-8>
3 <title>Attributes tests</title> 3 <title>Attributes tests</title>
4 <link rel=help href="https://dom.spec.whatwg.org/#attr"> 4 <link rel=help href="https://dom.spec.whatwg.org/#attr">
5 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattribute"> 5 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattribute">
6 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattributens"> 6 <link rel=help href="https://dom.spec.whatwg.org/#dom-element-setattributens">
7 <script src="../../../../resources/testharness.js"></script> 7 <script src="../../../../resources/testharness.js"></script>
8 <script src="../../../../resources/testharnessreport.js"></script> 8 <script src="../../../../resources/testharnessreport.js"></script>
9 <script src="attributes.js"></script> 9 <script src="attributes.js"></script>
10 <script src="productions.js"></script> 10 <script src="productions.js"></script>
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after
720 el.setAttributeNS("", "I", ""); 720 el.setAttributeNS("", "I", "");
721 el.setAttributeNS("", "j", ""); 721 el.setAttributeNS("", "j", "");
722 assert_array_equals(Object.getOwnPropertyNames(el.attributes), 722 assert_array_equals(Object.getOwnPropertyNames(el.attributes),
723 ["0", "1", "2", "3", "4", "5", "A:B", "c:D", "e:F", "g:h", "I", "j"]) 723 ["0", "1", "2", "3", "4", "5", "A:B", "c:D", "e:F", "g:h", "I", "j"])
724 for (var propName of Object.getOwnPropertyNames(el.attributes)) { 724 for (var propName of Object.getOwnPropertyNames(el.attributes)) {
725 assert_true(el.attributes[propName] instanceof Attr, 725 assert_true(el.attributes[propName] instanceof Attr,
726 "el.attributes has an Attr for property name " + propName); 726 "el.attributes has an Attr for property name " + propName);
727 } 727 }
728 }, "Own property names should include all qualified names for an HTML element in a non-HTML document"); 728 }, "Own property names should include all qualified names for an HTML element in a non-HTML document");
729 </script> 729 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698