summaryrefslogtreecommitdiffstats
path: root/dom/media/webspeech/synth/test/file_bfcache_page2.html
blob: 30b9aa91174eb952c2d072eb8eeee5205ecaaade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<html>
<script>
var frameUnloaded = function() {
  var u = new SpeechSynthesisUtterance('hi');
  u.addEventListener('end', function () {
    opener.ok(true, 'Successfully spoke utterance from new frame.');
    opener.onDone();
  });
  speechSynthesis.speak(u);
};
</script>

<body onpageshow="frameUnloaded()"></body></html>