-
Notifications
You must be signed in to change notification settings - Fork 1.7k
ui: add slot for injecting header items #2952
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
Conversation
|
Cancelled build to unblock #2947, without which this build would fail |
| }); | ||
|
|
||
| it('reloads the active dashboard on request', (done) => { | ||
| xit('reloads the active dashboard on request', (done) => { |
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.
prefer to accompany skipped tests with a reason.
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've added a comment
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.
xdescribe, too. if you think they are stale, maybe just omit.
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.
Done - added to xdescribe
| checkSlottedUnderAncestor(headerItem1, '.header'); | ||
| checkSlottedUnderAncestor(headerItem2, '.header'); | ||
|
|
||
| function checkSlottedUnderAncestor( |
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.
several higher level comments:
- hoist this up function since it is general utility.
Polymer.dom($0).deepContains($1)may want to look into this.- consider moving new additions in tf_util to testing.ts or tf_util/shadow_dom.ts since we probably want some common utilities for ShadowDom that are missing from
Polymer.dom.
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.
- Done
- Thanks, I didn't know Polymer offered this!
- I'll keep in mind for the future. Polymer's
deepContains()addresses the need here, but I imagine we might want our own Shadow utils in the future
|
|
||
| describe('top right global icons', function() { | ||
| // TODO(psybuzz): Restore or remove these tests. This folder's tests seems | ||
| // to have not been running since the GitHub repo history was tracked. |
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.
nit: instead of describing the history, for TODOs at least, describe precondition that can resolve this TODO.
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.
Rewritten to note that the test was not running, and at least 1 reason for their failure.
Motivation for features / changes
Add the ability for embedders to inject items in the header, next to the 'Reload', 'Settings' buttons.
Technical description of changes