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

Unified Diff: LayoutTests/fast/dom/Element/missing-arguments-expected.txt

Issue 133683004: Make arguments to Element methods non-optional (except setAttribute) (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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/Element/missing-arguments-expected.txt
diff --git a/LayoutTests/fast/dom/Element/missing-arguments-expected.txt b/LayoutTests/fast/dom/Element/missing-arguments-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..efa445950de8a0d5b34251138a1da3578e9c0906
--- /dev/null
+++ b/LayoutTests/fast/dom/Element/missing-arguments-expected.txt
@@ -0,0 +1,20 @@
+PASS element.getAttribute() threw exception TypeError: Failed to execute 'getAttribute' on 'Element': 1 argument required, but only 0 present..
+PASS element.getAttributeNS() threw exception TypeError: Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only 0 present..
+PASS element.getAttributeNS('http://example.com/') threw exception TypeError: Failed to execute 'getAttributeNS' on 'Element': 2 arguments required, but only 1 present..
+PASS element.getElementsByClassName() threw exception TypeError: Failed to execute 'getElementsByClassName' on 'Element': 1 argument required, but only 0 present..
+PASS element.getElementsByTagName() threw exception TypeError: Failed to execute 'getElementsByTagName' on 'Element': 1 argument required, but only 0 present..
+PASS element.getElementsByTagNameNS() threw exception TypeError: Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only 0 present..
+PASS element.getElementsByTagNameNS('http://example.com/') threw exception TypeError: Failed to execute 'getElementsByTagNameNS' on 'Element': 2 arguments required, but only 1 present..
+PASS element.hasAttributeNS() threw exception TypeError: Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only 0 present..
+PASS element.hasAttributeNS('http://example.com/') threw exception TypeError: Failed to execute 'hasAttributeNS' on 'Element': 2 arguments required, but only 1 present..
+PASS element.removeAttribute() threw exception TypeError: Failed to execute 'removeAttribute' on 'Element': 1 argument required, but only 0 present..
+PASS element.removeAttributeNS() threw exception TypeError: Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only 0 present..
+PASS element.removeAttributeNS('http://example.com/') threw exception TypeError: Failed to execute 'removeAttributeNS' on 'Element': 2 arguments required, but only 1 present..
+PASS element.setAttribute() threw exception TypeError: Failed to execute 'setAttribute' on 'Element': 1 argument required, but only 0 present..
+PASS element.setAttributeNS() threw exception TypeError: Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only 0 present..
+PASS element.setAttributeNS('http://example.com/') threw exception TypeError: Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only 1 present..
+PASS element.setAttributeNS('http://example.com/', 'example') threw exception TypeError: Failed to execute 'setAttributeNS' on 'Element': 3 arguments required, but only 2 present..
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698