Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  browser_alert.js

  Sprache: JAVA
 

/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

/**
 * Test that alert events aren't fired when reflow happens but no actual
 * insertion occurs.
 */

addAccessibleTask(
  `
<div id="alert" role="alert">
  <div id="content" hidden>content</div>
</div>
  `,
  async function (browser, docAcc) {
    const alert = findAccessibleChildByID(docAcc, "alert");
    info("Showing content");
    await contentSpawnMutation(
      browser,
      { expected: [[EVENT_ALERT, alert]] },
      () => {
        content.document.getElementById("content").hidden = false;
      }
    );
    info("Changing content display style and removing text");
    const content = findAccessibleChildByID(docAcc, "content");
    await contentSpawnMutation(
      browser,
      {
        expected: [[EVENT_REORDER, content]],
        unexpected: [[EVENT_ALERT, alert]],
      },
      () => {
        const node = content.document.getElementById("content");
        node.textContent = "";
        // This causes the node's layout frame to be reconstructed. This in
        // turn causes a11y to queue it as an insertion in case there were
        // changes. Because it already has an Accessible, This node is skipped
        // when processing insertions, so we should not fire an alert event.
        node.style.display = "flex";
      }
    );
  },
  { chrome: true, topLevel: true, remoteIframe: true }
);

Messung V0.5 in Prozent
C=92 H=93 G=92

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