@angular/material
Version:
Angular Material
51 lines (45 loc) • 2.7 kB
TypeScript
import { AsyncFactoryFn } from '@angular/cdk/testing';
import { HarnessPredicate } from '@angular/cdk/testing';
import { RadioButtonHarnessFilters as LegacyRadioButtonHarnessFilters } from '@angular/material/radio/testing';
import { RadioGroupHarnessFilters as LegacyRadioGroupHarnessFilters } from '@angular/material/radio/testing';
import { _MatRadioButtonHarnessBase } from '@angular/material/radio/testing';
import { _MatRadioGroupHarnessBase } from '@angular/material/radio/testing';
import { TestElement } from '@angular/cdk/testing';
export { LegacyRadioButtonHarnessFilters }
export { LegacyRadioGroupHarnessFilters }
/**
* Harness for interacting with a standard mat-radio-button in tests.
* @deprecated Use `MatRadioButtonHarness` from `@angular/material/radio/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
* @breaking-change 17.0.0
*/
export declare class MatLegacyRadioButtonHarness extends _MatRadioButtonHarnessBase {
/** The selector for the host element of a `MatRadioButton` instance. */
static hostSelector: string;
/**
* Gets a `HarnessPredicate` that can be used to search for a `MatRadioButtonHarness` that meets
* certain criteria.
* @param options Options for filtering which radio button instances are considered a match.
* @return a `HarnessPredicate` configured with the given options.
*/
static with(options?: LegacyRadioButtonHarnessFilters): HarnessPredicate<MatLegacyRadioButtonHarness>;
protected _textLabel: AsyncFactoryFn<TestElement>;
protected _clickLabel: AsyncFactoryFn<TestElement>;
}
/**
* Harness for interacting with a standard mat-radio-group in tests
* @deprecated Use `MatRadioGroupHarness` from `@angular/material/radio/testing` instead. See https://material.angular.io/guide/mdc-migration for information about migrating.
* @breaking-change 17.0.0
*/
export declare class MatLegacyRadioGroupHarness extends _MatRadioGroupHarnessBase<typeof MatLegacyRadioButtonHarness, MatLegacyRadioButtonHarness, LegacyRadioButtonHarnessFilters> {
/** The selector for the host element of a `MatRadioGroup` instance. */
static hostSelector: string;
protected _buttonClass: typeof MatLegacyRadioButtonHarness;
/**
* Gets a `HarnessPredicate` that can be used to search for a `MatRadioGroupHarness` that meets
* certain criteria.
* @param options Options for filtering which radio group instances are considered a match.
* @return a `HarnessPredicate` configured with the given options.
*/
static with(options?: LegacyRadioGroupHarnessFilters): HarnessPredicate<MatLegacyRadioGroupHarness>;
}
export { }