Skip to content

Commit

Permalink
Revert "Cleanup and bug fixes for merge."
Browse files Browse the repository at this point in the history
This reverts commit 4ba86d1.
  • Loading branch information
jim committed Apr 4, 2016
1 parent 4ba86d1 commit 3714855
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,25 +163,25 @@ describe('ReactDOMTextarea', function() {
it('should take updates to `defaultValue` for uncontrolled textarea', function() {
var container = document.createElement('div');

var node = ReactDOM.render(<textarea defaultValue="0" />, container);
var node = ReactDOM.render(<textarea type="text" defaultValue="0" />, container);

expect(node.value).toBe('0');

ReactDOM.render(<textarea defaultValue="1" />, container);
ReactDOM.render(<textarea type="text" defaultValue="1" />, container);

expect(node.value).toBe('1');
});

it('should take updates to children in lieu of `defaultValue` for uncontrolled textarea', function() {
var container = document.createElement('div');

var node = ReactDOM.render(<textarea defaultValue="0" />, container);
var node = ReactDOM.render(<textarea type="text" defaultValue="0" />, container);

expect(node.value).toBe('0');

spyOn(console, 'error'); // deprecation warning for `children` content

ReactDOM.render(<textarea>1</textarea>, container);
ReactDOM.render(<textarea type="text">1</textarea>, container);

expect(node.value).toBe('1');
});
Expand Down

0 comments on commit 3714855

Please sign in to comment.