本文整理汇总了TypeScript中axe-core.run函数的典型用法代码示例。如果您正苦于以下问题:TypeScript run函数的具体用法?TypeScript run怎么用?TypeScript run使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了run函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: it
it('should be accessible', async done => {
const didYouMeanElement = $$('div', {
className: Component.computeCssClassName(DidYouMean),
'data-enable-auto-correction': false
});
getResultsColumn().appendChild(didYouMeanElement.el);
await afterQuerySuccess();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
开发者ID:coveo,项目名称:search-ui,代码行数:12,代码来源:AccessibilityDidYouMean.ts
示例17: it
it('should be accessible', async done => {
const badgeElement = $$('div', {
className: Component.computeCssClassName(Badge),
'data-field': '@filetype'
});
testResultElement(badgeElement.el);
await afterQuerySuccess();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
开发者ID:coveo,项目名称:search-ui,代码行数:12,代码来源:AccessibilityBadge.ts
示例18: it
it('should be accessible', async done => {
const simpleFilterElement = $$('div', {
className: Component.computeCssClassName(SimpleFilter),
'data-field': '@filetype'
});
getResultsColumn().appendChild(simpleFilterElement.el);
await afterQuerySuccess();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
开发者ID:coveo,项目名称:search-ui,代码行数:12,代码来源:AccessibilitySimpleFilter.ts
示例19: it
it('should be accessible when opened', async done => {
const quickviewElement = $$('div', {
className: Component.computeCssClassName(Quickview)
});
testResultElement(quickviewElement.el);
await afterQuerySuccess();
(get(document.querySelector(`.${Component.computeCssClassName(Quickview)}`)) as Quickview).open();
await afterDelay(500);
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
开发者ID:coveo,项目名称:search-ui,代码行数:13,代码来源:AccessibilityQuickview.ts
示例20: it
it('should be accessible', async done => {
const sortElement = $$('span', {
className: Component.computeCssClassName(Sort),
'data-sort-criteria': 'relevancy',
'data-caption': 'Relevance'
});
getSortSection().appendChild(sortElement.el);
await afterQuerySuccess();
const axeResults = await axe.run(getRoot());
expect(axeResults).toBeAccessible();
done();
});
开发者ID:coveo,项目名称:search-ui,代码行数:14,代码来源:AccessibilitySort.ts
注:本文中的axe-core.run函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论