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

Unified Diff: LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html

Issue 483863003: Use SpecialWrapFor over HTMLMediaElement (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use [SpecialWrapFor] instead Created 6 years, 4 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 | LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html
diff --git a/LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html b/LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html
new file mode 100644
index 0000000000000000000000000000000000000000..58a528f96168d750d3fd58475f16c91745762aff
--- /dev/null
+++ b/LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<script src="../resources/js-test.js"></script>
+<script src="resources/compatibility.js"></script>
+<script src="resources/audio-testing.js"></script>
+</head>
+<body>
+<script>
+description("Verifies that for .mediaElement getters, a wrapper that corresponds to the actual element is created.");
+
+var source;
+function testMediaWrapper(kind) {
+ var element = document.createElement(kind);
+ var context = new webkitOfflineAudioContext(1, 1000, 44100);
+
+ source = context.createMediaElementSource(element);
+ element = context = null;
+ gc();
+ shouldBeUndefined('source.mediaElement.nonExistentProperty');
+ source = null;
+}
+
+testMediaWrapper('audio');
+testMediaWrapper('video');
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/webaudio/mediaelementaudiosourcenode-wrapper-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698