"Fossies" - the Fresh Open Source Software Archive  

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

About: material2 offers Material Design components for Angular.

accordion.spec.ts  (material2-7.3.3):accordion.spec.ts  (material2-7.3.4)
skipping to change at line 115 skipping to change at line 115
expect(panels[1].classes['mat-expanded']).toBeFalsy(); expect(panels[1].classes['mat-expanded']).toBeFalsy();
fixture.componentInstance.accordion.closeAll(); fixture.componentInstance.accordion.closeAll();
fixture.detectChanges(); fixture.detectChanges();
expect(panels[0].classes['mat-expanded']).toBeFalsy(); expect(panels[0].classes['mat-expanded']).toBeFalsy();
expect(panels[1].classes['mat-expanded']).toBeFalsy(); expect(panels[1].classes['mat-expanded']).toBeFalsy();
}); });
it('should not register nested panels to the same accordion', () => { it('should not register nested panels to the same accordion', () => {
const fixture = TestBed.createComponent(NestedPanel); const fixture = TestBed.createComponent(NestedPanel);
fixture.detectChanges();
const innerPanel = fixture.componentInstance.innerPanel; const innerPanel = fixture.componentInstance.innerPanel;
const outerPanel = fixture.componentInstance.outerPanel; const outerPanel = fixture.componentInstance.outerPanel;
expect(innerPanel.accordion).not.toBe(outerPanel.accordion); expect(innerPanel.accordion).not.toBe(outerPanel.accordion);
}); });
it('should update the expansion panel if hideToggle changed', () => { it('should update the expansion panel if hideToggle changed', () => {
const fixture = TestBed.createComponent(AccordionWithHideToggle); const fixture = TestBed.createComponent(AccordionWithHideToggle);
const panel = fixture.debugElement.query(By.directive(MatExpansionPanel)); const panel = fixture.debugElement.query(By.directive(MatExpansionPanel));
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added

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