dom/media/webspeech/synth/test/file_speech_error.html
author Masayuki Nakano <masayuki@d-toybox.com>
Sun, 16 Jan 2022 06:21:17 +0000
changeset 604634 9ef0614a59629916c1e182eb8eda055b0b0e8b32
parent 278643 67ea3d1ffcdb3c6f8d31781c8a5f5eb64a278254
permissions -rw-r--r--
Bug 1749299 - Make `HTMLEditor::HandleInsertLinefeed()` stop handling it if insertion point cannot have text nodes r=m_kato Ideally, it should not be called when the editor cannot insert new text node. However, the callers are complicated. Therefore, let's check in it for avoiding making the callers more complicated. Fortunately, this is not realistic path for normal web apps. Therefore, the compatibility of the behavior is not matter. That's the reason why this patch does not have a test comparing the result. Differential Revision: https://phabricator.services.mozilla.com/D135826

<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1226015
-->
<head>
  <meta charset="utf-8">
  <title>Test for Bug 1226015</title>
  <script type="application/javascript">
    window.SimpleTest = parent.SimpleTest;
    window.info = parent.info;
    window.is = parent.is;
    window.isnot = parent.isnot;
    window.ok = parent.ok;
  </script>
  <script type="application/javascript" src="common.js"></script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1226015">Mozilla Bug 1226015</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
<script type="application/javascript">

/** Test for Bug 1226015 **/

function testFunc(done_cb) {
  var utterance = new SpeechSynthesisUtterance();
  utterance.lang = 'it-IT-failatstart';

  speechSynthesis.speak(utterance);
  speechSynthesis.cancel();

  ok(true, "we didn't crash, that is good.")
  SimpleTest.finish();
}

// Run test with no global queue, and then run it with a global queue.
testFunc();

</script>
</pre>
</body>
</html>