"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/material-experimental/mdc-checkbox/checkbox.spec.ts" between
components-11.2.6.tar.gz and components-11.2.7.tar.gz

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

checkbox.spec.ts  (components-11.2.6):checkbox.spec.ts  (components-11.2.7)
skipping to change at line 357 skipping to change at line 357
expect(inputElement.checked).toBe(false); expect(inputElement.checked).toBe(false);
testComponent.isChecked = true; testComponent.isChecked = true;
fixture.detectChanges(); fixture.detectChanges();
flush(); flush();
expect(inputElement.checked).toBe(true); expect(inputElement.checked).toBe(true);
expect(testComponent.onCheckboxChange).not.toHaveBeenCalled(); expect(testComponent.onCheckboxChange).not.toHaveBeenCalled();
})); }));
it('should keep the view in sync if the `checked` value changes inside the `
change` listener',
fakeAsync(() => {
spyOn(testComponent, 'onCheckboxChange').and.callFake(() => {
checkboxInstance.checked = false;
});
labelElement.click();
fixture.detectChanges();
flush();
expect(inputElement.checked).toBe(false);
}));
it('should forward the required attribute', fakeAsync(() => { it('should forward the required attribute', fakeAsync(() => {
testComponent.isRequired = true; testComponent.isRequired = true;
fixture.detectChanges(); fixture.detectChanges();
expect(inputElement.required).toBe(true); expect(inputElement.required).toBe(true);
testComponent.isRequired = false; testComponent.isRequired = false;
fixture.detectChanges(); fixture.detectChanges();
expect(inputElement.required).toBe(false); expect(inputElement.required).toBe(false);
 End of changes. 1 change blocks. 
0 lines changed or deleted 14 lines changed or added

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