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

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

Issue 130193003: Make the second argument to Element.setAttribute non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/missing-arguments-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "getElementsByClassName()", 13 "getElementsByClassName()",
14 "getElementsByTagName()", 14 "getElementsByTagName()",
15 "getElementsByTagNameNS()", 15 "getElementsByTagNameNS()",
16 "getElementsByTagNameNS('http://example.com/')", 16 "getElementsByTagNameNS('http://example.com/')",
17 "hasAttributeNS()", 17 "hasAttributeNS()",
18 "hasAttributeNS('http://example.com/')", 18 "hasAttributeNS('http://example.com/')",
19 "removeAttribute()", 19 "removeAttribute()",
20 "removeAttributeNS()", 20 "removeAttributeNS()",
21 "removeAttributeNS('http://example.com/')", 21 "removeAttributeNS('http://example.com/')",
22 "setAttribute()", 22 "setAttribute()",
23 "setAttribute('example')",
23 "setAttributeNS()", 24 "setAttributeNS()",
24 "setAttributeNS('http://example.com/')", 25 "setAttributeNS('http://example.com/')",
25 "setAttributeNS('http://example.com/', 'example')" 26 "setAttributeNS('http://example.com/', 'example')"
26 ].forEach(function(expr) 27 ].forEach(function(expr)
27 { 28 {
28 shouldThrow("element." + expr); 29 shouldThrow("element." + expr);
29 }); 30 });
30 </script> 31 </script>
31 </body> 32 </body>
32 </html> 33 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/Element/missing-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698