Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  test_hidden.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/accessible/tests/mochitest/treeupdate/test_hidden.html


<!DOCTYPE html>
<html>

<head>
  <title>@hidden attribute 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 type="application/javascript"
          src="../common.js"></script>
  <script type="application/javascript"
          src="../role.js"></script>
  <script type="application/javascript"
          src="../events.js"></script>

  <script type="application/javascript">

    // //////////////////////////////////////////////////////////////////////////
    // Invokers
    // //////////////////////////////////////////////////////////////////////////

    /**
     * Set @hidden attribute
     */
    function setHiddenAttr(aContainerID, aChildID) {
      this.eventSeq = [
        new invokerChecker(EVENT_REORDER, getNode(aContainerID)),
      ];

      this.invoke = function setHiddenAttr_invoke() {
        var tree =
          { SECTION: [
              { ENTRY: [
              ] },
          ] };
        testAccessibleTree(aContainerID, tree);

        getNode(aChildID).setAttribute("hidden""true");
      };

      this.finalCheck = function setHiddenAttr_finalCheck() {
        var tree =
          { SECTION: [
          ] };
        testAccessibleTree(aContainerID, tree);
      };

      this.getID = function setHiddenAttr_getID() {
        return "Set @hidden attribute on input and test accessible tree for div";
      };
    }

    /**
     * Remove @hidden attribute
     */
    function removeHiddenAttr(aContainerID, aChildID) {
      this.eventSeq = [
        new invokerChecker(EVENT_REORDER, getNode(aContainerID)),
      ];

      this.invoke = function removeHiddenAttr_invoke() {
        var tree =
          { SECTION: [
          ] };
        testAccessibleTree(aContainerID, tree);

        getNode(aChildID).removeAttribute("hidden");
      };

      this.finalCheck = function removeHiddenAttr_finalCheck() {
        var tree =
          { SECTION: [
              { ENTRY: [
              ] },
          ] };
        testAccessibleTree(aContainerID, tree);
      };

      this.getID = function removeHiddenAttr_getID() {
        return "Remove @hidden attribute on input and test accessible tree for div";
      };
    }

    // //////////////////////////////////////////////////////////////////////////
    // Test
    // //////////////////////////////////////////////////////////////////////////

    // gA11yEventDumpID = "eventdump"; // debug stuff
    // gA11yEventDumpToConsole = true;

    var gQueue = null;

    function doTest() {
      gQueue = new eventQueue();

      gQueue.push(new setHiddenAttr("container""child"));
      gQueue.push(new removeHiddenAttr("container""child"));

      gQueue.invoke(); // SimpleTest.finish() will be called in the end
    }

    SimpleTest.waitForExplicitFinish();
    addA11yLoadEvent(doTest);

  </script>

</head>

<body>

  <p id="display"></p>
  <div id="content" style="display: none"></div>
  <pre id="test">
  </pre>

  <div id="container"><input id="child"></div>

  <div id="eventdump"></div>

</body>

</html>

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

¤ Dauer der Verarbeitung: 0.15 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik