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

Quelle  test_listbox.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/accessible/tests/mochitest/attributes/test_listbox.html


<html>

<head>
  <title>Listbox group attribute tests</title>
  <meta charset="utf-8" />
  <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 type="application/javascript"
          src="../common.js"></script>
  <script type="application/javascript"
          src="../attributes.js"></script>
  <script type="application/javascript"
          src="../promisified-events.js"></script>

  <script type="application/javascript">
    async function doTest() {
      // First test the whole lot.
      testGroupAttrs("a"16);
      testGroupAttrs("b"26);
      testGroupAttrs("c"36);
      testGroupAttrs("d"46);
      testGroupAttrs("e"56);
      testGroupAttrs("f"66);
      // Remove c, reducing the set to 5.
      let listbox = getAccessible("listbox");
      let updated = waitForEvent(EVENT_REORDER, listbox);
      c.remove();
      await updated;
      testGroupAttrs("a"15);
      testGroupAttrs("b"25);
      testGroupAttrs("d"35);
      testGroupAttrs("e"45);
      testGroupAttrs("f"55);
      // Now, remove the first element.
      updated = waitForEvent(EVENT_REORDER, listbox);
      a.remove();
      await updated;
      testGroupAttrs("b"14);
      testGroupAttrs("d"24);
      testGroupAttrs("e"34);
      testGroupAttrs("f"44);
      // Remove the last item.
      updated = waitForEvent(EVENT_REORDER, listbox);
      f.remove();
      await updated;
      testGroupAttrs("b"13);
      testGroupAttrs("d"23);
      testGroupAttrs("e"33);
      // Finally, remove the middle item.
      updated = waitForEvent(EVENT_REORDER, listbox);
      d.remove();
      await updated;
      testGroupAttrs("b"12);
      testGroupAttrs("e"22);

      SimpleTest.finish();
    }

    SimpleTest.waitForExplicitFinish();
    addA11yLoadEvent(doTest);
  </script>
</head>
<body>
  <p id="display"></p>
  <div id="content" style="display: none"></div>
  <pre id="test">
  </pre>

  <!-- Group information updated after removal of list items, bug 1515186 -->
  <div id="listbox" role="listbox">
    <div id="a" role="option">Option a</div>
    <div id="b" role="option">Option b</div>
    <div id="c" role="option">Option c</div>
    <div id="d" role="option">Option d</div>
    <div id="e" role="option">Option e</div>
    <div id="f" role="option">Option f</div>
  </div>

</body>
</html>

Messung V0.5 in Prozent
C=94 H=97 G=95

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-06-04) ¤

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