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/MediaElementAudioSource/mediaelementaudiosourcenode.html

Issue 2825113002: Add [SameObject] for Media{Element,Stream}AudioSourceNode (Closed)
Patch Set: Remove console.logs 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioSource/mediastreamaudiosourcenode.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/webaudio/MediaElementAudioSource/mediaelementaudiosourcenode.html
diff --git a/third_party/WebKit/LayoutTests/webaudio/MediaElementAudioSource/mediaelementaudiosourcenode.html b/third_party/WebKit/LayoutTests/webaudio/MediaElementAudioSource/mediaelementaudiosourcenode.html
index 86b933b6326750e346d598eeb6e8d7b550db93b1..12bc1a90a885b241d5b5b729fd80989359247032 100644
--- a/third_party/WebKit/LayoutTests/webaudio/MediaElementAudioSource/mediaelementaudiosourcenode.html
+++ b/third_party/WebKit/LayoutTests/webaudio/MediaElementAudioSource/mediaelementaudiosourcenode.html
@@ -43,6 +43,15 @@ audit.define(
'audioNode.connect(context.destination, 0, 5)')
.throw('IndexSizeError');
+ // Verify same object is returned.
+ let element = mediaSource.mediaElement;
+ should(element instanceof HTMLMediaElement,
+ 'mediaSource.mediaElement instanceof HTMLMediaElement')
+ .beTrue();
+ should(mediaSource.mediaElement === element,
+ 'mediaSource.mediaElement is same object')
+ .beTrue();
+
// Try calling connect() with proper values.
should(
() => audioNode.connect(context.destination, 0, 0),
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/webaudio/MediaStreamAudioSource/mediastreamaudiosourcenode.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698