mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Add regression test for #6119
This commit is contained in:
1 parent
0f050ad7cc
commit
0d3fc9de10
1 file changed
+9
@@ -139,6 +139,15 @@ describe('DOMPropertyOperations', () => {
|
||||
ReactDOM.render(<progress value="30" />, container);
|
||||
expect(container.firstChild.setAttribute).toHaveBeenCalledTimes(2);
|
||||
});
|
||||
|
||||
it('should return the progress to intermediate state on null value', () => {
|
||||
const container = document.createElement('div');
|
||||
ReactDOM.render(<progress value={30} />, container);
|
||||
ReactDOM.render(<progress value={null} />, container);
|
||||
// Ensure we move progress back to an indeterminate state.
|
||||
// Regression test for https://github.com/facebook/react/issues/6119
|
||||
expect(container.firstChild.hasAttribute('value')).toBe(false);
|
||||
});
|
||||
});
|
||||
|
||||
describe('deleteValueForProperty', () => {
|
||||
|
||||
Reference in new issue
Block a user