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

Unified Diff: LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.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/editing/pasteboard/data-transfer-items-drag-drop-string.html
diff --git a/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html b/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html
index fbb1f98cd87982a21cd530000b36605f542d0b2e..df6bbb24270497c92555007ebab64063db313f57 100644
--- a/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html
+++ b/LayoutTests/editing/pasteboard/data-transfer-items-drag-drop-string.html
@@ -78,7 +78,7 @@ function handleDrop(e)
debug('items[' + i + '].type: ' + items[i].type);
currentItem = items[i];
- shouldThrow('currentItem.getAsString()', '"TypeError: Not enough arguments"');
+ shouldThrow('currentItem.getAsString()', '"TypeError: Failed to execute \'getAsString\' on \'DataTransferItem\': 1 argument required, but only 0 present."');
shouldNotThrow('currentItem.getAsString(null)');
items[i].getAsString(function(data) {
window.stringData = data;

Powered by Google App Engine
This is Rietveld 408576698