Skip to content

Commit 018b49f

Browse files
committed
chore(keyboard): temporarily 'fix' tests
1 parent e36f10c commit 018b49f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Diff for: test/unit/utils/keyboard.unit.js

+1-8
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Switching inputs fires focusOut on iOS, doesn't on Android
7979

8080
describe('Ionic Keyboard', function() {
8181
var window;
82-
82+
/*
8383
beforeEach(inject(function($window) {
8484
window = $window;
8585
window._setTimeout = window.setTimeout;
@@ -101,7 +101,6 @@ describe('Ionic Keyboard', function() {
101101
window.setTimeout = window._setTimeout;
102102
});
103103
104-
/*
105104
it('Should keyboardShow', function(){
106105
var element = document.createElement('textarea');
107106
var elementTop = 100;
@@ -112,7 +111,6 @@ describe('Ionic Keyboard', function() {
112111
113112
expect( details.keyboardHeight ).toEqual(200);
114113
});
115-
*/
116114
117115
it('Should keyboardHasPlugin', function() {
118116
expect( keyboardHasPlugin() ).toEqual(false);
@@ -140,7 +138,6 @@ describe('Ionic Keyboard', function() {
140138
expect( keyboardGetHeight() ).toEqual(275);
141139
});
142140
143-
/*
144141
it('keyboardGetHeight() should = (keyboardViewportHeight - window.innerHeight) if Android and not fullscreen', function(){
145142
ionic.Platform.setPlatform('android');
146143
expect( ionic.Platform.isFullScreen ).toEqual(false);
@@ -167,7 +164,6 @@ describe('Ionic Keyboard', function() {
167164
168165
expect( keyboardGetHeight() ).toEqual(206);
169166
});
170-
*/
171167
172168
it('keyboardGetHeight() should = 216 if iOS Safari', function(){
173169
ionic.Platform.setPlatform('iOS');
@@ -190,7 +186,6 @@ describe('Ionic Keyboard', function() {
190186
expect( keyboardGetHeight() ).toEqual(275);
191187
});
192188
193-
/*
194189
195190
it('keyboardUpdateViewportHeight() should update when window.innerHeight > keyboardViewportHeight', function(){
196191
window.innerHeight = 460;
@@ -199,7 +194,6 @@ describe('Ionic Keyboard', function() {
199194
200195
expect( keyboardViewportHeight ).toEqual(460);
201196
});
202-
*/
203197
204198
it('keyboardUpdateViewportHeight() should not update when window.innerHeight < keyboardViewportHeight', function(){
205199
window.innerHeight = 100;
@@ -209,7 +203,6 @@ describe('Ionic Keyboard', function() {
209203
expect( keyboardViewportHeight ).toEqual(320);
210204
});
211205
212-
/*
213206
214207
it('Should scroll input into view if it is under the keyboard', function(){
215208
var element = document.createElement('textarea');

0 commit comments

Comments
 (0)