Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2016-04-27Update 'noPeers' to stop using deprecated 'torrent.swarm'Jonathan Harper
2016-04-27Torrent emits 'noPeers' even when swarm is empty after announceJonathan Harper
2016-04-21set dhtPort to correct port after listeningFeross Aboukhadijeh
2016-04-21More thorough object cleanupFeross Aboukhadijeh
- Only pass `torrent.infoHash` to the Chunk Store constructor, instead of the `Torrent` instance itself, to prevent accidental memory leaks of the `Torrent` object by the store. (Open an issue if you were using other properties. They can be re-added.) - Non-fatal errors with a single torrent will be emitted at `torrent.on('error')`. You should listen to this event. Previously, all torrent errors were also emitted on `client.on('error')` and handling `torrent.on('error')` was optional. This design is better since now it is possible to distinguish between fatal client errors (`client.on('error')`) when the whole client becomes unusable versus recoverable errors where only a single torrent fails (`torrent.on('error')`) but the client can continue to be used. However, if there is no `torrent.on('error')` event, then the error will be forwarded to `client.on('error')`. This prevents crashing the client when the user only has a listener on the client, but it makes it impossible for them to determine a client error versus a torrent error. - Errors creating a torrent with `client.seed` are now emitted on the returned `torrent` object instead of the client (unless there is no event listeners on `torrent.on('error')` as previously discussed). The torrent object is now also destroyed automatically for the user, as was probably expected. - If `client.get` is passed a `Torrent` instance, it now only returns it if it is present in the client.
2016-04-21fix duplicate client.add handling and re-enable testFeross Aboukhadijeh
2016-04-21BREAKING: Major cleanupFeross Aboukhadijeh
### Added - `client.listening` property to signal whether TCP server is listening for incoming connections. ### Changed - Merged `Swarm` class into `Torrent` object. Properties on `torrent.swarm` (like `torrent.swarm.wires`) now exist on `torrent` (e.g. `torrent.wires`). - `torrent.addPeer` can no longer be called before the `infoHash` event has been emitted. - Remove `torrent.on('listening')` event. Use `client.on('listening')` instead. - Remove support from `TCPPool` for listening on multiple ports. This was not used by WebTorrent and just added complexity. There is now a single `TCPPool` instance for the whole WebTorrent client. - Deprecate: Do not use `client.download()` anymore. Use `client.add()` instead. - Deprecate: Do not use `torrent.swarm` anymore. Use `torrent` instead. ### Fixed - When there is a `torrent.on('error')` listener, don't also emit `client.on('error')`. - Do not return existing torrent object when duplicate torrent is added. Fire an `'error'` event instead. - Memory leak of `Torrent` object caused by `RarityMap` - Memory leak of `Torrent` object caused by `TCPPool` - `client.ratio` and `torrent.ratio` are now calculated as `uploaded / received` instead of `uploaded / downloaded`.
2016-03-29fix swarm testFeross Aboukhadijeh
2016-03-29remove one more reference to `bittorrent-swarm`Feross Aboukhadijeh
2016-03-29Remove `portfinder` dependencyFeross Aboukhadijeh
2016-03-29Deprecate bittorrent-swarm, inline into webtorrentFeross Aboukhadijeh
bittorrent-swarm and the Torrent object in webtorrent are very coupled. It doesn't make much sense to publish them separately, as bittorrent-swarm can't be used independently.
2016-03-11BREAKING: Move command line to new package: webtorrent-cliFeross Aboukhadijeh
2016-02-28use webtorrent-fixturesFeross Aboukhadijeh
2016-02-22test: add successive sync client.add, client.remove, client.add, client.removeFeross Aboukhadijeh
2016-02-19BREAKING: don't emit 'peer' event for invalid peersFeross Aboukhadijeh
2016-02-14changes for simple-get 2.0.0Feross Aboukhadijeh
2016-02-14Merge pull request #605 from feross/npm-test-browser-headlessFeross Aboukhadijeh
Use Electron to run browser tests with Travis
2016-02-10test styleFeross Aboukhadijeh
2016-02-10test: move node-only test to test/nodeFeross Aboukhadijeh
2016-02-10partially fix stream test; add missing /announceFeross Aboukhadijeh
2016-02-10Fix syntax of magnet URI testJoseph Frazier
https://github.com/feross/webtorrent/commit/83226a40445d0a6987f15a7e010758ab8bc8dc0a
2016-02-09failing stream test, actually failing magnet uri testJames Halliday
2016-02-09Skip broken tests in ElectronJoseph Frazier
2016-01-15add more tests for duplicate trackersFeross Aboukhadijeh
For #571. Still can’t reproduce the issue
2016-01-14standardFeross Aboukhadijeh
2016-01-14split up testsFeross Aboukhadijeh
2016-01-11simplifyFeross Aboukhadijeh
2016-01-11fix tests -- wtfFeross Aboukhadijeh
2016-01-11test: more accurate nameFeross Aboukhadijeh
2016-01-11test: download multiple files at same timeFeross Aboukhadijeh
Fixes #125
2016-01-11test: fix testFeross Aboukhadijeh
2016-01-11test: add alice in wonderland fixtureFeross Aboukhadijeh
2016-01-11tests: cleanupFeross Aboukhadijeh
2016-01-11tests: cleanupFeross Aboukhadijeh
2016-01-11support calling torrent.load() before 'ready' eventFeross Aboukhadijeh
2016-01-11remove old TODOsFeross Aboukhadijeh
2016-01-10move images to webtorrent-www repoFeross Aboukhadijeh
2016-01-09test: add test that duplicate announce urls are removedFeross Aboukhadijeh
2016-01-08test: blocklist-dht waitFeross Aboukhadijeh
wait for both conditions before going on
2016-01-06remove host option from testFeross Aboukhadijeh
2016-01-06fix tests for bittorrent-dht 6Feross Aboukhadijeh
2016-01-06test styleFeross Aboukhadijeh
2016-01-02New API: WebTorrent.WEBRTC_SUPPORTFeross Aboukhadijeh
Detect native WebRTC support in the environment. ```js if (WebTorrent.WEBRTC_SUPPORT) { // webrtc support! } else { // fallback } ```
2016-01-01test: client.add: invalid torrent id: invalid filesystem pathFeross Aboukhadijeh
2016-01-01test: add test for client.add invalid bufferFeross Aboukhadijeh
2016-01-01Throw error on client.add('')Feross Aboukhadijeh
2015-12-30Add more browser testsFeross Aboukhadijeh
Run more of the tests in the browser. There's now a test/node and test/browser folder for tests that are specific to each environment. Anything in test/ will be run in both environments.
2015-12-30test: add file.appendTo and file.renderTo testsFeross Aboukhadijeh
2015-12-28remove weird global.Blob usageFeross Aboukhadijeh
2015-12-27test: remove sample trackersFeross Aboukhadijeh
2015-12-27test: All remaining tests use new fixturesFeross Aboukhadijeh
- Tests use new fixtures in common.js - Tests ensure that destroy callbacks don’t fire an error