fix(core/aria): Remove core/aria module (#1544)

Remove core/aria module, because it doesn't do anything helpful.
This commit is contained in:
Kagami Sascha Rosylight 2018-03-02 11:16:44 +09:00 committed by Marcos Cáceres
parent 4e68fc035c
commit 826bf42898
4 changed files with 1 additions and 33 deletions

View File

@ -29,7 +29,6 @@ define(
"core/ui",
"core/l10n",
"w3c/defaults",
"core/aria",
"core/style",
"w3c/style",
"w3c/l10n",

View File

@ -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");
}

View File

@ -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);
});
});

View File

@ -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"
]
]