Skip to content

Conversation

@tinayuangao
Copy link
Contributor

@tinayuangao tinayuangao commented Apr 10, 2017

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 10, 2017
fixture.detectChanges();

fixture.whenStable().then(() => {
fixture.detectChanges();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the detectChanges calls necessary after whenStable? Also you may be able to avoid the nesting and the whenStable calls by wrapping the test with fakeAsync, instead of async.

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


}));

it('should not set indeterminate to false when checked is set programmatically', async(() => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may be able to avoid using async here as well.

if (this._indeterminate) {
Promise.resolve().then(() => {
this._indeterminate = false;
this.indeterminateChange.emit(this._indeterminate);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can go in a follow-up PR, but this should only emit when the value is different

@jelbourn jelbourn added the action: merge The PR is ready for merge by the caretaker label Apr 13, 2017
@jelbourn jelbourn merged commit de8b97f into angular:master Apr 17, 2017
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

md-checkbox: Implement a three state checkbox

4 participants