Tuesday 23 May 2017

Testing the FileReader API using a test run by node?

I'm looking for a way to experiment with the file reader API in a node test (REFERENCE - Reading files in JavaScript using the File APIs.).

I'd like to be able to run a node test that automates the experimentation. Something like:

> node test.js which would simulate file selection and read the file...the semantics should be the same as if I had selected a file using a browser button and read the file using the corresponding handler ... thoughts?



via Ole

No comments:

Post a Comment