Commit Graph

165 Commits

Author SHA1 Message Date
Diga Widyaprana
c51a930a2c ESlint manual fix 2016-02-28 02:36:06 +08:00
Diga Widyaprana
d1cbc68ea7 Eslint autofix 2016-02-28 02:36:06 +08:00
Diga Widyaprana
51ad3c1ee0 Add env to eslintrc
- node env at root eslintrc
- mocha env at test/ eslintrc
2016-02-28 02:36:06 +08:00
Zhu Liang
b14018eed6 fixed test case 2016-02-01 13:00:13 +08:00
Guillermo Rauch
5ccf58873b Merge pull request #924 from nkzawa/patch-25
Enable to run all tests on nodejs
2015-12-03 09:06:49 -08:00
nkzawa
6ee4283da0 enable to run all tests on nodejs 2015-12-03 19:37:30 +09:00
nkzawa
41956806a7 fix a socket can't connect while disconnecting a different one 2015-12-03 17:44:47 +09:00
Guillermo Rauch
64e65aae7e Merge pull request #921 from nkzawa/patch-21
Fix an unstable test
2015-12-02 09:55:22 -08:00
nkzawa
18be967adb ipv6 support 2015-12-03 00:09:31 +09:00
nkzawa
3313401082 fix an unstable test 2015-12-02 13:13:07 +09:00
nkzawa
bc764aeaac add a test for the case reconnection doesn't work 2015-09-03 02:21:12 +09:00
Guillermo Rauch
adbd0e3e36 added support for ping and pong events
https://github.com/Automattic/socket.io/issues/1951
2015-04-05 15:45:17 -07:00
Guillermo Rauch
2a2866b049 proper handling of disconnection while in opening state 2015-04-05 12:20:13 -07:00
Guillermo Rauch
1e8e125d13 instrumentation / style tweaks 2015-04-05 12:19:51 -07:00
Guillermo Rauch
ffc12af647 added tests for same-namespace new connection handling (https://github.com/Automattic/socket.io/issues/1956) 2015-04-05 12:18:50 -07:00
Guillermo Rauch
210d65d9dd Merge pull request #803 from masakij/fix-port-hint
Fix port hint
2015-01-30 09:54:15 -08:00
Naoyuki Kanezawa
b15404e218 support compression 2015-01-22 06:51:49 +09:00
masakij
ecf6c4e139 ADD: location.port test
1 failing
1. Error: expected '443' to equal '3000'
2015-01-20 16:13:31 +09:00
Tony Kovanen
5d96f92940 Make sure socket.id is defined 2015-01-17 22:20:00 +02:00
Tony Kovanen
b0c4c2edd0 Added socket.id property
- Make sure `socket.id` is defined on connect
- Make sure `socket.id` is cleared on disconnect
- Make sure `socket.id` is updated on reconnect
2015-01-14 18:18:02 +02:00
Guillermo Rauch
f9276e9674 Merge pull request #797 from Automattic/fix-default-url
fix url parsing when uri string is undefined
2015-01-11 15:13:17 -08:00
Roman Shtylman
3f139c8863 test: make url tests run on the browser 2015-01-11 15:05:12 -08:00
Roman Shtylman
1e899abd45 fix url parsing when uri string is undefined
The url parser was ignoring port hints from window.location when the uri
string was undefined. This commit changes the parser to use
window.location.host (not hostname) so that the port is preserved.
2015-01-11 13:10:36 -08:00
Mark Mokryn
e8c5779af6 improve fix for GH-786 plus test it and also backoff 2014-11-23 16:50:21 +02:00
Tony Kovanen
361acede8e Increase timeout.
Increased timeout in tests before closing the manager engine so
reconnects will take place with more certainty.
2014-10-19 22:10:49 +03:00
Tony Kovanen
b5d808e0d6 Merge pull request #767 from nkzawa/patch-12
fix reconnection after reconnecting manually
2014-10-19 13:52:43 +03:00
Naoyuki Kanezawa
bf1fb628df fix reconnection after reconnecting manually 2014-10-19 12:14:18 +09:00
Naoyuki Kanezawa
a8b3fbea55 enable to stop reconnecting 2014-10-19 12:11:30 +09:00
Tony Kovanen
baf60c1502 Merge pull request #732 from nkzawa/patch-10
Enable to reconnect manually
2014-09-21 14:18:50 -06:00
Guillermo Rauch
7912f14c94 Merge pull request #754 from toshipon/patch-1
Support no schema relative url
2014-09-11 17:56:17 +03:00
Guillermo Rauch
fca25797a3 register other nsps 2014-09-04 12:28:29 +02:00
Guillermo Rauch
ae7c5ac007 fix tests 2014-09-04 12:20:45 +02:00
toshipon
6a9144c226 Support no schema relative url 2014-08-30 18:43:32 +09:00
Tony Kovanen
4e2edde13b Further increase test timeout. 2014-08-26 00:59:47 +03:00
Tony Kovanen
c732927f8e Double to singly quotes in tests. 2014-08-25 23:40:06 +03:00
Tony Kovanen
f501053c64 Extend timeout and remember to close everything in each test case. 2014-08-25 23:22:04 +03:00
Naoyuki Kanezawa
a0f63d7408 enable to reconnect manually 2014-07-21 02:20:22 +09:00
Naoyuki Kanezawa
8cc2f57451 fix autoConnect option 2014-07-16 03:59:43 +09:00
Guillermo Rauch
f8afcce007 Merge pull request #680 from FredyC/add-auto-connect
Add autoConnect option
2014-06-21 18:12:41 -07:00
Tony Kovanen
f952b09e36 Fix possible security error on IE by closing all sockets 2014-06-19 03:20:18 +03:00
Tony Kovanen
c3d3b0b588 Fix error propagation test for old IE 2014-06-19 03:07:58 +03:00
Tony Kovanen
041c95e40a Added tests and enhanced event propagation 2014-06-19 02:58:22 +03:00
Tony Kovanen
8925b62e4e Test fixes.
- Readded all the browsers to Zuul config.
- Fixed b64 encoding test, typo + we're better off asserting the actual b64
  encoding.
- Got rid of the base64-js dependency only needed by the test described above.
- Running iPhone tests for 6.0 and above due to some really weird timeout
  issues on older iPhone emulators, where tests do succeed when run
  individually (and fail on no other browser even together).
2014-06-18 02:57:34 +03:00
Guillermo Rauch
fb17a52bc9 fix base64 test 2014-06-17 14:12:03 -07:00
Guillermo Rauch
b3129141e4 fix indent 2014-06-17 10:56:03 -07:00
Guillermo Rauch
570bcd0626 fix SCRIPT5022: SecurityError on IE
this error is not caused by cross-domain, but by the limit
on how many open connections the tab might have

thus we close each connection after the test is done
2014-06-17 09:34:41 -07:00
Tony Kovanen
5834fed8a9 Delete bad test, set timeouts before disconnecting eioc 2014-06-17 03:24:28 +03:00
Tony Kovanen
109395ee34 Propagating reconnecting and reconnection events to socket 2014-06-13 03:45:41 +03:00
Tony Kovanen
a20671c511 Propagate reconnection events to socket from manager 2014-06-13 03:28:38 +03:00
Kevin Ingersoll
f09d2b439c Fix protocol regex, use falsy port, use href as unique ID 2014-06-12 14:16:07 -07:00