Add test to ensure extra zeros are covered by tests (#10033)

* Add test to ensure extra zeros are covered by tests

* Add DOM test fixture for trailing zeros

* Drop quotes to improve clarity
This commit is contained in:
Nathan Hunzaker
2017-06-29 13:44:05 -04:00
committed by Brandon Dail
parent dccc3850dc
commit 9d13557244
4 changed files with 73 additions and 0 deletions

View File

@@ -1657,6 +1657,7 @@ src/renderers/dom/shared/wrappers/__tests__/ReactDOMInput-test.js
* does change the string "2" to "2.0" with no change handler
* changes the number 2 to "2.0" using a change handler
* does change the string ".98" to "0.98" with no change handler
* distinguishes precision for extra zeroes in string number values
* should display `defaultValue` of number 0
* only assigns defaultValue if it changes
* should display "true" for `defaultValue` of `true`