fune/toolkit/content/tests/browser/file_plugIn.html
Alastor Wu dd5be9dee0 Bug 1346872 - part3 : add and modify test. r=Ehsan
Add new tests and move some share codes to head.js.

MozReview-Commit-ID: GcCio6JupZu

--HG--
extra : rebase_source : a9324aaebd89412d77bed19b0554e6cf2959b6e2
2017-03-30 14:27:45 +08:00

19 lines
438 B
HTML

<!DOCTYPE html>
<embed type="application/x-test" width="200" height="200"></embed>
<script>
var plugin = document.querySelector("embed");
onload = function() {
plugin.startAudioPlayback();
};
function start_plugin() {
plugin.startAudioPlayback();
}
function stop_plugin() {
plugin.stopAudioPlayback();
}
</script>
<button id="start" onclick="start_plugin()">Start</button>
<button id="stop" onclick="stop_plugin()">Stop</button>