Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport most of the added: info #7677

Closed
wants to merge 65 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
76e65d9
test: check types for http request and response
bnoordhuis May 26, 2016
774fb78
doc: mention http request "aborted" events
kemitchell Jun 10, 2016
748702a
doc: update "who to cc in issues" chart
Fishrock123 May 11, 2016
1d4a4b2
doc: add lance to collaborators
lance Jun 24, 2016
75d21ff
doc: add CTC meeting minutes 2016-06-15
joshgav Jun 16, 2016
73cdc54
repl: fix tab completion for defined commands
princejwesley Jun 22, 2016
3ce574e
doc: clarify child_process stdout/stderr types
sartrey Jun 22, 2016
40bd4c1
doc: fix "sign.verify" typo in crypto doc.
rus0000 Jun 24, 2016
0ecdd6f
assert: remove unneeded arguments special handling
Trott Jun 24, 2016
9e0aad2
doc: improve usage of `zero`/`0`
Trott Jun 28, 2016
5542971
test: remove common.PORT from http tests
Trott Jun 29, 2016
efca61e
doc: fix detached child stdio example
cjihrig Jul 5, 2016
54930bf
doc: add bartosz sosnowski to colaborators
bzoz Jul 6, 2016
c93579d
doc: fix minor style issues in http.md
Trott Jul 4, 2016
db020b4
test: fix flaky test-net-write-slow
Trott Jul 6, 2016
eb841f9
doc: added information on how to run the linter.
diosney Jul 4, 2016
714aee2
doc: add benchmark who-to-CC info
Trott Jul 8, 2016
8c929aa
doc: dns.resolve fix callback argument description
qheaden Jul 4, 2016
f7e1bed
tools: remove unused variable
Trott Jul 7, 2016
c4cae1f
test: remove unused var in test-tls-server-verify
Trott Jul 7, 2016
700c24a
test: remove unused var from child-process-fork
Trott Jul 7, 2016
b98e20d
test: remove unused var from stream2 test
Trott Jul 7, 2016
6d75996
test: remove unused var in net-server-try-ports
Trott Jul 7, 2016
eaf40a0
benchmark: remove unused variables
Trott Jul 7, 2016
e3aabdb
test: remove unused vars from http/https tests
Trott Jul 7, 2016
09c8ec7
tools: update ESLint, fix unused vars bug
Trott Jul 7, 2016
a187b25
test: update weak module for gc tests
Trott May 27, 2016
c3c26a2
test: test isFullWidthCodePoint with invalid input
Trott Jun 25, 2016
53f114d
doc: fix cluster worker 'message' event
cjihrig Jun 15, 2016
27743a9
src: remove unused #include statement
bnoordhuis May 4, 2016
79e9d5b
src: don't use locale-sensitive strcasecmp()
bnoordhuis May 4, 2016
b5b44d8
tools: update certdata.txt
bnoordhuis Jun 22, 2016
b168928
crypto: update root certificates
bnoordhuis Jun 22, 2016
de57ead
test: remove internet/test-tls-connnect-cnnic
bnoordhuis Jun 23, 2016
46c8f84
src: check uv_async_init() return value
bnoordhuis Jun 22, 2016
b025cae
src: guard against starting fs watcher twice
bnoordhuis Jun 22, 2016
c4f8e2c
src: remove unused data member write_queue_size_
bnoordhuis Jun 22, 2016
5230f92
src: remove unused md_ data members
bnoordhuis Jun 22, 2016
6a8d0bb
src: remove duplicate HMAC_Init calls
bnoordhuis Jun 22, 2016
b3811fd
src: remove deprecated HMAC_Init, use HMAC_Init_ex
bnoordhuis Jun 22, 2016
8be9d0a
src: fix use-after-return in zlib bindings
bnoordhuis Jun 22, 2016
6d2779d
src: fix bad logic in uid/gid checks
bnoordhuis Jun 22, 2016
1e66668
tls: catch `certCbDone` exceptions
indutny May 20, 2016
b68e685
build: add v8 requirement to test-v8* in Makefile
targos Jun 29, 2016
110ce55
build: use BUILDTYPE when building V8 in Makefile
targos Jun 30, 2016
fcc01d3
doc: add `added:` information for assert
Trott May 11, 2016
a8e5be1
doc: add `added:` information for child_process
addaleax May 23, 2016
3391fc7
doc: add `added: ` data for cli.md
Trott May 25, 2016
d860b7f
doc: add `added:` information for console
edsadr May 26, 2016
17f7199
doc: add `added:` information for dns
julianduque May 27, 2016
636450d
doc: add `added:` information for https
addaleax Jun 23, 2016
1046532
doc: add `added` information for net
italoacasas Jun 3, 2016
9218395
doc: add `added:` information for os
bengl May 6, 2016
aed035a
doc: add `added:` information for path
julianduque May 26, 2016
496cf8a
doc: add `added:` information for punycode
firedfox May 17, 2016
65c09f6
doc: add `added:` information for querystring
bengl May 5, 2016
b1fc554
doc: add `added:` information for readline
julianduque May 26, 2016
5bb3651
doc: add `added:` information for repl
addaleax Jun 10, 2016
df19fcf
doc: add `added:` info for `string_decoder`
Trott May 13, 2016
44e2ebf
doc: add `added:` in for `tty`
Trott May 16, 2016
1e72bf1
doc: add `added:` information for url
bengl May 5, 2016
e5392f0
doc: add `added:` information for v8
Trott May 11, 2016
3622c7d
doc: add `added:` information for vm
addaleax May 27, 2016
bb9b959
doc: add `added:` information for zlib
addaleax May 18, 2016
cd43026
doc: add `added:` information for timers
addaleax Jun 30, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ $ ./configure && make -j8 test
Make sure the linter is happy and that all tests pass. Please, do not submit
patches that fail either check.

