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

Side by Side Diff: LayoutTests/fast/dom/Element/missing-arguments.html

Issue 737133002: Make arguments to some Document and Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase+adapt Created 6 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 var element = document.createElementNS("http://example.com/", "example"); 8 var element = document.createElementNS("http://example.com/", "example");
9 [ 9 [
10 "getAttribute()", 10 "getAttribute()",
11 "getAttributeNS()", 11 "getAttributeNS()",
12 "getAttributeNS('http://example.com/')", 12 "getAttributeNS('http://example.com/')",
13 "getAttributeNode()",
14 "getAttributeNodeNS()",
15 "getAttributeNodeNS('http://www.w3.org/2000/svg')",
13 "getElementsByClassName()", 16 "getElementsByClassName()",
14 "getElementsByTagName()", 17 "getElementsByTagName()",
15 "getElementsByTagNameNS()", 18 "getElementsByTagNameNS()",
16 "getElementsByTagNameNS('http://example.com/')", 19 "getElementsByTagNameNS('http://example.com/')",
17 "hasAttributeNS()", 20 "hasAttributeNS()",
18 "hasAttributeNS('http://example.com/')", 21 "hasAttributeNS('http://example.com/')",
19 "removeAttribute()", 22 "removeAttribute()",
20 "removeAttributeNS()", 23 "removeAttributeNS()",
21 "removeAttributeNS('http://example.com/')", 24 "removeAttributeNS('http://example.com/')",
25 "removeAttributeNode()",
22 "setAttribute()", 26 "setAttribute()",
23 "setAttribute('example')", 27 "setAttribute('example')",
24 "setAttributeNS()", 28 "setAttributeNS()",
25 "setAttributeNS('http://example.com/')", 29 "setAttributeNS('http://example.com/')",
26 "setAttributeNS('http://example.com/', 'example')" 30 "setAttributeNS('http://example.com/', 'example')",
31 "setAttributeNode()",
32 "setAttributeNodeNS()"
27 ].forEach(function(expr) 33 ].forEach(function(expr)
28 { 34 {
29 shouldThrow("element." + expr); 35 shouldThrow("element." + expr);
30 }); 36 });
31 </script> 37 </script>
32 </body> 38 </body>
33 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698