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

Unified Diff: LayoutTests/fast/dom/Window/atob-btoa.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/Window/atob-btoa.html
diff --git a/LayoutTests/fast/dom/Window/atob-btoa.html b/LayoutTests/fast/dom/Window/atob-btoa.html
index e23c802e0630f9c519f9351f2352f02ad8dce340..552900a94c9a39ead88cba80869e5b5eeea22345 100644
--- a/LayoutTests/fast/dom/Window/atob-btoa.html
+++ b/LayoutTests/fast/dom/Window/atob-btoa.html
@@ -19,7 +19,7 @@ shouldBe('window.btoa("abcde")', '"YWJjZGU="');
shouldBe('window.btoa("abcdef")', '"YWJjZGVm"');
shouldBe('typeof window.btoa', '"function"');
-shouldThrow('window.btoa()', '"TypeError: Not enough arguments"');
+shouldThrow('window.btoa()', '"TypeError: Failed to execute \'btoa\' on \'DOMWindow\': 1 argument required, but only 0 present."');
shouldBe('window.btoa("")', '""');
shouldBe('window.btoa(null)', '"bnVsbA=="'); // Gets converted to "null" string.
shouldBe('window.btoa(undefined)', '"dW5kZWZpbmVk"');
@@ -32,7 +32,7 @@ shouldBe('window.btoa', '0');
shouldBe('typeof window.btoa', '"number"');
shouldBe('typeof window.atob', '"function"');
-shouldThrow('window.atob()', '"TypeError: Not enough arguments"');
+shouldThrow('window.atob()', '"TypeError: Failed to execute \'atob\' on \'DOMWindow\': 1 argument required, but only 0 present."');
shouldBe('window.atob("")', '""');
shouldBe('window.atob(null)', '"\x9Eée"'); // Gets converted to "null" string.
shouldThrow('window.atob(undefined)');

Powered by Google App Engine
This is Rietveld 408576698