Skip to content

idlharness.js: Distinguish instance toJSON is being executed against when it's inherited - #10029

Merged
lukebjerring merged 2 commits into
web-platform-tests:masterfrom
lukebjerring:idlharness-interface-by-instance
Mar 23, 2018
Merged

lukebjerring merged 2 commits into
web-platform-tests:masterfrom
lukebjerring:idlharness-interface-by-instance

Conversation

@lukebjerring

@lukebjerring lukebjerring commented Mar 14, 2018 •

Copy link
Copy Markdown
Contributor

The specific 'bug' that I am attempting to fix is outlined in #9787 - also fixes #7492

I am unsure why changing [Default] toJSON(); to [Default] object toJSON(); suddenly results in the new error:

3 duplicate test names: "Test default toJSON operation of DOMPointReadOnly", "Test default toJSON 
operation of DOMRectReadOnly", "Test default toJSON operation of DOMMatrixReadOnly"

I have clarified that the duplication occurs from running the test on both DOMMatrix and DOMMatrixReadOnly, where DOMMatrix : DOMMatrixReadOnly.
this.name is DOMMatrixReadOnly in both cases, in spite of the idlArray object instance being DOMMatrix.


This change is Reviewable

@ghost

ghost commented Mar 14, 2018 •

Copy link
Copy Markdown

Build PASSED

Started: 2018-03-22 14:31:59
Finished: 2018-03-22 14:38:52

View more information about this build on:

@gsnedders
gsnedders requested a review from tobie March 15, 2018 14:50
@lukebjerring

Copy link
Copy Markdown
Contributor Author

@tobie - any idea when you'll be able to take a look?

@tobie

tobie commented Mar 19, 2018

Copy link
Copy Markdown
Contributor

LGTM. I think this also fixes #7492. Could you check?

@tobie

tobie commented Mar 19, 2018

Copy link
Copy Markdown
Contributor

Note, you'll have to fix the test suite accordingly.

@lukebjerring

Copy link
Copy Markdown
Contributor Author

@tobie - Correct, fixes #7492, will add that to the desc. This is now good to go.

@lukebjerring
lukebjerring merged commit 4578f69 into web-platform-tests:master Mar 23, 2018
@lukebjerring
lukebjerring deleted the idlharness-interface-by-instance branch March 23, 2018 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

idlharness generates duplicate test names

4 participants