Files
react/fixtures
Nathan Hunzaker e29871e6be Remove loose check on non-number controlled inputs. Fix trailing dot issue. (#9584)
* Remove loose check when assigning non-number inputs

This commit removes a check I added when working on number input
issues where we perform a loose check on an input's value before we
assign it. This prevented controlled text inputs from disallowing
numeric text entry.

I also added a DOM fixture text case.

Related issues:

https://github.com/facebook/react/issues/9561#issuecomment-298394312

* Use strict equality as a guard before assigning input.value

This commit adds back the guard around assigning the value property to
an input, however it does it using a strict equals. This prevents
validated inputs, like emails and urls from losing the cursor
position.

It also adds associated test fixtures.

* Add copy command after build for interup with surge.sh
2017-05-03 11:45:52 -07:00
..
2017-01-06 17:24:23 +00:00
2017-04-07 14:05:17 -07:00
2017-01-06 17:24:23 +00:00
2017-04-06 16:03:49 -07:00
2017-01-06 17:24:23 +00:00
2017-01-06 17:24:23 +00:00
2017-01-06 17:24:23 +00:00

Manual Testing Fixtures

This folder exists for React contributors only.
If you use React you don't need to worry about it.

These fixtures verify that the built React distributions are usable in different environments.
They are not running automatically. (At least not yet, feel free to contribute to automate them.)

Run them when you make changes to how we package React, ReactDOM, and addons.

How to Run

First, build React and the fixtures:

cd react
npm run build

cd fixtures
node build-all.js

Then run a local server at the root of the repo, e.g.

npm i -g pushstate-server
cd ..
pushstate-server .

(Too complicated? Send a PR to simplify this :-).

Then open the corresponding URLs, for example:

open http://localhost:9000/fixtures/globals.html
open http://localhost:9000/fixtures/requirejs.html
open http://localhost:9000/fixtures/systemjs.html
open http://localhost:9000/fixtures/browserify/index.html
open http://localhost:9000/fixtures/brunch/index.html
open http://localhost:9000/fixtures/rjs/index.html
open http://localhost:9000/fixtures/systemjs-builder/index.html
open http://localhost:9000/fixtures/webpack/index.html
open http://localhost:9000/fixtures/webpack-alias/index.html

You should see two things:

  • "Hello World" fading in with an animation.
  • No errors in the console.