diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2016-07-15 02:24:38 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2016-07-27 13:56:55 +0200 |
commit | ea725eda426add1d684c80f2c2c585cd2ca797c9 (patch) | |
tree | be840f780dbb7f498ed688ee88d62d94b18ccc9d /test/fixtures/file-to-read-with-bom.txt | |
parent | 1d83013d19d859836d817cdabf1823018f384ea3 (diff) | |
download | android-node-v8-ea725eda426add1d684c80f2c2c585cd2ca797c9.tar.gz android-node-v8-ea725eda426add1d684c80f2c2c585cd2ca797c9.tar.bz2 android-node-v8-ea725eda426add1d684c80f2c2c585cd2ca797c9.zip |
test: ensure stream preprocessing order
Sometimes it is necessary to preprocess some initial bit
of a stream data before giving the entire stream
to the main processing function. Sometimes this bit should be extracted
from the stream before the main processing; sometimes it should be
returned to the stream. This test checks an order of stream
modes, methods and events for a possible preprocessing algorithm.
Stream BOM stripping is selected as a use case.
See https://github.com/nodejs/help/issues/221 as the prehistory.
PR-URL: https://github.com/nodejs/node/pull/7741
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'test/fixtures/file-to-read-with-bom.txt')
-rw-r--r-- | test/fixtures/file-to-read-with-bom.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fixtures/file-to-read-with-bom.txt b/test/fixtures/file-to-read-with-bom.txt new file mode 100644 index 0000000000..d46c8708d9 --- /dev/null +++ b/test/fixtures/file-to-read-with-bom.txt @@ -0,0 +1,3 @@ +abc +def +ghi |