Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  browser_braille.js

  Sprache: JAVA
 

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


"use strict";

/**
 * Test aria-brailleLabel
 */


addAccessibleTask(
  `<button id="button" aria-braillelabel="***"><img alt="3 out of 5 stars" src="three_stars.png"></button>
 <p id="p">This here is text without braille label</p>`,
  async (browser, accDoc) => {
    let button = getNativeInterface(accDoc, "button");
    is(
      button.getAttributeValue("AXBrailleLabel"),
      "***",
      `Test: Correct braille label`
    );
    let p = getNativeInterface(accDoc, "p");
    ok(
      !p.attributeNames.includes("AXBrailleLabel"),
      "The AXBrailleLabel selector should be blocked for nodes without aria-braillelabel specified"
    );
  }
);

/**
 * Test aria-brailleRoleDescription
 */

addAccessibleTask(
  `<article id="test" aria-roledescription="slide" aria-brailleroledescription="sld" aria-labelledby="slide1heading">
  <h1 id="slide1heading">Welcome to my talk</h1>
 </article>
 <p id="p">This here is text without braille role description</p>`,
  async (browser, accDoc) => {
    let elem = getNativeInterface(accDoc, "test");
    is(
      elem.getAttributeValue("AXBrailleRoleDescription"),
      "sld",
      `Test: Correct braille role description`
    );
    let p = getNativeInterface(accDoc, "p");
    ok(
      !p.attributeNames.includes("AXBrailleRoleDescription"),
      "The AXBrailleRoleDescription selector should be blocked for nodes without aria-brailleroledescription specified"
    );
  }
);

Messung V0.5 in Prozent
C=97 H=100 G=98

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=655579