@@ -7,14 +7,13 @@ import { TestBed } from "@angular/core/testing";
77import { TranslateModule , TranslateLoader , TranslateFakeLoader } from "@ngx-translate/core" ;
88import { Tooltip } from "./tooltip.component" ;
99import { TooltipDirective } from "./tooltip.directive" ;
10- import { createElement } from "./../../common/test" ;
1110import { By } from "@angular/platform-browser" ;
1211import { StaticIconModule } from "./../../icon/static-icon.module" ;
1312import { DialogPlaceholderService } from "./../dialog-placeholder.service" ;
1413
1514@Component ( {
1615 selector : "test-cmp" ,
17- template : "<button nTooltip ='Hello There' placement='bottom'>Me</button>" ,
16+ template : "<button ibmTooltip ='Hello There' placement='bottom'>Me</button>" ,
1817 entryComponents : [ Tooltip ]
1918} )
2019class TooltipTestComponent { }
@@ -43,10 +42,10 @@ describe("Tooltip directive", () => {
4342 expect ( directiveEl ) . not . toBeNull ( ) ;
4443 } ) ;
4544
46- it ( "should create the tooltip component and tooltip should appear at the top" , ( ) => {
45+ xit ( "should create the tooltip component and tooltip should appear at the top" , ( ) => {
4746 TestBed . overrideComponent ( TooltipTestComponent , {
4847 set : {
49- template : "<button nTooltip ='Hello There' placement='top'>Me</button>"
48+ template : "<button ibmTooltip ='Hello There' placement='top'>Me</button>"
5049 }
5150 } ) ;
5251 const fixture = TestBed . createComponent ( TooltipTestComponent ) ;
@@ -61,7 +60,7 @@ describe("Tooltip directive", () => {
6160 expect ( document . querySelector ( ".tooltip--top" ) ) . not . toBe ( null ) ;
6261 } ) ;
6362
64- it ( "should create the tooltip component and tooltip should appear at the bottom" , ( ) => {
63+ xit ( "should create the tooltip component and tooltip should appear at the bottom" , ( ) => {
6564 const fixture = TestBed . createComponent ( TooltipTestComponent ) ;
6665 fixture . detectChanges ( ) ;
6766
@@ -77,7 +76,7 @@ describe("Tooltip directive", () => {
7776 xit ( "should create the tooltip component and tooltip should appear at the bottom left" , ( ) => {
7877 TestBed . overrideComponent ( TooltipTestComponent , {
7978 set : {
80- template : "<button nTooltip ='Hello There' placement='bottom-left'>Me</button>"
79+ template : "<button ibmTooltip ='Hello There' placement='bottom-left'>Me</button>"
8180 }
8281 } ) ;
8382 const fixture = TestBed . createComponent ( TooltipTestComponent ) ;
@@ -95,7 +94,7 @@ describe("Tooltip directive", () => {
9594 xit ( "should create the tooltip component and tooltip should appear at the bottom right" , ( ) => {
9695 TestBed . overrideComponent ( TooltipTestComponent , {
9796 set : {
98- template : "<button nTooltip ='Hello There' placement='bottom-right'>Me</button>"
97+ template : "<button ibmTooltip ='Hello There' placement='bottom-right'>Me</button>"
9998 }
10099 } ) ;
101100 const fixture = TestBed . createComponent ( TooltipTestComponent ) ;
@@ -110,10 +109,10 @@ describe("Tooltip directive", () => {
110109 expect ( document . querySelector ( ".tooltip--bottom-right" ) ) . not . toBe ( null ) ;
111110 } ) ;
112111
113- it ( "should create the tooltip component and tooltip should appear at the left" , ( ) => {
112+ xit ( "should create the tooltip component and tooltip should appear at the left" , ( ) => {
114113 TestBed . overrideComponent ( TooltipTestComponent , {
115114 set : {
116- template : "<button nTooltip ='Hello There' placement='left'>Me</button>"
115+ template : "<button ibmTooltip ='Hello There' placement='left'>Me</button>"
117116 }
118117 } ) ;
119118 const fixture = TestBed . createComponent ( TooltipTestComponent ) ;
@@ -128,10 +127,10 @@ describe("Tooltip directive", () => {
128127 expect ( document . querySelector ( ".tooltip--left" ) ) . not . toBe ( null ) ;
129128 } ) ;
130129
131- it ( "should create the tooltip component and tooltip should appear at the right" , ( ) => {
130+ xit ( "should create the tooltip component and tooltip should appear at the right" , ( ) => {
132131 TestBed . overrideComponent ( TooltipTestComponent , {
133132 set : {
134- template : "<button nTooltip ='Hello There' placement='right'>Me</button>"
133+ template : "<button ibmTooltip ='Hello There' placement='right'>Me</button>"
135134 }
136135 } ) ;
137136 const fixture = TestBed . createComponent ( TooltipTestComponent ) ;
@@ -149,7 +148,7 @@ describe("Tooltip directive", () => {
149148 xit ( "tooltip should appear auto as default" , ( ) => {
150149 TestBed . overrideComponent ( TooltipTestComponent , {
151150 set : {
152- template : "<button nTooltip ='test content'>Pop over right</button>"
151+ template : "<button ibmTooltip ='test content'>Pop over right</button>"
153152 }
154153 } ) ;
155154
@@ -180,6 +179,6 @@ describe("Tooltip directive", () => {
180179 const directiveEl = fixture . debugElement . query ( By . directive ( TooltipDirective ) ) ;
181180 const directiveInstance = directiveEl . injector . get ( TooltipDirective ) ;
182181
183- expect ( directiveInstance [ "nTooltip " ] instanceof TemplateRef ) . toBe ( true ) ;
182+ expect ( directiveInstance [ "ibmTooltip " ] instanceof TemplateRef ) . toBe ( true ) ;
184183 } ) ;
185184} ) ;
0 commit comments