Commit Graph

118 Commits

Author SHA1 Message Date
John Vilk
a9a732cb4d [Node] errno is a number, not a string. (#11890) 2016-11-02 23:33:27 +09:00
Flarna
45c5bcd854 Add process.mainModule, improve NodeModule (#12257)
* Add process.mainModule, improve NodeModule

Add mainModule in process. See https://nodejs.org/dist/latest-v6.x/docs/api/process.html#process_process_mainmodule

improve require.main see https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_accessing_the_main_module

improve NodeModule see https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_children and https://nodejs.org/dist/latest-v6.x/docs/api/modules.html#modules_module_parent

* Correct require.main and NodeModule
2016-10-28 23:13:14 +09:00
TonyYang
896f939be7 [node] Update events for repl (#12262)
* Update events for repl

* Update related tests

* Fix argument
2016-10-28 22:55:20 +09:00
TonyYang
8791a14cc5 [node] Update events for readline (#12261)
* Update events for readline

* update related tests
2016-10-28 22:54:20 +09:00
TonyYang
38f3096f49 [node] Update events for child_process (#12260)
* Update events for child_process

* Add related tests
2016-10-28 22:54:00 +09:00
Linda_pp
3a61c9ee44 Add missing argv0 property to NodeJS.Process (#12027)
Document:

https://nodejs.org/api/process.html#process_process_argv0

This was added at v6.4.0.
2016-10-19 21:12:05 +09:00
Marvin Hagemeister
cc3ca26de4 Fix wrong stream TransformOptions interface. (#11849)
Transform streams are duplex streams and extend the latter's constructor options.
2016-10-08 10:54:59 -07:00
TonyYang
c48f9b3fd5 [node] Add events for tls.Server and tls.TLSSocket (#11502)
* Add events for tls.Server

* Add tests for tls.Server

* Add tests for TLSSocket

* Add events for TLSSocket
2016-09-28 21:46:43 +09:00
TonyYang
7315e9e81f [node] Add events for dgram (#11501)
* Add events for dgram

* Add tests for dgram

* Correct dgram.RemoteInfo interface

* Correct emit

* Correct emit
2016-09-28 21:44:55 +09:00
Jonny Stoten
132ad0d959 Add timingSafeEqual typings (#11426) 2016-09-23 21:46:26 +09:00
TonyYang
c61446be23 Cancel type annotation on function 2016-09-22 02:45:06 +08:00
TonyYang
2698325c4b It should use boolean, not Boolean 2016-09-22 02:09:16 +08:00
TonyYang
3f858dadfb Correct test for net.Socket and net.Server events 2016-09-22 00:37:10 +08:00
TonyYang
9b72a0efa7 Add test for net.Server events 2016-09-21 17:41:16 +08:00
TonyYang
b7c965e817 Add test for net.Socket events 2016-09-21 17:30:04 +08:00
Jay Anslow
ab8d917787 Node.JS EventEmitter accepts symbols as event names. 2016-09-20 10:30:02 +01:00
TonyYang
012b7f1072 [node] Format test definition (#11308)
* Format test definition in v4.x

* Format test definition in v6.x
2016-09-19 16:24:01 +09:00
TonyYang
9d4d9924f1 [node] Clean up tls_tests and wrap in namespace (#11248)
* Clean up tls_tests and wrap in namespace for v6.x

* Clean up tls_tests and wrap in namespace for v4.x
2016-09-19 15:10:19 +09:00
TonyYang
48f9040fcc [node-tests.ts] Clean up crypto_tests and wrap in namespace (#11242)
* Clean up crypto_tests tests and wrap in namespace

* Clean up crypto_tests and wrap in namespace

* Use let to declares a block scope local variable

* Use let to declares a block scope local variable
2016-09-15 22:44:31 +09:00
TonyYang
62f98f1a3b [node-tests.ts] Clean up http_tests and net_tests (#11240)
* Clean up http_tests and net_tests

* Clean up fs tests and wrap in namespace
2016-09-15 22:43:21 +09:00
TonyYang
d685402549 [node-tests.ts] The test should test type, not function (#11238)
* The test should test type, not function

* The test should test type, not function
2016-09-15 22:42:34 +09:00
TonyYang
a72353df24 [node-tests.ts] A test should move to events_tests in node (#11237)
* A test should move to events_tests in node v6.x

* A test should move to events_tests in node v4.x
2016-09-15 22:42:17 +09:00
TonyYang
d1171f6895 [node.d.ts] Implement function tests for assert (#11175)
* Implement function tests for assert

* Implement function tests for assert - Node v4.x
2016-09-14 21:20:31 +09:00
Sheetal Nandi
0c5c7a2d2b Merge pull request #11093 from TonyPythoneer/patch-9
[node] Clean up testcase of assert
2016-09-09 16:00:37 -07:00
Sheetal Nandi
1109afea97 Merge pull request #11131 from TonyPythoneer/patch-17
[node] Clean up url tests and wrap in namespace
2016-09-09 12:39:40 -07:00
TonyYang
1d50912b2b [node] Correct constants module for node v6 (#11140)
* Correct constants module

* Add tests for constants

* Typo namespace

* Recovery constants module and add two stuffs
2016-09-09 23:52:36 +09:00
TonyYang
fc1b3e11df [node] imported and global process are same (#11092)
* imported and global process are same

* imported and global process are same
2016-09-09 23:33:18 +09:00
hriss95
255697da9f Node.d.ts: Update definitions for module "tls" (#11025)
* Node.d.ts: Update definitions for module "tls"

* Node.d.ts: Update definitions for module "tls"

* Node.d.ts: Revert function connect changes

* Node: Update definitions and tests for module "tls"

* Node: Fix a typo in definitions for module "tls"
2016-09-09 22:48:55 +09:00
TonyYang
1845c1fba0 Clean up url tests and wrap in namespace 2016-09-09 10:59:14 +08:00
Sheetal Nandi
40adfa30aa Merge pull request #11102 from TonyPythoneer/patch-10
[node] Clean up cluster tests and wrap in namespace
2016-09-08 10:16:13 -07:00
Sheetal Nandi
bbf2bb1f01 Merge pull request #11103 from TonyPythoneer/patch-11
[node] Clean up fs tests and wrap in namespace
2016-09-08 10:15:56 -07:00
Sheetal Nandi
df9755325f Merge pull request #11104 from TonyPythoneer/patch-12
[node] Clean up childProcess tests and wrap in namespace
2016-09-08 10:14:08 -07:00
Sheetal Nandi
f16104e02b Merge pull request #11105 from TonyPythoneer/patch-13
[node] Correct indent of comments of path testcases
2016-09-08 10:13:53 -07:00
Sheetal Nandi
8e760c7dbd Merge pull request #11108 from TonyPythoneer/patch-15
[node] Clean up util tests and wrap in namespace
2016-09-08 10:09:14 -07:00
TonyYang
50c18f1198 Clean up dgram tests and wrap in namespace 2016-09-08 12:53:47 +08:00
TonyYang
4e6e9396e9 Typo word for util_tests 2016-09-08 12:47:13 +08:00
TonyYang
9567ccc5e3 Clean up util tests and wrap in namespace 2016-09-08 12:38:02 +08:00
TonyYang
39ff73a28b Correct indent of comments of path testcases 2016-09-08 12:25:14 +08:00
TonyYang
ce5cb27b43 Clean up childProcess tests and wrap in namespace 2016-09-08 12:18:51 +08:00
TonyYang
90d1979cbf Clean up fs tests and wrap in namespace 2016-09-08 11:55:57 +08:00
TonyYang
ef9f5203e0 Clean up cluster tests and wrap in namespace 2016-09-08 11:47:44 +08:00
TonyYang
6defe2049a Clean up cluster tests and wrap in namespace 2016-09-08 11:46:09 +08:00
TonyYang
fe7b6acc16 Clean up os tests and wrap in namespace 2016-09-08 11:33:02 +08:00
Zhengbo Li
8da7848758 Merge pull request #11066 from alejo90/move-fs-constants
Moved fs constants under constants as per documentation
2016-09-07 10:32:19 -07:00
TonyYang
e1eb4995d2 Clean up assert module 2016-09-08 00:24:06 +08:00
Alejandro Sánchez
69089fffa5 Moved fs constants under constants as per documentation and added tests for access and accessSync 2016-09-07 08:24:16 -06:00
hriss95
104dfb08ed Node: Add tests for "timers" module (#11080) 2016-09-07 20:47:11 +09:00
TonyYang
98d009b227 [node] Test that imported and global console are same (#11062)
* Node.d.ts: Introduce module "console"

* Test that imported and global `console` are same

* Test that imported and global `console` are same

* declare module "console" for node v4
2016-09-07 20:42:29 +09:00
Masahiro Wakame
5bf030ac72 suppress error about node/node-tests.ts with --target es5 (#11056) 2016-09-07 00:20:08 +09:00
Alejandro Sánchez
fc931b26dd Made ErrnoException.errno a string as per NodeJS API documentation (#10970) 2016-09-06 23:46:48 +09:00