"Fossies" - the Fresh Open Source Software Archive  

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

About: material2 offers Material Design components for Angular.

list.spec.ts  (material2-7.3.3):list.spec.ts  (material2-7.3.4)
skipping to change at line 143 skipping to change at line 143
}); });
it('should create an action list', () => { it('should create an action list', () => {
const fixture = TestBed.createComponent(ActionListWithoutType); const fixture = TestBed.createComponent(ActionListWithoutType);
fixture.detectChanges(); fixture.detectChanges();
const items = fixture.componentInstance.listItems; const items = fixture.componentInstance.listItems;
expect(items.length).toBeGreaterThan(0); expect(items.length).toBeGreaterThan(0);
}); });
it('should set the proper class on the action list host', () => {
const fixture = TestBed.createComponent(ActionListWithoutType);
fixture.detectChanges();
const host = fixture.nativeElement.querySelector('mat-action-list');
expect(host.classList).toContain('mat-action-list');
});
it('should enable ripples for action lists by default', () => { it('should enable ripples for action lists by default', () => {
const fixture = TestBed.createComponent(ActionListWithoutType); const fixture = TestBed.createComponent(ActionListWithoutType);
fixture.detectChanges(); fixture.detectChanges();
const items = fixture.componentInstance.listItems; const items = fixture.componentInstance.listItems;
expect(items.toArray().every(item => !item._isRippleDisabled())).toBe(true); expect(items.toArray().every(item => !item._isRippleDisabled())).toBe(true);
}); });
it('should allow disabling ripples for specific action list items', () => { it('should allow disabling ripples for specific action list items', () => {
const fixture = TestBed.createComponent(ActionListWithoutType); const fixture = TestBed.createComponent(ActionListWithoutType);
 End of changes. 1 change blocks. 
0 lines changed or deleted 8 lines changed or added

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