mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
feat(checkbox): align with 2018 material design spec (#12493)
Aligns the checkbox component with the latest Material design spec.
This commit is contained in:
committed by
mmalerba
parent
79801e0210
commit
95acccc65b
@@ -14,16 +14,10 @@ describe('checkbox', () => {
|
||||
expect(inputEl.getAttribute('checked'))
|
||||
.toBeTruthy('Expect checkbox "checked" property to be true');
|
||||
|
||||
await browser.wait(ExpectedConditions.not(
|
||||
ExpectedConditions.presenceOf(element(by.css('div.mat-ripple-element')))));
|
||||
|
||||
checkboxEl.click();
|
||||
|
||||
expect(inputEl.getAttribute('checked'))
|
||||
.toBeFalsy('Expect checkbox "checked" property to be false');
|
||||
|
||||
await browser.wait(ExpectedConditions.not(
|
||||
ExpectedConditions.presenceOf(element(by.css('div.mat-ripple-element')))));
|
||||
});
|
||||
|
||||
it('should toggle the checkbox when pressing space', () => {
|
||||
|
||||
Reference in New Issue
Block a user