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

Unified Diff: LayoutTests/fast/dom/Element/client-rect-list-argument.html

Issue 24203002: Improve generated "Not enough arguments." TypeError exceptions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: NeedsRebaseline Created 7 years, 3 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/client-rect-list-argument.html
diff --git a/LayoutTests/fast/dom/Element/client-rect-list-argument.html b/LayoutTests/fast/dom/Element/client-rect-list-argument.html
index 9447ff0ea065f448768bd10a6e99016e5b8b380b..c9f8e1338d302aafc5b7c19b10e7837e0b4d9e50 100644
--- a/LayoutTests/fast/dom/Element/client-rect-list-argument.html
+++ b/LayoutTests/fast/dom/Element/client-rect-list-argument.html
@@ -30,7 +30,7 @@ shouldBe("clientRects.length", "3");
shouldNotBe("clientRects.item(0)", "null");
shouldNotBe("clientRects.item(1)", "null");
shouldNotBe("clientRects.item(2)", "null");
-shouldThrow("clientRects.item()", "'TypeError: Not enough arguments'");
+shouldThrow("clientRects.item()", '"TypeError: Failed to execute \'item\' on \'ClientRectList\': 1 argument required, but only 0 present."');
shouldBe("clientRects.item(-4294967294)", "clientRects.item(2)"); // -4294967294 wraps to 2.
// According to the specification, we should throw an IndexSizeError exception when index is

Powered by Google App Engine
This is Rietveld 408576698