- commit
- 75723f813bbd27aad450c0bdb32b2381380c71ae
- parent
- 2f89307c66d6eac86e8e525c6e66371a2b8d545e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2020-11-12 12:53
rm dom-testing-library and use dom-accessibility-api directly
Diffstat
| M | package.json | 2 | +- |
| M | src/babel.js | 5 | ++--- |
2 files changed, 3 insertions, 4 deletions
diff --git a/package.json b/package.json
@@ -3,10 +3,10 @@ 3 3 "version": "1.0.0", 4 4 "description": "compare different implementations of accname", 5 5 "devDependencies": {6 -1 "@testing-library/dom": "7.26.6",7 6 "accessibility-developer-tools": "2.12.0", 8 7 "aria-api": "0.4.0", 9 8 "axe-core": "4.0.2", -1 9 "dom-accessibility-api": "0.5.4", 10 10 "nyc": "^15.1.0", 11 11 "w3c-alternative-text-computation": "github:accdc/w3c-alternative-text-computation" 12 12 },
diff --git a/src/babel.js b/src/babel.js
@@ -2,7 +2,6 @@ var ariaApi = require('aria-api');
2 2 var accdc = require('w3c-alternative-text-computation');
3 3 var axe = require('axe-core');
4 4 var axs = require('./axs');
5 -1 var domTestingLibrary = require('@testing-library/dom');
6 5 var domAccessibilityApi = require('dom-accessibility-api');
7 6
8 7 var form = document.querySelector('#ba-form');
@@ -32,13 +31,13 @@ var implementations = [{
32 31 url: 'https://github.com/accdc/w3c-alternative-text-computation',
33 32 fn: accdc.calcNames,
34 33 }, {
35 -1 name: 'dom-testing-library (7.26.6)',
-1 34 name: 'dom-accessibility-api (0.5.4)',
36 35 url: 'https://github.com/testing-library/dom-testing-library',
37 36 fn: function(el) {
38 37 return {
39 38 name: domAccessibilityApi.computeAccessibleName(el),
40 39 desc: domAccessibilityApi.computeAccessibleDescription(el),
41 -1 role: Object.keys(domTestingLibrary.getRoles(el)).join(' '),
-1 40 role: domAccessibilityApi.getRole(el),
42 41 };
43 42 },
44 43 }, {