Skip to content

Commit

Permalink
Fix nested checkbox demo and update test name
Browse files Browse the repository at this point in the history
  • Loading branch information
devversion committed Jul 15, 2016
1 parent 74972aa commit 482aff1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/checkbox/checkbox.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ describe('MdCheckbox', () => {
expect(testComponent.onCheckboxClick).toHaveBeenCalledTimes(1);
});

it('should trigger the change event properly', async(() => {
it('should trigger a change event when the native input does', async(() => {
spyOn(testComponent, 'onCheckboxChange');

expect(inputElement.checked).toBe(false);
Expand Down
5 changes: 2 additions & 3 deletions src/demo-app/checkbox/checkbox-demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,5 @@ <h1>md-checkbox: Basic Example</h1>
</div>
</div>

<h1>Application Example: Nested Checklist</h1>
<h2><em>Caution: WIP!</em></h2>
<md-checkbox-demo-nested-checklist></md-checkbox-demo-nested-checklist>
<h1>Nested Checklist</h1>
<md-checkbox-demo-nested-checklist></md-checkbox-demo-nested-checklist>
2 changes: 1 addition & 1 deletion src/demo-app/checkbox/nested-checklist.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ <h2>Tasks</h2>
<md-checkbox [(ngModel)]="task.completed"
[checked]="allComplete(task)"
[indeterminate]="someComplete(task.subtasks)"
(change)="setAllCompleted(task.subtasks, $event)">
(change)="setAllCompleted(task.subtasks, $event.checked)">
<h3>{{task.name}}</h3>
</md-checkbox>
<ul>
Expand Down

0 comments on commit 482aff1

Please sign in to comment.