import {MatIconTestingModule} from '@angular/material/icon/testing';
FakeMatIconRegistry
A null icon registry that must be imported to allow disabling of custom icons.
addSvgIcon | |
---|---|
Returns | |
this
|
|
addSvgIconInNamespace | |
---|---|
Returns | |
this
|
|
addSvgIconLiteral | |
---|---|
Returns | |
this
|
|
addSvgIconLiteralInNamespace | |
---|---|
Returns | |
this
|
|
addSvgIconResolver | |
---|---|
Returns | |
this
|
|
addSvgIconSet | |
---|---|
Returns | |
this
|
|
addSvgIconSetInNamespace | |
---|---|
Returns | |
this
|
|
addSvgIconSetLiteral | |
---|---|
Returns | |
this
|
|
addSvgIconSetLiteralInNamespace | |
---|---|
Returns | |
this
|
|
classNameForFontAlias | |
---|---|
Parameters | |
alias string
|
|
Returns | |
string
|
|
getDefaultFontSetClass |
---|
getNamedSvgIcon | |
---|---|
Returns | |
Observable<SVGElement>
|
|
getSvgIconFromUrl | |
---|---|
Returns | |
Observable<SVGElement>
|
|
registerFontClassAlias | |
---|---|
Returns | |
this
|
|
setDefaultFontSetClass | |
---|---|
Returns | |
this
|
|
MatIconHarness
extends
ComponentHarness
Harness for interacting with a standard mat-icon in tests.
Name | Description |
---|---|
|
The selector for the host element of a |
async
getName
|
|
---|---|
Gets the name of the icon. |
|
Returns | |
Promise<string | null>
|
|
async
getNamespace
|
|
---|---|
Gets the namespace of the icon. |
|
Returns | |
Promise<string | null>
|
|
async
getType
|
|
---|---|
Gets the type of the icon. |
|
Returns | |
Promise<IconType>
|
|
async
host
|
|
---|---|
Gets a |
|
Returns | |
Promise<TestElement>
|
|
async
isInline
|
|
---|---|
Gets whether the icon is inline. |
|
Returns | |
Promise<boolean>
|
|
static
with
|
|
---|---|
Gets a |
|
Parameters | |
options IconHarnessFilters = {}
|
Options for filtering which icon instances are considered a match. |
Returns | |
HarnessPredicate<MatIconHarness>
|
a |
IconHarnessFilters
A set of criteria that can be used to filter a list of MatIconHarness
instances.
Name | Description |
---|---|
|
Filters based on the name of the icon. |
|
Filters based on the namespace of the icon. |
|
Filters based on the typef of the icon. |