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

Unified Diff: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html

Issue 2783033002: Treat should().throw(undefined) like should().throw() (Closed)
Patch Set: Created 3 years, 9 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: third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
index 1dbcb6da5d88a2399cb4b4f1f563c89c9203a73d..5c56e6a8b68a960e4ae38232f96ebda4b8a5c95b 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -20,6 +20,8 @@
should(function () { var foo1 = 0; }, 'Setting foo1 to 0').notThrow();
should(function () { var foo2 = bar; }).throw();
should(function () { var foo3 = bar; }).throw('ReferenceError');
+ should(function () { var foo4 = bar; }).throw(null);
+ should(function () { var foo5 = bar; }).throw(undefined);
should(() => { should(); }, 'Calling should() with no argument')
.throw('Error');
should(3 < 5, '3 < 5').beTrue();

Powered by Google App Engine
This is Rietveld 408576698