summaryrefslogtreecommitdiffstats
path: root/toolkit/content/tests/browser/file_mediaPlayback2.html
diff options
context:
space:
mode:
Diffstat (limited to 'toolkit/content/tests/browser/file_mediaPlayback2.html')
-rw-r--r--toolkit/content/tests/browser/file_mediaPlayback2.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/toolkit/content/tests/browser/file_mediaPlayback2.html b/toolkit/content/tests/browser/file_mediaPlayback2.html
new file mode 100644
index 000000000..dffbd299b
--- /dev/null
+++ b/toolkit/content/tests/browser/file_mediaPlayback2.html
@@ -0,0 +1,12 @@
+<!DOCTYPE html>
+<body>
+<script type="text/javascript">
+var audio = new Audio();
+audio.oncanplay = function() {
+ audio.oncanplay = null;
+ audio.play();
+};
+audio.src = "audio.ogg";
+document.body.appendChild(audio);
+</script>
+</body>