@@ -88,38 +88,38 @@ describe('IgxTooltip', () => {
8888 verifyTooltipVisibility ( tooltipNativeElement , tooltipTarget , false ) ;
8989 } ) ) ;
9090
91- it ( 'should render a default arrow' , fakeAsync ( ( ) => {
92- expect ( tooltipTarget . disableArrow ) . toBeFalse ( ) ;
91+ it ( 'should not render a default arrow' , fakeAsync ( ( ) => {
92+ expect ( tooltipTarget . hasArrow ) . toBeFalse ( ) ;
9393
9494 hoverElement ( button ) ;
9595 flush ( ) ;
9696
9797 verifyTooltipVisibility ( tooltipNativeElement , tooltipTarget , true ) ;
9898
99- const arrow = tooltipNativeElement . querySelector ( '.igx-tooltip--top ' ) ;
99+ const arrow = tooltipNativeElement . querySelector ( '.igx-tooltip--bottom ' ) ;
100100 expect ( arrow ) . not . toBeNull ( ) ;
101+ expect ( arrow . style . display ) . toEqual ( "none" ) ;
101102 } ) ) ;
102103
103- it ( 'should show/hide the arrow via the `disableArrow ` property' , fakeAsync ( ( ) => {
104- expect ( tooltipTarget . disableArrow ) . toBeFalse ( ) ;
105- expect ( tooltipNativeElement . querySelector ( '.igx-tooltip--top ' ) ) . toBeNull ( ) ;
104+ it ( 'should show/hide the arrow via the `hasArrow ` property' , fakeAsync ( ( ) => {
105+ expect ( tooltipTarget . hasArrow ) . toBeFalse ( ) ;
106+ expect ( tooltipNativeElement . querySelector ( '.igx-tooltip--bottom ' ) ) . toBeNull ( ) ;
106107
107- tooltipTarget . disableArrow = true ;
108+ tooltipTarget . hasArrow = true ;
108109 fix . detectChanges ( ) ;
109110
110111 hoverElement ( button ) ;
111112 flush ( ) ;
112113
113114 verifyTooltipVisibility ( tooltipNativeElement , tooltipTarget , true ) ;
114115
115- expect ( tooltipTarget . disableArrow ) . toBeTrue ( ) ;
116- const arrow = tooltipNativeElement . querySelector ( '.igx-tooltip--top ' ) ;
117- expect ( arrow . style . display ) . toEqual ( "none " ) ;
116+ expect ( tooltipTarget . hasArrow ) . toBeTrue ( ) ;
117+ const arrow = tooltipNativeElement . querySelector ( '.igx-tooltip--bottom ' ) ;
118+ expect ( arrow . style . display ) . toEqual ( "" ) ;
118119
119- tooltipTarget . disableArrow = false ;
120+ tooltipTarget . hasArrow = false ;
120121 fix . detectChanges ( ) ;
121- expect ( arrow . style . display ) . toEqual ( "" ) ;
122- expect ( arrow . style . left ) . toEqual ( "75px" ) ;
122+ expect ( arrow . style . display ) . toEqual ( "none" ) ;
123123 } ) ) ;
124124
125125 it ( 'show target tooltip when hovering its target and ignore [tooltip] input' , fakeAsync ( ( ) => {
@@ -700,14 +700,14 @@ describe('IgxTooltip', () => {
700700 } ) ) ;
701701
702702 it ( 'should correctly manage arrow state between different targets' , fakeAsync ( ( ) => {
703- targetOne . disableArrow = true ;
703+ targetOne . hasArrow = true ;
704704 fix . detectChanges ( ) ;
705705
706706 hoverElement ( buttonOne ) ;
707707 flush ( ) ;
708708
709709 verifyTooltipVisibility ( tooltipNativeElement , targetOne , true ) ;
710- expect ( tooltipNativeElement . querySelector ( '.igx-tooltip--top ' ) . style . display ) . toEqual ( 'none ' ) ;
710+ expect ( tooltipNativeElement . querySelector ( '.igx-tooltip--bottom ' ) . style . display ) . toEqual ( '' ) ;
711711
712712 unhoverElement ( buttonOne ) ;
713713 flush ( ) ;
@@ -716,7 +716,7 @@ describe('IgxTooltip', () => {
716716 flush ( ) ;
717717
718718 verifyTooltipVisibility ( tooltipNativeElement , targetTwo , true ) ;
719- expect ( tooltipNativeElement . querySelector ( '.igx-tooltip--top ' ) . style . display ) . toEqual ( '' ) ;
719+ expect ( tooltipNativeElement . querySelector ( '.igx-tooltip--bottom ' ) . style . display ) . toEqual ( 'none ' ) ;
720720 } ) ) ;
721721 } ) ;
722722
@@ -938,7 +938,7 @@ export const verifyTooltipPosition = (
938938 tooltipNativeElement : HTMLElement ,
939939 actualTarget : { nativeElement : HTMLElement } ,
940940 shouldAlign :boolean = true ,
941- placement : TooltipPlacement = 'top ' ,
941+ placement : TooltipPlacement = 'bottom ' ,
942942 offset : number = 6
943943) => {
944944 const tooltip = tooltipNativeElement . getBoundingClientRect ( ) ;
0 commit comments