"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/material/chips/chip-input.spec.ts" between
components-12.0.3.tar.gz and components-12.0.4.tar.gz

About: components offers Component infrastructure and Material Design components for Angular.

chip-input.spec.ts  (components-12.0.3):chip-input.spec.ts  (components-12.0.4)
skipping to change at line 22 skipping to change at line 22
import {MatChipInput, MatChipInputEvent} from './chip-input'; import {MatChipInput, MatChipInputEvent} from './chip-input';
import {MatChipList} from './chip-list'; import {MatChipList} from './chip-list';
import {MatChipsModule} from './index'; import {MatChipsModule} from './index';
describe('MatChipInput', () => { describe('MatChipInput', () => {
let fixture: ComponentFixture<any>; let fixture: ComponentFixture<any>;
let testChipInput: TestChipInput; let testChipInput: TestChipInput;
let inputDebugElement: DebugElement; let inputDebugElement: DebugElement;
let inputNativeElement: HTMLElement; let inputNativeElement: HTMLElement;
let chipInputDirective: MatChipInput; let chipInputDirective: MatChipInput;
let dir = 'ltr'; const dir = 'ltr';
beforeEach(waitForAsync(() => { beforeEach(waitForAsync(() => {
TestBed.configureTestingModule({ TestBed.configureTestingModule({
imports: [PlatformModule, MatChipsModule, MatFormFieldModule, NoopAnimatio nsModule], imports: [PlatformModule, MatChipsModule, MatFormFieldModule, NoopAnimatio nsModule],
declarations: [TestChipInput], declarations: [TestChipInput],
providers: [{ providers: [{
provide: Directionality, useFactory: () => { provide: Directionality, useFactory: () => {
return { return {
value: dir.toLowerCase(), value: dir.toLowerCase(),
change: new Subject() change: new Subject()
skipping to change at line 249 skipping to change at line 249
}); });
}); });
}); });
@Component({ @Component({
template: ` template: `
<mat-form-field> <mat-form-field>
<mat-chip-list #chipList [required]="required"> <mat-chip-list #chipList [required]="required">
<mat-chip>Hello</mat-chip> <mat-chip>Hello</mat-chip>
<input matInput [matChipInputFor]="chipList" <input [matChipInputFor]="chipList"
[matChipInputAddOnBlur]="addOnBlur" [matChipInputAddOnBlur]="addOnBlur"
(matChipInputTokenEnd)="add($event)" (matChipInputTokenEnd)="add($event)"
[placeholder]="placeholder" /> [placeholder]="placeholder" />
</mat-chip-list> </mat-chip-list>
</mat-form-field> </mat-form-field>
` `
}) })
class TestChipInput { class TestChipInput {
@ViewChild(MatChipList) chipListInstance: MatChipList; @ViewChild(MatChipList) chipListInstance: MatChipList;
addOnBlur = false; addOnBlur = false;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)