diff --git a/README.md b/README.md index c843db6..9726ab1 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,10 @@ red PR job against. - `node --test scripts/page-frames.test.mjs` — static gate over every ``)), [ + `line 2 `)), []); + } +}); + +test("fixture: unrelated GitHub Pages sites and lookalike domains stay cross-origin", () => { + for (const src of [ + "https://other.github.io/project/", + "https://hivecommons.github.io.example.org/project/", + ]) { + assert.equal(isSameOriginFrame(``)), []); + } +}); + test("fixture: a frame without sandbox is reported with its line and src", () => { assert.deepEqual(frameProblems(page('')), [ 'line 2