@@ -79,7 +79,7 @@ Switching inputs fires focusOut on iOS, doesn't on Android
79
79
80
80
describe ( 'Ionic Keyboard' , function ( ) {
81
81
var window ;
82
-
82
+ /*
83
83
beforeEach(inject(function($window) {
84
84
window = $window;
85
85
window._setTimeout = window.setTimeout;
@@ -101,7 +101,6 @@ describe('Ionic Keyboard', function() {
101
101
window.setTimeout = window._setTimeout;
102
102
});
103
103
104
- /*
105
104
it('Should keyboardShow', function(){
106
105
var element = document.createElement('textarea');
107
106
var elementTop = 100;
@@ -112,7 +111,6 @@ describe('Ionic Keyboard', function() {
112
111
113
112
expect( details.keyboardHeight ).toEqual(200);
114
113
});
115
- */
116
114
117
115
it('Should keyboardHasPlugin', function() {
118
116
expect( keyboardHasPlugin() ).toEqual(false);
@@ -140,7 +138,6 @@ describe('Ionic Keyboard', function() {
140
138
expect( keyboardGetHeight() ).toEqual(275);
141
139
});
142
140
143
- /*
144
141
it('keyboardGetHeight() should = (keyboardViewportHeight - window.innerHeight) if Android and not fullscreen', function(){
145
142
ionic.Platform.setPlatform('android');
146
143
expect( ionic.Platform.isFullScreen ).toEqual(false);
@@ -167,7 +164,6 @@ describe('Ionic Keyboard', function() {
167
164
168
165
expect( keyboardGetHeight() ).toEqual(206);
169
166
});
170
- */
171
167
172
168
it('keyboardGetHeight() should = 216 if iOS Safari', function(){
173
169
ionic.Platform.setPlatform('iOS');
@@ -190,7 +186,6 @@ describe('Ionic Keyboard', function() {
190
186
expect( keyboardGetHeight() ).toEqual(275);
191
187
});
192
188
193
- /*
194
189
195
190
it('keyboardUpdateViewportHeight() should update when window.innerHeight > keyboardViewportHeight', function(){
196
191
window.innerHeight = 460;
@@ -199,7 +194,6 @@ describe('Ionic Keyboard', function() {
199
194
200
195
expect( keyboardViewportHeight ).toEqual(460);
201
196
});
202
- */
203
197
204
198
it('keyboardUpdateViewportHeight() should not update when window.innerHeight < keyboardViewportHeight', function(){
205
199
window.innerHeight = 100;
@@ -209,7 +203,6 @@ describe('Ionic Keyboard', function() {
209
203
expect( keyboardViewportHeight ).toEqual(320);
210
204
});
211
205
212
- /*
213
206
214
207
it('Should scroll input into view if it is under the keyboard', function(){
215
208
var element = document.createElement('textarea');
0 commit comments