Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
tests(core/xref): use new WebIDL spec URL (speced#3810)
Browse files Browse the repository at this point in the history
* tests(core/xref): use new WebIDL spec URL

* tests(core/xref): force webidl in localBiblio
  • Loading branch information
sidvishnoi authored Oct 6, 2021
1 parent 5bd6ad6 commit 8e5064a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/spec/core/inlines-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ describe("Core - Inlines", () => {
const doc = await makeRSDoc(makeStandardOps(null, body));
const syntaxErrorAnchor = doc.querySelector("#test a");
expect(syntaxErrorAnchor.href).toBe(
"https://heycam.github.io/webidl/#syntaxerror"
"https://webidl.spec.whatwg.org/#syntaxerror"
);
});

Expand Down
4 changes: 2 additions & 2 deletions tests/spec/core/webidl-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -1368,7 +1368,7 @@ callback CallBack = Z? (X x, optional Y y, /*trivia*/ optional Z z);

// DOMString fromWebIDL();
const domString = doc.querySelector(
"#link-test a[href='https://heycam.github.io/webidl/#idl-DOMString']"
"#link-test a[href='https://webidl.spec.whatwg.org/#idl-DOMString']"
);
expect(domString).toBeTruthy();

Expand Down Expand Up @@ -1426,7 +1426,7 @@ callback CallBack = Z? (X x, optional Y y, /*trivia*/ optional Z z);
const objectAnchor = doc.querySelector("#link-test a[href$=idl-object]");
expect(objectAnchor.dataset.xrefType).toBe("interface");
expect(objectAnchor.href).toBe(
"https://heycam.github.io/webidl/#idl-object"
"https://webidl.spec.whatwg.org/#idl-object"
);
});

Expand Down
7 changes: 3 additions & 4 deletions tests/spec/core/xref-spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ describe("Core — xref", () => {
id: "service-workers-1",
href: "https://www.w3.org/TR/service-workers-1/",
},
webidl: { id: "WebIDL", href: "https://webidl.spec.whatwg.org/" },
infra: { id: "INFRA", href: "https://infra.spec.whatwg.org/" },
"credential-management": { aliasOf: "credential-management-1" },
"credential-management-1": {
Expand Down Expand Up @@ -242,7 +243,7 @@ describe("Core — xref", () => {
);
const externalDfn1 = doc.querySelector("#external-dfn-1 a");
expect(externalDfn1.href).toBe(
"https://heycam.github.io/webidl/#dfn-dictionary"
"https://webidl.spec.whatwg.org/#dfn-dictionary"
);
const externalDfn2 = doc.querySelector("#external-dfn-2 a");
expect(externalDfn2.href).toBe("https://infra.spec.whatwg.org/#list");
Expand Down Expand Up @@ -499,9 +500,7 @@ describe("Core — xref", () => {
const valid3 = doc.getElementById("valid3");
expect(valid3.href).toBe("https://example.com/#fake-inform-3");
const valid3n = doc.getElementById("valid3n");
expect(valid3n.href).toBe(
"https://heycam.github.io/webidl/#dfn-dictionary"
);
expect(valid3n.href).toBe("https://webidl.spec.whatwg.org/#dfn-dictionary");
const valid4 = doc.getElementById("valid4");
expect(valid4.href).toBe("https://example.com/#fake-inform-4");
const valid4n = doc.getElementById("valid4n");
Expand Down

0 comments on commit 8e5064a

Please sign in to comment.