0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00
nodejs/test
James M Snell 0e7d57af35 events: add prependListener() and prependOnceListener()
A handful of modules (including readable-streams) make
inappropriate use of the internal _events property. One
such use is to prepend an event listener to the front
of the array of listeners.

This adds EE.prototype.prependListener() and
EE.prototype.prependOnceListener() methods to add handlers
to the *front* of the listener array.

Doc update and test case is included.

Fixes: https://github.com/nodejs/node/issues/1817
PR-URL: https://github.com/nodejs/node/pull/6032
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
2016-04-22 09:28:37 -07:00
..
abort
addons test: fix another flaky stringbytes test 2016-04-06 06:22:40 -07:00
cctest
debugger test: fix test-debugger-client.js 2016-03-24 13:09:05 -07:00
disabled
fixtures module: fix resolution of filename with trailing slash 2016-04-20 09:45:57 -07:00
gc
internet test: move dns test to test/internet 2016-03-25 21:26:57 -07:00
known_issues events: don't inherit from Object.prototype 2016-04-18 21:45:26 -04:00
message test,tools: enable linting for undefined vars 2016-04-20 08:38:41 -07:00
parallel events: add prependListener() and prependOnceListener() 2016-04-22 09:28:37 -07:00
pummel test: fix pummel test failures 2016-04-04 14:18:49 -07:00
sequential net: Validate port in createServer().listen() 2016-04-20 15:41:18 -07:00
testpy
timers
.eslintrc test,tools: enable linting for undefined vars 2016-04-20 08:38:41 -07:00
common.js fs: Buffer and encoding enhancements to fs API 2016-03-25 14:21:27 -07:00
README.md test: fix another flaky stringbytes test 2016-04-06 06:22:40 -07:00

Tests

abort

Tests for when the --abort-on-uncaught-exception flag is used.

Runs on CI
No

addons

Tests for addon functionality along with some tests that require an addon to function properly.

Runs on CI
Yes

cctest

C++ test that is run as part of the build process.

Runs on CI
Yes

debugger

Tests for debugger functionality.

Runs on CI
No

disabled

Tests that have been disabled from running for various reasons.

Runs on CI
No

fixtures

Test fixtures used in various tests throughout the test suite.

gc

Tests for garbage collection related functionality.

Runs on CI
No

internet

Tests that make real outbound connections (mainly networking related modules). Tests for networking related modules may also be present in other directories, but those tests do not make outbound connections.

Runs on CI
No

known_issues

Tests reproducing known issues within the system.

Runs on CI
No

message

Tests for messages that are output for various conditions (console.log, error messages etc.)

Runs on CI
Yes

parallel

Various tests that are able to be run in parallel.

Runs on CI
Yes

pummel

Various tests for various modules / system functionality operating under load.

Runs on CI
No

sequential

Various tests that are run sequentially.

Runs on CI
Yes

testpy

Test configuration utility used by various test suites.

timers

Tests for timing utilities (setTimeout and setInterval).

Runs on CI
No