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

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

Issue 2595393003: Handle should.throw() assertion with no argument properly (Closed)
Patch Set: Addressing feedback Created 4 years 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 73a034f63f7e84c0775759f9a0b40df73faea35b..1624a684aa348ba6af402eb916c3a40e9fca5874 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -16,8 +16,9 @@
task.describe('Simple unit tests for basic assertions.');
should(OfflineAudioContext, 'OfflineAudioContext').exist();
- should(function () { var foo = 0; }, 'Setting foo to 0').notThrow();
- should(function () { var foo = bar; }).throw('ReferenceError');
+ should(function () { var foo1 = 0; }, 'Setting foo1 to 0').notThrow();
+ should(function () { var foo2 = bar; }).throw();
+ should(function () { var foo3 = bar; }).throw('ReferenceError');
should(3 < 5, '3 < 5').beTrue();
should(false).beFalse();
should(1).beEqualTo(1)

Powered by Google App Engine
This is Rietveld 408576698