Skip to content

Commit

Permalink
fix(material-experimental/mdc-slider): delete isRequired function (#2…
Browse files Browse the repository at this point in the history
…2876)

* fix(material-experimental/mdc-slider): delete isRequired function

* delete the isRequired function from the MatSliderThumbHarness since
  the 'required' attribute is ignored on range inputs

* fixup! fix(material-experimental/mdc-slider): delete isRequired function
  • Loading branch information
wagnermaciel committed Jun 10, 2021
1 parent 61ce45d commit 4cee3b7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
Expand Up @@ -145,11 +145,6 @@ describe('MDC-based MatSliderHarness', () => {
expect(await (await slider.getStartThumb()).getId()).toBe('price-input');
});

it('should get whether a slider thumb is required', async () => {
const slider = await loader.getHarness(MatSliderHarness);
expect(await (await slider.getStartThumb()).isRequired()).toBe(true);
});

it('should be able to focus and blur a slider thumb', async () => {
const slider = await loader.getHarness(MatSliderHarness);
const thumb = await slider.getStartThumb();
Expand All @@ -169,7 +164,6 @@ describe('MDC-based MatSliderHarness', () => {
<input
name="price"
id="price-input"
required
matSliderThumb
(input)="inputListener()"
(change)="changeListener()">
Expand Down
Expand Up @@ -82,11 +82,6 @@ export class MatSliderThumbHarness extends ComponentHarness {
return (await this.host()).getProperty('disabled');
}

/** Whether the thumb is required. */
async isRequired(): Promise<boolean> {
return (await this.host()).getProperty('required');
}

/** Gets the name of the thumb. */
async getName(): Promise<string> {
return (await (await this.host()).getProperty('name'));
Expand Down

0 comments on commit 4cee3b7

Please sign in to comment.