Running `make test` will run the linter as well unless one or more tests fail.
If you want to run the linter without running tests, use `make lint`.

If you are updating tests and just want to run a single test to check it, you
can use this syntax to run it exactly as the test harness would:

Expand Down
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ cctest: all

v8:
tools/make-v8.sh v8
$(MAKE) -C deps/v8 $(V8_ARCH) $(V8_BUILD_OPTIONS)
$(MAKE) -C deps/v8 $(V8_ARCH).$(BUILDTYPE_LOWER) $(V8_BUILD_OPTIONS)

test: | cctest # Depends on 'all'.
$(PYTHON) tools/test.py --mode=release doctool message pseudo-tty parallel sequential -J
Expand Down Expand Up @@ -227,22 +227,22 @@ test-timers:
test-timers-clean:
$(MAKE) --directory=tools clean

test-v8:
test-v8: v8
# note: performs full test unless QUICKCHECK is specified
deps/v8/tools/run-tests.py --arch=$(V8_ARCH) \
--mode=$(BUILDTYPE_LOWER) $(V8_TEST_NO_I18N) $(QUICKCHECK_ARG) \
--no-presubmit \
--shell-dir=$(PWD)/deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) \
$(TAP_V8)

test-v8-intl:
test-v8-intl: v8
# note: performs full test unless QUICKCHECK is specified
deps/v8/tools/run-tests.py --arch=$(V8_ARCH) \
--mode=$(BUILDTYPE_LOWER) --no-presubmit $(QUICKCHECK_ARG) \
--shell-dir=deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) intl \
$(TAP_V8_INTL)

