-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: run overlay and text-field tests with Bazel #13637
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
build: run overlay and text-field tests with Bazel #13637
Conversation
devversion
commented
Oct 16, 2018
- Implements a small and simple workaround that allows us to run the overlay and text-field unit tests through Bazel. Works around issue: https://github.com/bazelbuild/rules_typescript/issues/301
* Implements a small and simple workaround that allows us to run the overlay and text-field unit tests through Bazel. Works around issue: https://github.com/bazelbuild/rules_typescript/issues/301
@jelbourn I'm not a big fan of having such a workaround, but we need something like this in order to move on with Bazel for Maybe we can also somehow prioritize that issue within the Bazel Typescript rules. |
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 thought that there was also an issue with the test suite where it doesn't let you pass browser flags, which we use to set the winder to 1024x768 so that the geometry values are consistent
js_template="var cssElement = document.createElement('style'); \ | ||
cssElement.type = 'text/css'; \ | ||
cssElement.innerHTML = '$$css_content'; \ | ||
document.head.appendChild(cssElement);" |
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.
Could this be a separate file that's included in the rule rather than creating it on-demand with a genrule
?
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.
Not entirely sure what you mean? A separate rule for generating this file?
Not sure if that would be worth the effort.
This is just a matrix function, so we don't have access to a context.
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 mean creating a real js file like overlay-test-style-include.js
that's added to the deps of just the overlay rule?
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 don't think that will work. I'm not sure how we could load the prebuilt CSS output into the file without a custom rule/or genrule
-- Actually it would work if we somehow know the path to the CSS file which is served by Karma (just not included)
I can look into it tomorrow, if we want to go with your proposed approach
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.
Ah, I see now.
Yeah that's what I initially thought. I've tried to fix it just by specifying a screen resolution, but apparently that doesn't have any effect. The tests just failed due to the missing CSS styles. |
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.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |