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

Unified Diff: LayoutTests/fast/dom/nodelist-item-parameter.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/nodelist-item-parameter.html
diff --git a/LayoutTests/fast/dom/nodelist-item-parameter.html b/LayoutTests/fast/dom/nodelist-item-parameter.html
index 1a3b19f50f924492dece66f7f9b44eff3ffd2f8e..9adaa31072e39a108c5540b6441e9e0ad3a5f451 100644
--- a/LayoutTests/fast/dom/nodelist-item-parameter.html
+++ b/LayoutTests/fast/dom/nodelist-item-parameter.html
@@ -20,7 +20,7 @@ shouldBeEqualToString("nodeList.item(1).id", "b");
shouldBeNull("nodeList.item(2)");
shouldBeNull("nodeList.item(-1)");
shouldBeEqualToString("nodeList.item(-4294967295).id", "b"); // Wraps to 1.
-shouldThrow("nodeList.item()", "'TypeError: Not enough arguments'");
+shouldThrow("nodeList.item()", '"TypeError: Failed to execute \'item\' on \'NodeList\': 1 argument required, but only 0 present."');
</script>
<script src="../js/resources/js-test-post.js"></script>
</body>
« no previous file with comments | « LayoutTests/fast/dom/navigator-vibration-expected.txt ('k') | LayoutTests/fast/dom/nodelist-item-parameter-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698