Skip to content

Feature Request: Display map-ed values #109

Open

Description

@Zearin

Still learning hTest using the WPT conversion mentioned in #100. I’ve got some progress, but I’m seeing the following results:

Screenshot of hTest results, with Actual showing a pair of braces, and Expected showing the plain results

Is it possible to add an option to make the Actual result show the value returned from map?

(If so, the table should reflect this in the column header, probably with something like “Actual (mapped)”.)

Activity

  1. LeaVerou commented on Dec 15, 2025

    @LeaVerou
    Member

    Yup, we should definitely do this.
    I think we actually do in the CLI, but the HTML view could use some love.

  2. Zearin commented on Dec 16, 2025

    @Zearin
    ContributorAuthor

    @LeaVerou I was able to hack together something that works to fix the above example. BUT…hTest does not pass all its own tests with the changes I made.

    Didn’t know if I should open a Pull Request, since it’s not passing. And I looked for where you do this in the CLI, but I was unable to find it, so I’m not super confident.

    P.S.: How come there are several imports that pull directly from the website (i.e. https://html.htest.dev/src/…)? The path looks like they are supposed to be part of the source in the repo. When I tried to look up RefTest it was an interesting little journey 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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