tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

file_speech_error.html (1081B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <!--
      4 https://bugzilla.mozilla.org/show_bug.cgi?id=1226015
      5 -->
      6 <head>
      7  <meta charset="utf-8">
      8  <title>Test for Bug 1226015</title>
      9  <script type="application/javascript">
     10    window.SimpleTest = parent.SimpleTest;
     11    window.info = parent.info;
     12    window.is = parent.is;
     13    window.isnot = parent.isnot;
     14    window.ok = parent.ok;
     15  </script>
     16  <script type="application/javascript" src="common.js"></script>
     17 </head>
     18 <body>
     19 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1226015">Mozilla Bug 1226015</a>
     20 <p id="display"></p>
     21 <div id="content" style="display: none">
     22 
     23 </div>
     24 <pre id="test">
     25 <script type="application/javascript">
     26 
     27 /** Test for Bug 1226015 */
     28 
     29 function testFunc(done_cb) {
     30  var utterance = new SpeechSynthesisUtterance();
     31  utterance.lang = 'it-IT-failatstart';
     32 
     33  speechSynthesis.speak(utterance);
     34  speechSynthesis.cancel();
     35 
     36  ok(true, "we didn't crash, that is good.")
     37  SimpleTest.finish();
     38 }
     39 
     40 // Run test with no global queue, and then run it with a global queue.
     41 testFunc();
     42 
     43 </script>
     44 </pre>
     45 </body>
     46 </html>