Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  test_bug1602526.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/editor/spellchecker/tests/test_bug1602526.html


<!DOCTYPE html>
<html>
<head>
  <title>Mozilla bug 1602526</title>
  <link rel=stylesheet href="/tests/SimpleTest/test.css">
  <script src="/tests/SimpleTest/EventUtils.js"></script>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script src="/tests/editor/spellchecker/tests/spellcheck.js"></script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1602526">Mozilla Bug 1602526</a>
<p id="display"></p>
<div id="content" style="display: none;">

</div>

<div id="contenteditable" contenteditable=true>kkkkökkkk</div>

<script>
const { maybeOnSpellCheck } = SpecialPowers.ChromeUtils.importESModule(
  "resource://testing-common/AsyncSpellCheckTestHelper.sys.mjs"
);

SimpleTest.waitForExplicitFinish();

function getEditor() {
  return SpecialPowers.wrap(window).docShell.editor;
}

SimpleTest.waitForFocus(async () => {
  let contenteditable = document.getElementById("contenteditable");
  let misspeltWords = [];
  misspeltWords.push("kkkk\u00f6kkkk");

  contenteditable.focus();
  window.getSelection().collapse(contenteditable.firstChild, contenteditable.firstChild.length);

  synthesizeKey(" ");

  // Run spell checker
  await new Promise((resolve) => { maybeOnSpellCheck(contenteditable, resolve); });

  synthesizeKey("a");
  synthesizeKey("a");
  synthesizeKey("a");

  await new Promise((resolve) => { maybeOnSpellCheck(contenteditable, resolve); });
  let editor = getEditor();
  ok(isSpellingCheckOk(editor, misspeltWords), "correct word is seleced as misspell");

  SimpleTest.finish();
});
</script>
</body>
</html>

Messung V0.5 in Prozent
C=88 H=97 G=92

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=141584
#Domains=752002