custom-elements-everywhere
custom-elements-everywhere copied to clipboard
Testing exposed methods
The current test suite focuses on properties and attributes. That is only half of the DOM. You need to be able to also provide methods on your custom elements. Not having that ability automatically makes the APIs awkward (instance.isOpen = true
instead of instance.open()
rather than in addition to).
The current version of test cases is not representative and is tailored towards frameworks, not developers using them. It's basically a lie what the reports say.
I can agree that Those test are not covering everything what is needed.
Also reflecting attributes on the components to show their state is not tested