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

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

Issue 98543009: Make arguments to Element methods non-optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix failing tests Created 7 years 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..3787a5cdce60f28e1fac30a9a0be3c1606ecb89f
--- /dev/null
+++ b/LayoutTests/fast/dom/Element/missing-arguments-expected.txt
@@ -0,0 +1,21 @@
+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': 2 arguments required, but only 0 present..
+PASS element.setAttribute('example') threw exception TypeError: Failed to execute 'setAttribute' on 'Element': 2 arguments required, but only 1 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