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


Quelle  browser_searchbar.js   Sprache: JAVA

 
"use strict";

/* import-globals-from ../../mochitest/role.js */
loadScripts({ name: "role.js", dir: MOCHITESTS_DIR });

const { CustomizableUITestUtils } = ChromeUtils.importESModule(
  "resource://testing-common/CustomizableUITestUtils.sys.mjs"
);
let gCUITestUtils = new CustomizableUITestUtils(window);

// eslint-disable-next-line camelcase
add_task(async function test_searchbar_a11y_tree() {
  let searchbar = await gCUITestUtils.addSearchBar();

  // Make sure the popup has been rendered so it shows up in the a11y tree.
  let popup = document.getElementById("PopupSearchAutoComplete");
  let promise = Promise.all([
    BrowserTestUtils.waitForEvent(popup, "popupshown"false),
    waitForEvent(EVENT_SHOW, popup),
  ]);
  searchbar.textbox.openPopup();
  await promise;

  let TREE = {
    role: ROLE_EDITCOMBOBOX,

    children: [
      // image button toggling the results list
      {
        role: ROLE_BUTTONMENU,
        children: [],
      },

      // input element
      {
        role: ROLE_ENTRY,
        children: [],
      },

      // context menu
      {
        role: ROLE_COMBOBOX_LIST,
        children: [],
      },

      // result list
      {
        role: ROLE_GROUPING,
        // not testing the structure inside the result list
      },
    ],
  };

  testAccessibleTree(searchbar, TREE);

  promise = Promise.all([
    BrowserTestUtils.waitForEvent(popup, "popuphidden"false),
    waitForEvent(EVENT_HIDE, popup),
  ]);
  searchbar.textbox.closePopup();
  await promise;

  TREE = {
    role: ROLE_EDITCOMBOBOX,

    children: [
      // image button toggling the results list
      {
        role: ROLE_BUTTONMENU,
        children: [],
      },

      // input element
      {
        role: ROLE_ENTRY,
        children: [],
      },

      // context menu
      {
        role: ROLE_COMBOBOX_LIST,
        children: [],
      },

      // the result list should be removed from the tree on popuphidden
    ],
  };

  testAccessibleTree(searchbar, TREE);
});

Messung V0.5
C=93 H=94 G=93

¤ Dauer der Verarbeitung: 0.12 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge