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> |