Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for customElements.upgrade() #9869

Merged
merged 2 commits into from
Mar 7, 2018
Merged

Add tests for customElements.upgrade() #9869

merged 2 commits into from
Mar 7, 2018

Conversation

domenic
Copy link
Member

@domenic domenic commented Mar 6, 2018

Follows whatwg/html#3535.

Ideas for more tests welcome, although testing against no implementations is a bit rough.

@ghost
Copy link

ghost commented Mar 6, 2018

Build PASSED

Started: 2018-03-07 03:09:27
Finished: 2018-03-07 03:13:01

View more information about this build on:

Copy link
Contributor

@tkent-google tkent-google left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bicknellr
Copy link
Contributor

Hi, I think the last test here about upgrading elements inside a template's content might not be correct: webcomponents/custom-elements#150 (comment) . The owner document of the elements inside the template content doesn't have a browsing context, so I don't think they should be upgraded by customElements.upgrade(template.content). Is that true or is there something else I haven't taken into consideration?

@domenic
Copy link
Member Author

domenic commented Apr 2, 2018

I don't see anything in the spec about browsing contexts...

@domenic
Copy link
Member Author

domenic commented Apr 2, 2018

Oh, I didn't click through to your explanation. Sorry, re-parsing... you're probably right...

Edit: confirmed. I will fix the test. Thank you!

@bicknellr
Copy link
Contributor

Ok, thanks for confirming!

tkent-google pushed a commit that referenced this pull request Apr 3, 2018
* Fix customElements.upgrade() tests for <template>

See #9869 (comment).

* Actually fix things
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 15, 2018
…template>, a=testonly

Automatic update from web-platform-testsFix customElements.upgrade() tests for <template> (#10272)

* Fix customElements.upgrade() tests for <template>

See web-platform-tests/wpt#9869 (comment).

* Actually fix things

wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272
wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 2, 2019
…template>, a=testonly

Automatic update from web-platform-testsFix customElements.upgrade() tests for <template> (#10272)

* Fix customElements.upgrade() tests for <template>

See web-platform-tests/wpt#9869 (comment).

* Actually fix things

wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272
wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272

UltraBlame original commit: 8cfc4131191bfd7fc017bcaf2702396b94bb8173
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 2, 2019
…template>, a=testonly

Automatic update from web-platform-testsFix customElements.upgrade() tests for <template> (#10272)

* Fix customElements.upgrade() tests for <template>

See web-platform-tests/wpt#9869 (comment).

* Actually fix things

wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272
wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272

UltraBlame original commit: 8cfc4131191bfd7fc017bcaf2702396b94bb8173
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 2, 2019
…template>, a=testonly

Automatic update from web-platform-testsFix customElements.upgrade() tests for <template> (#10272)

* Fix customElements.upgrade() tests for <template>

See web-platform-tests/wpt#9869 (comment).

* Actually fix things

wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272
wpt-commits: 5b68d219206139c0bfeec65c88e765749aed57fb
wpt-pr: 10272

UltraBlame original commit: 8cfc4131191bfd7fc017bcaf2702396b94bb8173
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.

4 participants