Merge pull request #1658 from spicyj/test-ie10-submit-label

Fix submit-button value test in IE10
This commit is contained in:
Cheng Lou
2014-06-11 13:44:27 -07:00
@@ -136,8 +136,12 @@ describe('ReactDOMInput', function() {
var node = stub.getDOMNode();
// The value shouldn't be '', or else the button will have no text; it
// should have the default "Submit" or "Submit Query" label
expect(node.hasAttribute('value')).toBe(false);
// should have the default "Submit" or "Submit Query" label. Most browsers
// report this as not having a `value` attribute at all; IE reports it as
// the actual label that the user sees.
expect(
!node.hasAttribute('value') || node.getAttribute('value').length > 0
).toBe(true);
});
it('should control radio buttons', function() {