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

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

Issue 2654673003: Implement should().beRejectedWith() (Closed)
Patch Set: Fixed expected results Created 3 years, 11 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 c6ea3240a068c580e4bf2259b4df429c128ad528..7e4c83173c93f1c8b518cb529fa377c070bdd1bf 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -33,7 +33,9 @@
Promise.all([
should(oac.startRendering(), 'Start OAC rendering').beResolved(),
should(oac.decodeAudioData(), 'Decoding audio data with no argument')
- .beRejected()
+ .beRejected(),
+ should(oac.suspend(), 'Suspending OAC with no argument')
+ .beRejectedWith('TypeError')
]).then(task.done.bind(task));
});

Powered by Google App Engine
This is Rietveld 408576698