@@ -483,6 +483,20 @@ describe('MdCheckbox', () => {
483483
484484 expect ( inputElement . tabIndex ) . toBe ( 13 ) ;
485485 } ) ;
486+
487+ it ( 'should remove ripple if md-ripple-disabled input is set' , async ( ( ) => {
488+ testComponent . disableRipple = true ;
489+ fixture . detectChanges ( ) ;
490+
491+ expect ( checkboxNativeElement . querySelectorAll ( '[md-ripple]' ) . length )
492+ . toBe ( 0 , 'Expect no [md-ripple] in checkbox' ) ;
493+
494+ testComponent . disableRipple = false ;
495+ fixture . detectChanges ( ) ;
496+
497+ expect ( checkboxNativeElement . querySelectorAll ( '[md-ripple]' ) . length )
498+ . toBe ( 1 , 'Expect [md-ripple] in checkbox' ) ;
499+ } ) ) ;
486500 } ) ;
487501
488502 describe ( 'with multiple checkboxes' , ( ) => {
@@ -598,12 +612,16 @@ class MultipleCheckboxes { }
598612/** Simple test component with tabIndex */
599613@Component ( {
600614 template : `
601- <md-checkbox [tabindex]="customTabIndex" [disabled]="isDisabled">
615+ <md-checkbox
616+ [tabindex]="customTabIndex"
617+ [disabled]="isDisabled"
618+ [disableRipple]="disableRipple">
602619 </md-checkbox>` ,
603620} )
604621class CheckboxWithTabIndex {
605622 customTabIndex : number = 7 ;
606623 isDisabled : boolean = false ;
624+ disableRipple : boolean = false ;
607625}
608626
609627/** Simple test component with an aria-label set. */
0 commit comments