Skip to content

URL serialization tests are driven by an algorithm, not data #2038

@domenic

Description

@domenic

This seems bad:

https://github.com/w3c/web-platform-tests/blob/12d3e15e5ecae695e1216c358d613705fbff6b68/url/urltestparser.js#L18-L26

Instead of writing an algorithm to assemble href, and testing against it, instead the href strings should be in the test data. Otherwise, the test harness has to sync with https://url.spec.whatwg.org/#concept-url-serializer

Related: whatwg/url#52 jsdom/whatwg-url#22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions