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

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

Issue 2693043005: Fix should() to throw with no argument (Closed)
Patch Set: Initial commit Created 3 years, 10 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 0181a957fab90d014d056a5072f75c6a22e72a79..e83cb2fc78e8e46cd5dbb0b713c8746a25405502 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -19,6 +19,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(() => { should(); }, 'Calling should() with no argument')
+ .throw('Error');
should(3 < 5, '3 < 5').beTrue();
should(false).beFalse();
should(1).beEqualTo(1)

Powered by Google App Engine
This is Rietveld 408576698