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

Unified Diff: LayoutTests/fast/js/function-length.html

Issue 296403007: Set correct Function.length on overloaded methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed nits Created 6 years, 6 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
« no previous file with comments | « no previous file | LayoutTests/fast/js/function-length-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/js/function-length.html
diff --git a/LayoutTests/fast/js/function-length.html b/LayoutTests/fast/js/function-length.html
index 897f1a4bc85a1d365ad0c877f555fcdd45523f3c..9109b37856d9cf102ccd2ea12d8c747586b02dda 100644
--- a/LayoutTests/fast/js/function-length.html
+++ b/LayoutTests/fast/js/function-length.html
@@ -23,6 +23,13 @@ shouldBe('window.history.length', '1');
shouldBe('window.URL.createObjectURL.length', '1');
shouldBe('window.Storage.prototype.key.length', '1');
+// One required and one optional argument
+shouldBe('document.importNode.length', '1');
+// One variadic argument
+shouldBe('document.write.length', '0');
+// Overloaded method with varying number of arguments
+shouldBe('CanvasRenderingContext2D.prototype.drawImage.length', '3');
+
shouldBe('Array.prototype.concat.length', '1');
shouldBe('Array.prototype.join.length', '1');
shouldBe('Array.prototype.push.length', '1');
« no previous file with comments | « no previous file | LayoutTests/fast/js/function-length-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698