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

Fix custom-style-late tests #4503

Merged
merged 2 commits into from
Apr 6, 2017
Merged

Fix custom-style-late tests #4503

merged 2 commits into from
Apr 6, 2017

Conversation

dfreedm
Copy link
Member

@dfreedm dfreedm commented Apr 6, 2017

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

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
--cs-blue: {
border: 8px solid blue;
}
;
Copy link
Contributor

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?

Copy link
Member Author

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.

setTimeout(function() {
assertComputed(input, '8px');
done();
}, 125);
Copy link
Contributor

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?

Copy link
Member Author

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.

@dfreedm dfreedm merged commit bc0a5d2 into master Apr 6, 2017
@dfreedm dfreedm deleted the fix-custom-style-late branch April 6, 2017 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants