Closed
Bug 735200
Opened 13 years ago
Closed 6 years ago
Add basic unit tests for JS-XMPP
Categories
(Chat Core :: XMPP, defect)
Chat Core
XMPP
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: Usul, Unassigned)
References
Details
While bug 714733 landed - I noticed that It didn't contain much unit tests. For the product's long term maintenance it would be nice to add a few more unit tests.
Updated•10 years ago
|
Component: Instant Messaging → XMPP
Product: Thunderbird → Chat Core
Version: 12 → trunk
Comment 1•9 years ago
|
||
The most important place to start is adding tests for the XML parsing/node handling in xmpp-xml.jsm, as everything else depends on that; and then possibly the connection code in xmpp-session (which currently maybe makes too many assumptions about servers behaving well/according to spec).
OS: Mac OS X → All
Hardware: x86 → All
Summary: Add unit test for xmpp, Facebook → Add basic unit tests for JS-XMPP
Comment 2•6 years ago
|
||
The XML parsing code has tests now (bug 1283139). I added some basic tests for authentication in bug 1527480. Without identifying specific other areas that need test coverage I don't think this is actionable.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Comment 3•6 years ago
|
||
Ideally for each protocol we should have a test that ensures we can:
- create an account
- connect the account (ie. have code that fakes the socket and behaves like a trivial fake server. I think we can just have a bunch of plain text things that the fake server needs to send in response for things the client is sending)
- send a message (ensure the correct notifications get fired to the imIConversation object)
- receive a message (check the notifications).
You need to log in
before you can comment on or make changes to this bug.
Description
•