Skip to content

Commit

Permalink
Add specs for #1130 - Check if tabIndex works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Arian committed Aug 13, 2011
1 parent 690bd00 commit 3c8ada9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 1.4client/Element/Element.js
Expand Up @@ -69,3 +69,14 @@ describe('Element.get', function(){
});

});

describe('tabIndex', function(){

it('should get and set the correct tabIndex', function(){
var div = document.createElement('div');
div.innerHTML = '<input tabindex="2">';
expect($(div.firstChild).get('tabindex')).toEqual(2);
expect($(div.firstChild).set('tabindex', 3).get('tabindex')).toEqual(3);
});

});

0 comments on commit 3c8ada9

Please sign in to comment.