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

[Custom]: No way to unregister a component (bugzilla: 27975) #152

Closed
hayatoito opened this issue Jul 6, 2015 · 1 comment
Closed

[Custom]: No way to unregister a component (bugzilla: 27975) #152

hayatoito opened this issue Jul 6, 2015 · 1 comment

Comments

@hayatoito
Copy link
Contributor

Title: [Custom]: No way to unregister a component (bugzilla: 27975)

Migrated from: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27975


comment: 0
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27975#c0
Randy Harmon wrote on 2015-02-07 18:40:51 +0000.

When writing unit tests, I'd like to be able to unregister a component, so that I can test various scenarios of the registration process. The spec doesn't deal at all with removal of custom elements.

I'm writing code that actually performs element registration depending on backbone configurations, if that helps with context.


comment: 1
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27975#c1
Dimitri Glazkov wrote on 2015-02-07 18:54:44 +0000.

I think the solution is in being able to create/discard registries. See bug 24578.


comment: 2
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27975#c2
Olli Pettay wrote on 2015-02-07 19:01:04 +0000.

Would using separate iframes be enough for testing?


comment: 3
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27975#c3
Elliott Sprehn wrote on 2015-02-08 02:00:15 +0000.

(In reply to Olli Pettay from comment #2)

Would using separate iframes be enough for testing?

Yes, existing test frameworks use iframes.


comment: 4
comment_url: https://www.w3.org/Bugs/Public/show_bug.cgi?id=27975#c4
Dimitri Glazkov wrote on 2015-02-08 02:03:25 +0000.

https://github.com/Polymer/web-component-tester

@domenic
Copy link
Collaborator

domenic commented Mar 8, 2016

I'll close this as the real solution is #154 but in the meantime iframes suffice.

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

No branches or pull requests

2 participants