fix(core/aria): Remove core/aria module (#1544)
Remove core/aria module, because it doesn't do anything helpful.
This commit is contained in:
parent
4e68fc035c
commit
826bf42898
|
@ -29,7 +29,6 @@ define(
|
|||
"core/ui",
|
||||
"core/l10n",
|
||||
"w3c/defaults",
|
||||
"core/aria",
|
||||
"core/style",
|
||||
"w3c/style",
|
||||
"w3c/l10n",
|
||||
|
|
|
@ -1,15 +0,0 @@
|
|||
import { sub } from "core/pubsubhub";
|
||||
|
||||
export const name = "core/aria";
|
||||
|
||||
sub(
|
||||
"end-all",
|
||||
() => {
|
||||
document.body.setAttribute("aria-busy", "false");
|
||||
},
|
||||
{ once: true }
|
||||
);
|
||||
|
||||
export function run(conf) {
|
||||
document.body.setAttribute("aria-busy", "true");
|
||||
}
|
|
@ -1,15 +0,0 @@
|
|||
"use strict";
|
||||
describe("Core — Aria", () => {
|
||||
afterAll(flushIframes);
|
||||
it("shows the body and sets it to no longer busy after processing", async () => {
|
||||
const ops = {
|
||||
config: makeBasicConfig(),
|
||||
body: makeDefaultBody(),
|
||||
};
|
||||
const doc = await makeRSDoc(ops);
|
||||
await doc.respecIsReady;
|
||||
expect(doc.body.getAttribute("aria-busy")).toBe("false");
|
||||
expect(doc.body.hidden).toBe(false);
|
||||
expect(doc.body.hasAttribute("aria-live")).toBe(false);
|
||||
});
|
||||
});
|
|
@ -1,5 +1,4 @@
|
|||
[
|
||||
"spec/core/aria-spec.js",
|
||||
"spec/core/best-practices-spec.js",
|
||||
"spec/core/biblio-db-spec.js",
|
||||
"spec/core/biblio-spec.js",
|
||||
|
@ -47,4 +46,4 @@
|
|||
"spec/w3c/permalinks-spec.js",
|
||||
"spec/w3c/seo-spec.js",
|
||||
"spec/w3c/style-spec.js"
|
||||
]
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue