Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/accessible/tests/mochitest/states/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  test_link.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/accessible/tests/mochitest/states/test_link.html


<html>

<head>
  <title>HTML link states testing</title>

  <link rel="stylesheet" type="text/css"
        href="chrome://mochikit/content/tests/SimpleTest/test.css" />

  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  <script src="chrome://mochikit/content/tests/SimpleTest/EventUtils.js"></script>

  <script type="application/javascript"
          src="../common.js"></script>
  <script type="application/javascript"
          src="../role.js"></script>
  <script type="application/javascript"
          src="../states.js"></script>
  <script type="application/javascript"
          src="../events.js"></script>

  <script type="application/javascript">
    function doTest() {
      // a@href and its text node
      testStates("link_href", STATE_LINKED);
      testStates(getAccessible("link_href").firstChild, STATE_LINKED);

      // a@onclick
      testStates("link_click", STATE_LINKED);

      // a@onmousedown
      testStates("link_mousedown", STATE_LINKED);

      // a@onmouseup
      testStates("link_mouseup", STATE_LINKED);

      // a@role="link"
      testStates("link_arialink", STATE_LINKED);

      // a@role="button"
      testStates("link_ariabutton"00, STATE_LINKED);

      // a (no @href, no click event listener)
      testStates("link_notlink"00, STATE_LINKED);

      SimpleTest.finish();
    }

    SimpleTest.waitForExplicitFinish();
    addA11yLoadEvent(doTest);
  </script>

</head>

<body>

  <a target="_blank"
     href="https://bugzilla.mozilla.org/show_bug.cgi?id=423409"
     title="Expose click action if mouseup and mousedown are registered">
    Mozilla Bug 423409
  </a>
  <a target="_blank"
     href="https://bugzilla.mozilla.org/show_bug.cgi?id=754830"
     title="Calculate link states separately">
    Mozilla Bug 754830
  </a>
  <a target="_blank"
     href="https://bugzilla.mozilla.org/show_bug.cgi?id=757774"
     title="Fire state change event when link is traversed">
    Mozilla Bug 757774
  </a>
  <p id="display"></p>
  <div id="content" style="display: none"></div>
  <pre id="test">
  </pre>

  <a id="link_href" href="http://mozilla.org">link</a>
  <a id="link_click" onclick="">link</a>
  <a id="link_mousedown" onmousedown="">link</a>
  <a id="link_mouseup" onmouseup="">link</a>
  <a id="link_arialink" role="link">aria link</a>
  <a id="link_ariabutton" role="button">aria button</a>
  <a id="link_notlink">not link</a>

</body>
</html>

Messung V0.5 in Prozent
C=99 H=100 G=99

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© 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.