w3c / epub-tests

Test repository for EPUB3, maintained by the EPUB3 WG
https://w3c.github.io/epub-tests/
Other
22 stars 20 forks source link

Test - every EPUB publication should be assigned a unique origin #299

Closed GJFR closed 1 year ago

GJFR commented 1 year ago

I will add a test for:

It MUST assign a unique origin [html], shared by all spine-level scripts of the EPUB publication.

(https://www.w3.org/TR/epub-rs-33/#confreq-rs-scripted-origin-shared)

This test requires opening an EPUB publication (which will show its assigned origin), closing it, and subsequently opening another EPUB publication (which will also show its assigned origin). The test will pass if both origins are different.

If I'm correct, there seems to be no procedure for creating a test that relies on two EPUB publications. As such, I think it's best to re-use the EPUB publication of the existing scr-support_origin test as one of the two EPUB publications that will be opened.