@@ -1383,7 +1383,7 @@ describe('timepicker directive', function() {
13831383 describe ( 'when used with max' , function ( ) {
13841384 var changeInputValueTo ;
13851385 beforeEach ( inject ( function ( $sniffer ) {
1386- element = $compile ( '<timepicker ng-model="time" max="max"></timepicker>' ) ( $rootScope ) ;
1386+ element = $compile ( '<uib- timepicker ng-model="time" max="max"></uib- timepicker>' ) ( $rootScope ) ;
13871387 $rootScope . $digest ( ) ;
13881388 changeInputValueTo = function ( inputEl , value ) {
13891389 inputEl . val ( value ) ;
@@ -1735,40 +1735,3 @@ describe('timepicker directive', function() {
17351735 } ) ;
17361736 } ) ;
17371737} ) ;
1738-
1739- /* Deprecation tests below */
1740-
1741- describe ( 'timepicker deprecation' , function ( ) {
1742- beforeEach ( module ( 'ui.bootstrap.timepicker' ) ) ;
1743- beforeEach ( module ( 'ngAnimateMock' ) ) ;
1744- beforeEach ( module ( 'template/timepicker/timepicker.html' ) ) ;
1745-
1746- it ( 'should suppress warning' , function ( ) {
1747- module ( function ( $provide ) {
1748- $provide . value ( '$timepickerSuppressWarning' , true ) ;
1749- } ) ;
1750-
1751- inject ( function ( $compile , $log , $rootScope ) {
1752- spyOn ( $log , 'warn' ) ;
1753-
1754- $rootScope . time = new Date ( ) . setHours ( 14 , 40 , 0 , 0 ) ;
1755- var element = '<timepicker ng-model="time"></timepicker>' ;
1756- element = $compile ( element ) ( $rootScope ) ;
1757- $rootScope . $digest ( ) ;
1758- expect ( $log . warn . calls . count ( ) ) . toBe ( 0 ) ;
1759- } ) ;
1760- } ) ;
1761-
1762- it ( 'should give warning by default' , inject ( function ( $compile , $log , $rootScope ) {
1763- spyOn ( $log , 'warn' ) ;
1764-
1765- $rootScope . time = new Date ( ) . setHours ( 14 , 40 , 0 , 0 ) ;
1766- var element = '<timepicker ng-model="time"></timepicker>' ;
1767- element = $compile ( element ) ( $rootScope ) ;
1768- $rootScope . $digest ( ) ;
1769-
1770- expect ( $log . warn . calls . count ( ) ) . toBe ( 2 ) ;
1771- expect ( $log . warn . calls . argsFor ( 0 ) ) . toEqual ( [ 'TimepickerController is now deprecated. Use UibTimepickerController instead.' ] ) ;
1772- expect ( $log . warn . calls . argsFor ( 1 ) ) . toEqual ( [ 'timepicker is now deprecated. Use uib-timepicker instead.' ] ) ;
1773- } ) ) ;
1774- } ) ;
0 commit comments