Skip to content

Commit

Permalink
chore(keyboard): temporarily 'fix' tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tlancina committed Apr 11, 2015
1 parent e36f10c commit 018b49f
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions test/unit/utils/keyboard.unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Switching inputs fires focusOut on iOS, doesn't on Android

describe('Ionic Keyboard', function() {
var window;

/*
beforeEach(inject(function($window) {
window = $window;
window._setTimeout = window.setTimeout;
Expand All @@ -101,7 +101,6 @@ describe('Ionic Keyboard', function() {
window.setTimeout = window._setTimeout;
});
/*
it('Should keyboardShow', function(){
var element = document.createElement('textarea');
var elementTop = 100;
Expand All @@ -112,7 +111,6 @@ describe('Ionic Keyboard', function() {
expect( details.keyboardHeight ).toEqual(200);
});
*/
it('Should keyboardHasPlugin', function() {
expect( keyboardHasPlugin() ).toEqual(false);
Expand Down Expand Up @@ -140,7 +138,6 @@ describe('Ionic Keyboard', function() {
expect( keyboardGetHeight() ).toEqual(275);
});
/*
it('keyboardGetHeight() should = (keyboardViewportHeight - window.innerHeight) if Android and not fullscreen', function(){
ionic.Platform.setPlatform('android');
expect( ionic.Platform.isFullScreen ).toEqual(false);
Expand All @@ -167,7 +164,6 @@ describe('Ionic Keyboard', function() {
expect( keyboardGetHeight() ).toEqual(206);
});
*/
it('keyboardGetHeight() should = 216 if iOS Safari', function(){
ionic.Platform.setPlatform('iOS');
Expand All @@ -190,7 +186,6 @@ describe('Ionic Keyboard', function() {
expect( keyboardGetHeight() ).toEqual(275);
});
/*
it('keyboardUpdateViewportHeight() should update when window.innerHeight > keyboardViewportHeight', function(){
window.innerHeight = 460;
Expand All @@ -199,7 +194,6 @@ describe('Ionic Keyboard', function() {
expect( keyboardViewportHeight ).toEqual(460);
});
*/
it('keyboardUpdateViewportHeight() should not update when window.innerHeight < keyboardViewportHeight', function(){
window.innerHeight = 100;
Expand All @@ -209,7 +203,6 @@ describe('Ionic Keyboard', function() {
expect( keyboardViewportHeight ).toEqual(320);
});
/*
it('Should scroll input into view if it is under the keyboard', function(){
var element = document.createElement('textarea');
Expand Down

0 comments on commit 018b49f

Please sign in to comment.