"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/lib/datepicker/datepicker.spec.ts" between
material2-7.3.3.tar.gz and material2-7.3.4.tar.gz

About: material2 offers Material Design components for Angular.

datepicker.spec.ts  (material2-7.3.3):datepicker.spec.ts  (material2-7.3.4)
skipping to change at line 1541 skipping to change at line 1541
}); });
describe('with missing DateAdapter and MAT_DATE_FORMATS', () => { describe('with missing DateAdapter and MAT_DATE_FORMATS', () => {
it('should throw when created', () => { it('should throw when created', () => {
expect(() => createComponent(StandardDatepicker)) expect(() => createComponent(StandardDatepicker))
.toThrowError(/MatDatepicker: No provider found for .*/); .toThrowError(/MatDatepicker: No provider found for .*/);
}); });
}); });
describe('datepicker toggle without a datepicker', () => {
it('should not throw on init if toggle does not have a datepicker', () => {
expect(() => {
const fixture = createComponent(DatepickerToggleWithNoDatepicker, [MatNa
tiveDateModule]);
fixture.detectChanges();
}).not.toThrow();
});
});
describe('popup positioning', () => { describe('popup positioning', () => {
let fixture: ComponentFixture<StandardDatepicker>; let fixture: ComponentFixture<StandardDatepicker>;
let testComponent: StandardDatepicker; let testComponent: StandardDatepicker;
let input: HTMLElement; let input: HTMLElement;
beforeEach(fakeAsync(() => { beforeEach(fakeAsync(() => {
fixture = createComponent(StandardDatepicker, [MatNativeDateModule]); fixture = createComponent(StandardDatepicker, [MatNativeDateModule]);
fixture.detectChanges(); fixture.detectChanges();
testComponent = fixture.componentInstance; testComponent = fixture.componentInstance;
input = fixture.debugElement.query(By.css('input')).nativeElement; input = fixture.debugElement.query(By.css('input')).nativeElement;
skipping to change at line 1956 skipping to change at line 1965
@Component({ @Component({
template: ` template: `
<input [matDatepicker]="d"> <input [matDatepicker]="d">
<mat-datepicker-toggle tabIndex="7" [for]="d"> <mat-datepicker-toggle tabIndex="7" [for]="d">
<div class="custom-icon" matDatepickerToggleIcon></div> <div class="custom-icon" matDatepickerToggleIcon></div>
</mat-datepicker-toggle> </mat-datepicker-toggle>
<mat-datepicker #d></mat-datepicker> <mat-datepicker #d></mat-datepicker>
`, `,
}) })
class DatepickerWithTabindexOnToggle {} class DatepickerWithTabindexOnToggle {}
@Component({
template: `
<mat-datepicker-toggle></mat-datepicker-toggle>
`,
})
class DatepickerToggleWithNoDatepicker {}
 End of changes. 2 change blocks. 
0 lines changed or deleted 10 lines changed or added

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