-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix custom-style-late tests #4503
Conversation
The included element was never upgrading because it is an extension element, and CustomStyleInterface boots up async due to webcomponents/shadycss@33512fc and misses the resync. This is solved by making a real element. Also, this test wasn't really "late", so the `<custom-style>` is asynchronous now Fixes #4501
test/unit/custom-style-late.html
Outdated
--cs-blue: { | ||
border: 8px solid blue; | ||
} | ||
; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
put this on the line before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was trying to test some broken syntax, but I'm fine cleaning it up.
test/unit/custom-style-late.html
Outdated
setTimeout(function() { | ||
assertComputed(input, '8px'); | ||
done(); | ||
}, 125); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the specific timeout here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can use some flush
functionality probably.
The included element was never upgrading because it is an extension
element, and CustomStyleInterface boots up async due to
webcomponents/shadycss@33512fc and misses the resync.
This is solved by making a real element.
Also, this test wasn't really "late", so the
<custom-style>
isasynchronous now
Fixes #4501