當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript axe-core.run函數代碼示例

本文整理匯總了TypeScript中axe-core.run函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript run函數的具體用法?TypeScript run怎麽用?TypeScript run使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了run函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: it

 it("should be accessible when there's text", async done => {
   await afterQuerySuccess();
   (get(queryBox) as Querybox).setText('test');
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:7,代碼來源:AccessibilityQuerybox.ts

示例2: it

 it('should be accessible', async done => {
   getFacetColumn().appendChild(getFacetElement().el);
   await afterDeferredQuerySuccess();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:francoislg,項目名稱:search-ui,代碼行數:7,代碼來源:AccessibilityFacet.ts

示例3: it

 it('should be accessible', async done => {
   getResultsColumn().appendChild($$('div', { className: Component.computeCssClassName(Aggregate), 'data-field': '@objecttype' }).el);
   await afterQuerySuccess();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:7,代碼來源:AccessibilityAggregate.ts

示例4: it

 it('should be accessible', async done => {
   getResultsColumn().appendChild($$('div', { className: Component.computeCssClassName(ResultsPerPage) }).el);
   await afterQuerySuccess();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:7,代碼來源:AccessibilityResultsPerPage.ts

示例5: it

 it('should be accessible', async done => {
   await afterDeferredQuerySuccess();
   getOverlayInstance().openOverlay();
   await afterDelay(1000);
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:8,代碼來源:AccessibilityCardOverlay.ts

示例6: it

 it('should be accessible', async done => {
   const omniboxElement = getOmniboxElement();
   getSearchSection().appendChild(omniboxElement.el);
   await afterQuerySuccess();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:8,代碼來源:AccessibilityOmnibox.ts

示例7: it

 it('should be accessible with default list template', async done => {
   const resultListElement = getResultListStandardElement();
   getResultsColumn().appendChild(resultListElement.el);
   await afterQuerySuccess();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:8,代碼來源:AccessibilityResultList.ts

示例8: it

 it('should be accessible when a query does not trigger an error', async done => {
   addQueryFilter('@uri');
   buildErrortReportElement();
   await afterQuerySuccess();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:8,代碼來源:AccessibilityErrorReport.ts

示例9: it

    it('should be accessible', async done => {
      const cardOverlay = getOverlayElement();

      testResultElement(cardOverlay.el);
      await afterQuerySuccess();
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
開發者ID:francoislg,項目名稱:search-ui,代碼行數:9,代碼來源:AccessibilityCardOverlay.ts

示例10: it

 it('should be accessible in settings menu', async done => {
   const preferencesPanelElement = $$('div', { className: Component.computeCssClassName(PreferencesPanel) });
   const settingsElement = testSettingsElement(preferencesPanelElement.el);
   await afterQuerySuccess();
   (get(settingsElement.el) as Settings).open();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:9,代碼來源:AccessibilityPreferencesPanel.ts

示例11: it

 it('should be accessible', async done => {
   const advancedSearchElement = getAdvancedSearchElement();
   getResultsColumn().appendChild(advancedSearchElement.el);
   await afterQuerySuccess();
   const advancedSearch = get(advancedSearchElement.el) as AdvancedSearch;
   advancedSearch.open();
   const axeResults = await axe.run(getRoot());
   expect(axeResults).toBeAccessible();
   done();
 });
開發者ID:coveo,項目名稱:search-ui,代碼行數:10,代碼來源:AccessibilityAdvancedSearch.ts

示例12: it

    it('should be accessible', async done => {
      const excerptElement = $$('div', {
        className: Component.computeCssClassName(Excerpt)
      });

      testResultElement(excerptElement.el);
      await afterQuerySuccess();
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
開發者ID:coveo,項目名稱:search-ui,代碼行數:11,代碼來源:AccessibilityExcerpt.ts

示例13: it

    it('should be accessible', async done => {
      const shareQueryElement = $$('div', {
        className: Component.computeCssClassName(ShareQuery)
      });

      testSettingsElement(shareQueryElement.el);
      await afterQuerySuccess();
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
開發者ID:coveo,項目名稱:search-ui,代碼行數:11,代碼來源:AccessibilityShareQuery.ts

示例14: it

    it('should be accessible', async done => {
      const errorReportElement = $$('div', {
        className: Component.computeCssClassName(ErrorReport)
      });

      getResultsColumn().appendChild(errorReportElement.el);
      await afterQueryError();
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
開發者ID:francoislg,項目名稱:search-ui,代碼行數:11,代碼來源:AccessibilityErrorReport.ts

示例15: it

    it('should be accessible', async done => {
      const queryDurationElement = $$('div', {
        className: Component.computeCssClassName(QueryDuration)
      });

      getResultsColumn().appendChild(queryDurationElement.el);
      await afterQuerySuccess();
      const axeResults = await axe.run(getRoot());
      expect(axeResults).toBeAccessible();
      done();
    });
開發者ID:coveo,項目名稱:search-ui,代碼行數:11,代碼來源:AccessibilityQueryDuration.ts


注:本文中的axe-core.run函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。