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

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

Issue 2805773002: Implement ownProperty() and inheritFrom() assertions in should() (Closed)
Patch Set: 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..86292c036993eb0c54a0f94654b966d400652ad0 100644
--- a/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
+++ b/third_party/WebKit/LayoutTests/webaudio/unit-tests/audit.html
@@ -36,6 +36,16 @@
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');
+
+ let ac = new AudioContext();
+ let sourceNode = new AudioBufferSourceNode(ac);
+ should(sourceNode, 'A BufferSourceNode')
Raymond Toy 2017/04/06 23:13:14 There's no such thing as a BufferSourceNode, so us
hongchan 2017/04/07 15:55:36 Done.
+ .inheritFrom('AudioScheduledSourceNode');
+ should(sourceNode, 'A BufferSourceNode')
+ .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