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

Unified Diff: LayoutTests/fast/dom/HTMLSelectElement/select-element-item-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/HTMLSelectElement/select-element-item-argument.html
diff --git a/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument.html b/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument.html
index bea24532ddfbb19cf80c2a0710be6e65eb76e025..f34731720440bfea4a801cc1f3306f456ab0c469 100644
--- a/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument.html
+++ b/LayoutTests/fast/dom/HTMLSelectElement/select-element-item-argument.html
@@ -26,7 +26,7 @@ shouldBeEqualToString("select.item(3).value", "d");
shouldBeNull("select.item(4)");
shouldBeNull("select.item(-1)"); // Offset is too large (after wrapping)
shouldBeEqualToString("select.item(-4294967294).value", "c"); // Wraps to 2, which is a valid offset.
-shouldThrow("select.item()", "'TypeError: Not enough arguments'");
+shouldThrow("select.item()", '"TypeError: Failed to execute \'item\' on \'HTMLSelectElement\': 1 argument required, but only 0 present."');
</script>
<script src="../../js/resources/js-test-post.js"></script>

Powered by Google App Engine
This is Rietveld 408576698