Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/dom/base/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_reportPatternFailure.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/base/test/test_reportPatternFailure.html


<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test console error for invalid pattern attributes</title>
  <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1862199"/>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<p id="display"></p>
<div id="content" style="display: none">
  <input pattern="[a]" id="inp">
</div>
<pre id="test">
  <script>
    SimpleTest.waitForExplicitFinish();

    function runTest() {
      // should find exactly one error
      SimpleTest.monitorConsole(SimpleTest.finish, [
        { errorMessage: new RegExp(
          "Unable to check because ‘/\\[a-\\]/v’ is not a valid regexp"
        ) }
      ], /*forbidUnexpectedMsgs*/ true);

      let inp = document.getElementById("inp");
      // should cause no error
      inp.value = "a";
      // should cause one error
      inp.pattern = "[a-]";

      SimpleTest.endMonitorConsole();
    }

    runTest();
  </script>
</pre>
</body>
</html>

Messung V0.5
C=100 H=100 G=100

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.