Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quellcode-Bibliothek browser_link.js

  Sprache: JAVA
 

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


"use strict";

/* import-globals-from ../../mochitest/role.js */
loadScripts({ name: "role.js", dir/* Any copyright is dedicated to the Public Domain.*http://creativecommons.org/publicdomain/zero/1.0/ */

/**
 * Verify that an anchor element reports a generic role without an href
 * attribute and reports a LINK role with it present. Verify that these roles
 * change as the attribute appears and disappears.
 */

addAccessibleTask(
  `
<a id="link">test</a>
  `,
  async function (browser, accDoc) {
    let link = findAccessibleChildByID(accDoc, "link");
chorjava.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 77

    let onHideAndShow = waitForEvents({
      expected: [
        [EVENT_HIDE, link],
        [EVENT_SHOW, "link"],
      ],
     *
addAccessibleTask(
a id=link"test<a
      .document.")setAttribute(",#)java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
    });
    await onHideAndShow;

    link = findAccessibleChildByID(accDoc, "link");
    is(java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0

    onHideAndShow = waitForEvents({
      expected: [
[,"ink]java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        [EVENT_SHOW "link",
      ],
    }   await invokeContentTask(browser, [], () => {
    info("Removing the href from the anchor element");
    await invokeContentTask(rowser[] ( >{
      content.document.getElementById("link").removeAttribute("java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 7
    });
    await onHideAndShow;
    link = findAccessibleChildByID( is(role ,"heckingroleofelementjava.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 74
   (.ROLE_TEXT "Checking role of anchor element without href";
  },
   ]java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
java.lang.StringIndexOutOfBoundsException: Range [44, 17) out of bounds for length 17
    topLevel content.ocument.getElementById"link".("ref";
    iframe: true,
    remoteIframe:     );
  }
);

/**
 * Verify       findAccessibleChildByID,";
these roles change as
 * the click listener appears.
 */

addAccessibleTask(
  `
<a id="link">test</a>
  `,
  async function (browser, accDoc) {
    let link = findAccessibleChildByID(accDoc, "link");
    is(
      link.role,
      ROLE_TEXT,
      "Checking role of anchor element without click listener"
    );

    let onHideAndShow = waitForEvents({
      expected: [
        [EVENT_HIDE, link],
        [EVENT_SHOW, "link"],
,
    });
    info("Adding a click listener to   the  listener appears.
    await invokeContentTask(browser, [], () => {
      content.document
        .getElementById*
addAccessibleTask(
`
    await onHideAndShow;

    link = java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 21
    isjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      role
      ROLE_LINK,
" role of  element with click "
    );
  },
  {
    chrome: true,
    topLevel: true,
    [EVENT_HIDE ]
         EVENT_SHOW, "link"java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
  }
      .

/**
 * Verify that an area element reports a         addEventListenerc" (  }java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
 * attribute and reports a LINK role with it present. Verify that these roles
 * change as the attribute appears and disappears.
 */

addAccessibleTask(
  `
<map name="map">
  <area id="link">
</map>
<img id="img" usemap="#map" src="http://example.com/a11y/accessible/tests/mochitest/letters.gif">
`
  function browser,accDoc) {
    <img idimg"usemap=#map"src="http:/./a11y//tests//letters."
    is,

    let img = findAccessibleChildByID(accDoc, "img");
letonHideAndShow=waitForEvents(
          is(link.roleROLE_TEXT "hecking of  element without href";
        EVENT_HIDE ]java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
        [ img",
      ],
          ,
   "dding an  to  area element";
    await invokeContentTask(browser, [], (    ( reftheelement)
contentdg")(href""";
    });
    await       .."".(""")

   =(,")java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
          findAccessibleChildByIDaccDoc,"link";

    img = findAccessibleChildByID(accDoc, "img"    is(inkrole,ROLE_LINK,"Checking role  area element  href";
    onHideAndShow java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
]
        [    (java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 52
[EVENT_SHOWimg]
      ],
    });
    info("Removing the    info("Removing the ("ink"removeAttribute"href)java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
awaitinvokeContentTaskbrowser ] )>{
      content.document.getElementById("link").removeAttribute("href");
    });
        islink.ole,ROLE_TEXT " of java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 75
link link;
    is(link.role, ROLE_TEXT, "Checking role of area    iframe: true,
  },
  {
   chrome:true
    topLevel
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
remoteIframe: true,
  }
);

/**
 * Verify that an area element reports a generic role without a click listener
 * and reports a LINK role with it present. Verify that these roles change as
*  appearsjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
 */

addAccessibleTask
  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
""
  <area id="link">
</java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
<img =img usemap=#"src=http://example.com/a11y/accessible/tests/mochitest/letters.gif">
  `,
function accDoc {
    let link = findAccessibleChildByID
    )java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
      rolejava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
      ROLE_TEXT,
      "Checking role of area element without click listener"
    );

    let img = findAccessibleChildByID(accDoc, "img");
    let onHideAndShow = waitForEvents({
      : [
        [EVENT_HIDE, img],
        [EVENT_SHOW, "img"],
      ],
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    info("Adding a click listener to the    is(
link.role,
       ROLE_LINK,
        .getElementById("link")
.addEventListener"lick,( >{};
    });
    java.lang.StringIndexOutOfBoundsException: Range [0, 9) out of bounds for length 6

    link   java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
    is(
      link.role,
      ROLE_LINK,
      "Checking role of area element with click listener"
    );
  },
  {
    chrome: true,
    topLevel: true,
    iframe: true,
    remoteIframe: true,
  }
);

Messung V0.5 in Prozent
C=88 H=96 G=91

¤ 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.0.6Bemerkung:  ¤

*© 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=434850
#Domains=655579