gecko-dev/dom/browser-element/mochitest/file_browserElement_ActiveStateChange.html
Alastor Wu 20745c8136 Bug 1240423 - part8 : modify tests r=baku
MozReview-Commit-ID: 7NlzmcZAlrd

--HG--
extra : rebase_source : fe7d43b0275483e9e082504b88af8f106cadbc19
2016-06-01 10:26:34 +08:00

25 lines
No EOL
438 B
HTML

<!DOCTYPE HTML>
<html>
<body>
<script type="application/javascript;version=1.7">
var audio = new Audio();
audio.src = "audio.ogg";
audio.loop = true;
function runCommands()
{
switch(location.hash) {
case '#play':
audio.play();
break;
case '#pause':
audio.pause();
break;
default :
alert("Undefined command!");
}
}
window.addEventListener('hashchange', runCommands);
</script>
</body>
</html>