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

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

Issue 2805773002: Implement ownProperty() and inheritFrom() assertions in should() (Closed)
Patch Set: Add should().notOwnProperty() and fixed audio-scheduled-source-basic.html Created 3 years, 8 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 5c56e6a8b68a960e4ae38232f96ebda4b8a5c95b..7c8ff9dac4d9f64da7e6e0f63735221347de434c 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -36,6 +36,18 @@
should(should(1).beEqualTo(1), 'should(1).beEqualTo(1)').beTrue();
should(true, 'The message is').message('truthful!', 'false!');
+ should(BaseAudioContext.prototype, 'BaseAudioContext.prototype')
+ .ownProperty('createGain');
+ should(BaseAudioContext.prototype, 'BaseAudioContext.prototype')
+ .notOwnProperty('startRendering');
+
+ let ac = new AudioContext();
+ let sourceNode = new AudioBufferSourceNode(ac);
+ should(sourceNode, 'An AudioBufferSourceNode')
+ .inheritFrom('AudioScheduledSourceNode');
+ should(sourceNode, 'An AudioBufferSourceNode')
+ .inheritFrom('AudioNode');
+
let oac = new OfflineAudioContext(1, 128, 44100);
Promise.all([
should(oac.startRendering(), 'Start OAC rendering').beResolved(),

Powered by Google App Engine
This is Rietveld 408576698