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

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/dom/lists/DOMTokenList-coverage-for-attributes.html

Issue 2015623004: Import wpt@ed94c51f3dfaa5ff4c9c311add1a560408059c51 (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>DOMTokenList coverage for attributes</title> 3 <title>DOMTokenList coverage for attributes</title>
4 <script src="../../../../resources/testharness.js"></script> 4 <script src="../../../../resources/testharness.js"></script>
5 <script src="../../../../resources/testharnessreport.js"></script> 5 <script src="../../../../resources/testharnessreport.js"></script>
6 <div id=log></div> 6 <div id=log></div>
7 <script> 7 <script>
8 "use strict"; 8 "use strict";
9 9
10 var pairs = [ 10 var pairs = [
11 // Defined in DOM 11 // Defined in DOM
12 {attr: "classList", sup: ["anyElement"]}, 12 {attr: "classList", sup: ["anyElement"]},
13 // Defined in HTML 13 // Defined in HTML
14 {attr: "dropzone", sup: ["anyHTMLElement"]}, 14 {attr: "dropzone", sup: ["anyHTMLElement"]},
15 {attr: "headers", sup: ["td", "th"]},
16 {attr: "htmlFor", sup: ["output"]}, 15 {attr: "htmlFor", sup: ["output"]},
17 {attr: "ping", sup: ["a", "area"]},
18 {attr: "relList", sup: ["a", "area", "link"]}, 16 {attr: "relList", sup: ["a", "area", "link"]},
19 {attr: "sandbox", sup: ["iframe"]}, 17 {attr: "sandbox", sup: ["iframe"]},
20 {attr: "sizes", sup: ["link"]} 18 {attr: "sizes", sup: ["link"]}
21 ]; 19 ];
22 var namespaces = [ 20 var namespaces = [
23 "http://www.w3.org/1999/xhtml", 21 "http://www.w3.org/1999/xhtml",
24 "http://www.w3.org/2000/svg", 22 "http://www.w3.org/2000/svg",
25 "http://www.w3.org/1998/Math/MathML", 23 "http://www.w3.org/1998/Math/MathML",
26 "http://example.com/", 24 "http://example.com/",
27 "" 25 ""
(...skipping 16 matching lines...) Expand all
44 else { 42 else {
45 test(function() { 43 test(function() {
46 assert_equals(new_el[pair.attr], undefined); 44 assert_equals(new_el[pair.attr], undefined);
47 }, new_el.localName + "." + pair.attr + " in " + new_el.namespaceURI + " namespace should be undefined."); 45 }, new_el.localName + "." + pair.attr + " in " + new_el.namespaceURI + " namespace should be undefined.");
48 } 46 }
49 }); 47 });
50 }); 48 });
51 }); 49 });
52 50
53 </script> 51 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698