Skip to content

Commit

Permalink
Specs for bug #2061 and pull request #2068: get('text') with text-tra…
Browse files Browse the repository at this point in the history
…nsform: uppercase
  • Loading branch information
Arian committed Sep 13, 2011
1 parent 2cca70e commit 87b7ae3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 1.4client/Element/Element.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,17 @@ describe('Element', function(){

});

describe('text', function(){

it('should return the original text with `text-transform: uppercase`', function(){
var div = new Element('div', {html: '<div style="text-transform: uppercase">text</div>'});
div.inject(document.body);
expect($(div.firstChild).get('text')).toEqual('text');
div.destroy();
});

});

});

describe('tabIndex', function(){
Expand Down

0 comments on commit 87b7ae3

Please sign in to comment.