summaryrefslogtreecommitdiffstats
path: root/dom/browser-element/mochitest/file_audio.html
diff options
context:
space:
mode:
Diffstat (limited to 'dom/browser-element/mochitest/file_audio.html')
-rw-r--r--dom/browser-element/mochitest/file_audio.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/dom/browser-element/mochitest/file_audio.html b/dom/browser-element/mochitest/file_audio.html
new file mode 100644
index 000000000..0e4a8d7c6
--- /dev/null
+++ b/dom/browser-element/mochitest/file_audio.html
@@ -0,0 +1,15 @@
+<html>
+<body>
+<audio src="chrome://mochitests/content/chrome/dom/browser-element/mochitest/audio.ogg" id="audio" />
+<script>
+var audio = document.getElementById('audio');
+audio.play();
+audio.onended = function() {
+ setTimeout(function() {
+ audio.play();
+ }, 0);
+}
+</script>
+
+</body>
+</html>