Skip to content

feat(icon): add test harness #20072

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

Merged
merged 1 commit into from
Jul 22, 2020
Merged

Conversation

crisbeto
Copy link
Member

Sets up a test harness for mat-icon.

Sets up a test harness for `mat-icon`.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent merge safe target: minor This PR is targeted for the next minor release labels Jul 22, 2020
@crisbeto crisbeto requested review from jelbourn and a team as code owners July 22, 2020 17:29
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jul 22, 2020
}

/** Gets the namespace of the icon. */
async getNamespace(): Promise<string | null> {
Copy link
Member Author

@crisbeto crisbeto Jul 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about the naming of this and getName. Technically they correspond to two different inputs depending on whether it's an SVG icon (fontSet/svgIcon vs fontIcon/svgIcon), but they basically mean the same thing so I decided to combine them under the same methods. I'm open to suggestions and potentially separating them out so they mirror the inputs.

Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though this PR makes me reflect upon my regrets in the design of mat-icon (doing SVG and font icons in the same directive).

@jelbourn jelbourn added action: merge The PR is ready for merge by the caretaker lgtm labels Jul 22, 2020
@wagnermaciel wagnermaciel merged commit 092b151 into angular:master Jul 22, 2020
wagnermaciel added a commit to wagnermaciel/components that referenced this pull request Jul 23, 2020
This reverts commit 092b151.

This change adds an import to icon-harness-filters.ts which breaks
the internal target which uses this file because it does not have
cdk/testing in it's deps.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Aug 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants