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

Unified Diff: LayoutTests/fast/events/clipboard-dataTransferItemList-remove.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/events/clipboard-dataTransferItemList-remove.html
diff --git a/LayoutTests/fast/events/clipboard-dataTransferItemList-remove.html b/LayoutTests/fast/events/clipboard-dataTransferItemList-remove.html
index a7c27723834ccb4dd752c46263bbf9d42dffe5ab..eac00f642379a03fef62ec8d74fdbd52c5b66a8a 100644
--- a/LayoutTests/fast/events/clipboard-dataTransferItemList-remove.html
+++ b/LayoutTests/fast/events/clipboard-dataTransferItemList-remove.html
@@ -27,7 +27,7 @@ function copy(event)
shouldBeEqualToString('dataTansferItemList[3].type', 'custom-data');
// Failure cases.
- shouldThrow('dataTansferItemList.remove()', '"TypeError: Not enough arguments"');
+ shouldThrow('dataTansferItemList.remove()', '"TypeError: Failed to execute \'remove\' on \'DataTransferItemList\': 1 argument required, but only 0 present."');
shouldNotThrow('dataTansferItemList.remove(-1)');
shouldBe('dataTansferItemList.length', '4');
shouldNotThrow('dataTansferItemList.remove(999)');

Powered by Google App Engine
This is Rietveld 408576698