test-v8-benchmarks:
test-v8-benchmarks: v8
deps/v8/tools/run-tests.py --arch=$(V8_ARCH) --mode=$(BUILDTYPE_LOWER) \
--download-data $(QUICKCHECK_ARG) --no-presubmit \
--shell-dir=deps/v8/out/$(V8_ARCH).$(BUILDTYPE_LOWER) benchmarks \
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ information about the governance of the Node.js project, see
* [benjamingr](https://github.com/benjamingr) - **Benjamin Gruenbaum** <benjamingr@gmail.com>
* [bmeck](https://github.com/bmeck) - **Bradley Farias** <bradley.meck@gmail.com>
* [brendanashworth](https://github.com/brendanashworth) - **Brendan Ashworth** <brendan.ashworth@me.com>
* [bzoz](https://github.com/bzoz) - **Bartosz Sosnowski** <bartosz@janeasystems.com>
* [calvinmetcalf](https://github.com/calvinmetcalf) - **Calvin Metcalf** <calvin.metcalf@gmail.com>
* [claudiorodriguez](https://github.com/claudiorodriguez) - **Claudio Rodriguez** <cjrodr@yahoo.com>
* [domenic](https://github.com/domenic) - **Domenic Denicola** <d@domenic.me>
Expand All @@ -186,6 +187,7 @@ information about the governance of the Node.js project, see
* [joaocgreis](https://github.com/joaocgreis) - **João Reis** <reis@janeasystems.com>
* [julianduque](https://github.com/julianduque) - **Julian Duque** <julianduquej@gmail.com>
* [JungMinu](https://github.com/JungMinu) - **Minwoo Jung** <jmwsoft@gmail.com>
* [lance](https://github.com/lance) - **Lance Ball** <lball@redhat.com>
* [lxe](https://github.com/lxe) - **Aleksey Smolenchuk** <lxe@lxe.co>
* [matthewloring](https://github.com/matthewloring) - **Matthew Loring** <mattloring@google.com>
* [mcollina](https://github.com/mcollina) - **Matteo Collina** <matteo.collina@gmail.com>
Expand Down
4 changes: 0 additions & 4 deletions benchmark/http/_chunky_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ function main(conf) {
}
}

var success = 0;
var failure = 0;
var min = 10;
var size = 0;
var mod = 317;
Expand All @@ -69,14 +67,12 @@ function main(conf) {
if ((d.length === pattern.length && d === pattern) ||
(d.length > pattern.length &&
d.slice(0, pattern.length) === pattern)) {
success += 1;
did = true;
} else {
pattern = 'HTTP/1.1 ';
if ((d.length === pattern.length && d === pattern) ||
(d.length > pattern.length &&
d.slice(0, pattern.length) === pattern)) {
failure += 1;
did = true;
}
}
Expand Down
2 changes: 0 additions & 2 deletions benchmark/static_http_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ var port = 12346;
var n = 700;
var bytes = 1024 * 5;

var requests = 0;
var responses = 0;

var body = 'C'.repeat(bytes);
Expand Down Expand Up @@ -37,6 +36,5 @@ server.listen(port, function() {
});
});
req.id = i;
requests++;
}
});
42 changes: 42 additions & 0 deletions doc/api/assert.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ additions or changes to any of the methods implemented and exposed by
the module.

## assert(value[, message])
<!-- YAML
added: v0.5.9
-->

An alias of [`assert.ok()`][] .

Expand All @@ -30,6 +33,9 @@ assert(false, 'it\'s false');
```

## assert.deepEqual(actual, expected[, message])
<!-- YAML
added: v0.1.21
-->

Tests for deep equality between the `actual` and `expected` parameters.
Primitive values are compared with the equal comparison operator ( `==` ).
Expand Down Expand Up @@ -88,6 +94,9 @@ property set equal to the value of the `message` parameter. If the `message`
parameter is undefined, a default error message is assigned.

## assert.deepStrictEqual(actual, expected[, message])
<!-- YAML
added: v1.2.0
-->

Generally identical to `assert.deepEqual()` with two exceptions. First,
primitive values are compared using the strict equality operator ( `===` ).
Expand All @@ -109,6 +118,9 @@ property set equal to the value of the `message` parameter. If the `message`
parameter is undefined, a default error message is assigned.

## assert.doesNotThrow(block[, error][, message])
<!-- YAML
added: v0.1.21
-->

Asserts that the function `block` does not throw an error. See
[`assert.throws()`][] for more details.
Expand Down Expand Up @@ -161,6 +173,9 @@ assert.doesNotThrow(
```

## assert.equal(actual, expected[, message])
<!-- YAML
added: v0.1.21
-->

Tests shallow, coercive equality between the `actual` and `expected` parameters
using the equal comparison operator ( `==` ).
Expand All @@ -184,6 +199,9 @@ property set equal to the value of the `message` parameter. If the `message`
parameter is undefined, a default error message is assigned.

## assert.fail(actual, expected, message, operator)
<!-- YAML
added: v0.1.21
-->

Throws an `AssertionError`. If `message` is falsy, the error message is set as
the values of `actual` and `expected` separated by the provided `operator`.
Expand All @@ -200,6 +218,9 @@ assert.fail(1, 2, 'whoops', '>');
```

## assert.ifError(value)
<!-- YAML
added: v0.1.97
-->

Throws `value` if `value` is truthy. This is useful when testing the `error`
argument in callbacks.
Expand All @@ -214,6 +235,9 @@ assert.ifError(new Error()); // Throws Error
```

## assert.notDeepEqual(actual, expected[, message])
<!-- YAML
added: v0.1.21
-->

Tests for any deep inequality. Opposite of [`assert.deepEqual()`][].

Expand Down Expand Up @@ -255,6 +279,9 @@ property set equal to the value of the `message` parameter. If the `message`
parameter is undefined, a default error message is assigned.

## assert.notDeepStrictEqual(actual, expected[, message])
<!-- YAML
added: v1.2.0
-->

Tests for deep strict inequality. Opposite of [`assert.deepStrictEqual()`][].

Expand All @@ -273,6 +300,9 @@ with a `message` property set equal to the value of the `message` parameter. If
the `message` parameter is undefined, a default error message is assigned.

## assert.notEqual(actual, expected[, message])
<!-- YAML
added: v0.1.21
-->

Tests shallow, coercive inequality with the not equal comparison operator
( `!=` ).
Expand All @@ -295,6 +325,9 @@ property set equal to the value of the `message` parameter. If the `message`
parameter is undefined, a default error message is assigned.

## assert.notStrictEqual(actual, expected[, message])
<!-- YAML
added: v0.1.21
-->

Tests strict inequality as determined by the strict not equal operator
( `!==` ).
Expand All @@ -317,6 +350,9 @@ If the values are strictly equal, an `AssertionError` is thrown with a
`message` parameter is undefined, a default error message is assigned.

## assert.ok(value[, message])
<!-- YAML
added: v0.1.21
-->

Tests if `value` is truthy. It is equivalent to
`assert.equal(!!value, true, message)`.
Expand All @@ -339,6 +375,9 @@ assert.ok(false, 'it\'s false');
```

## assert.strictEqual(actual, expected[, message])
<!-- YAML
added: v0.1.21
-->

Tests strict equality as determined by the strict equality operator ( `===` ).

Expand All @@ -360,6 +399,9 @@ If the values are not strictly equal, an `AssertionError` is thrown with a
`message` parameter is undefined, a default error message is assigned.

## assert.throws(block[, error][, message])
<!-- YAML
added: v0.1.21
-->

Expects the function `block` to throw an error.

Expand Down
Loading