@@ -853,6 +853,9 @@ describe('input', function() {
853
853
} ) ;
854
854
855
855
it ( 'should validate when timezone is provided.' , function ( ) {
856
+ // We cannot use the default element
857
+ dealoc ( inputElm ) ;
858
+
856
859
inputElm = helper . compileInput ( '<input type="month" ng-model="value" name="alias" ' +
857
860
'max="{{ maxVal }}" ng-model-options="{timezone: \'UTC\', allowInvalid: true}"/>' ) ;
858
861
$rootScope . maxVal = '2013-01' ;
@@ -1127,6 +1130,9 @@ describe('input', function() {
1127
1130
} ) ;
1128
1131
1129
1132
it ( 'should validate when timezone is provided.' , function ( ) {
1133
+ // We cannot use the default element
1134
+ dealoc ( inputElm ) ;
1135
+
1130
1136
inputElm = helper . compileInput ( '<input type="week" ng-model="value" name="alias" ' +
1131
1137
'max="{{ maxVal }}" ng-model-options="{timezone: \'-2400\', allowInvalid: true}"/>' ) ;
1132
1138
// The calendar week comparison date is January 17. Setting the timezone to -2400
@@ -1434,6 +1440,9 @@ describe('input', function() {
1434
1440
} ) ;
1435
1441
1436
1442
it ( 'should validate when timezone is provided.' , function ( ) {
1443
+ // We cannot use the default element
1444
+ dealoc ( inputElm ) ;
1445
+
1437
1446
inputElm = helper . compileInput ( '<input type="datetime-local" ng-model="value" name="alias" ' +
1438
1447
'max="{{ maxVal }}" ng-model-options="{timezone: \'UTC\', allowInvalid: true}"/>' ) ;
1439
1448
$rootScope . maxVal = '2013-01-01T00:00:00' ;
@@ -1788,6 +1797,9 @@ describe('input', function() {
1788
1797
} ) ;
1789
1798
1790
1799
it ( 'should validate when timezone is provided.' , function ( ) {
1800
+ // We cannot use the default element
1801
+ dealoc ( inputElm ) ;
1802
+
1791
1803
inputElm = helper . compileInput ( '<input type="time" ng-model="value" name="alias" ' +
1792
1804
'max="{{ maxVal }}" ng-model-options="{timezone: \'UTC\', allowInvalid: true}"/>' ) ;
1793
1805
$rootScope . maxVal = '22:30:00' ;
0 commit comments