Skip to content

Commit ca8c388

Browse files
committed
ci: fix ci
1 parent b88351a commit ca8c388

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/material/input/input.spec.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
Type,
99
ViewChild,
1010
} from '@angular/core';
11-
import {ComponentFixture, fakeAsync, flush, TestBed} from '@angular/core/testing';
11+
import {ComponentFixture, fakeAsync, flush, TestBed, tick} from '@angular/core/testing';
1212
import {
1313
FormControl,
1414
FormGroup,
@@ -1342,17 +1342,20 @@ describe('MatMdcInput with forms', () => {
13421342
it('should update notch size after changing appearance to outline', fakeAsync(() => {
13431343
const fixture = createComponent(MatInputWithAppearance);
13441344
fixture.detectChanges();
1345+
tick(16);
13451346

13461347
expect(fixture.nativeElement.querySelector('.mdc-notched-outline__notch')).toBe(null);
13471348

13481349
fixture.componentInstance.appearance = 'outline';
13491350
fixture.detectChanges();
1351+
tick(16);
13501352

13511353
let notch = fixture.nativeElement.querySelector('.mdc-notched-outline__notch')! as HTMLElement;
13521354
expect(notch.style.width).toBeFalsy();
13531355

13541356
fixture.nativeElement.querySelector('input')!.focus();
13551357
fixture.detectChanges();
1358+
tick(16);
13561359

13571360
expect(notch.style.width).toBeTruthy();
13581361
}));

tools/public_api_guard/material/form-field.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { BooleanInput } from '@angular/cdk/coercion';
1313
import { ChangeDetectorRef } from '@angular/core';
1414
import { Directionality } from '@angular/cdk/bidi';
1515
import { ElementRef } from '@angular/core';
16-
import { EventEmitter } from '@angular/core';
1716
import * as i0 from '@angular/core';
1817
import * as i10 from '@angular/material/core';
1918
import * as i11 from '@angular/common';
@@ -66,7 +65,7 @@ export class MatError {
6665
}
6766

6867
// @public
69-
export class MatFormField implements AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy {
68+
export class MatFormField implements FloatingLabelParent, AfterContentInit, AfterContentChecked, AfterViewInit, OnDestroy {
7069
constructor(_elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, _ngZone: NgZone, _dir: Directionality, _platform: Platform, _defaults?: MatFormFieldDefaultOptions | undefined, _animationMode?: string | undefined,
7170
_unusedDocument?: any);
7271
_animateAndLockLabel(): void;
@@ -91,6 +90,7 @@ export class MatFormField implements AfterContentInit, AfterContentChecked, Afte
9190
getConnectedOverlayOrigin(): ElementRef;
9291
_getDisplayedMessages(): 'error' | 'hint';
9392
getLabelId(): string | null;
93+
_handleLabelResized(): void;
9494
// (undocumented)
9595
_hasFloatingLabel(): boolean;
9696
// (undocumented)

0 commit comments

Comments
 (0)