Commit Graph

50 Commits

Author SHA1 Message Date
Atul Varma
d4048117ef Finished test_passwords.js, although it raises a number of strict warnings. 2008-06-18 18:08:33 -07:00
Atul Varma
8742aa37bd Fixed a preference typo in test_service.js. 2008-06-18 17:33:44 -07:00
Atul Varma
6c5227493a test_passwords.js now performs a fake sync, but I ran into an issue that may be a bug in remote.js. 2008-06-18 17:28:28 -07:00
Atul Varma
cb0d33d536 Refactoring; moved code out of test_service.js and into unit/head.js for use by other tests. 2008-06-18 16:51:54 -07:00
Atul Varma
6e83ffc460 Added a new property to async.js, Async.outstandingGenerators, which returns the number of generators that haven't yet been finalized. This can be used for diagnostic purposes to determine whether generators haven't yet been called back. 2008-06-18 16:11:15 -07:00
Atul Varma
7809c95d7d Refactored some file operations into a new function in Utils and out of engines.js. 2008-06-18 14:12:24 -07:00
Atul Varma
b48aab609f Moved XPCOM-specific stuff from engines/passwords.js to util.js so they could be easily stubbed-out by unit tests. 2008-06-18 11:54:24 -07:00
Atul Varma
8181559fa4 Refactored test_service and module code so that the weave service constructor is called, and auth is done more accurately. 2008-06-17 19:54:09 -07:00
Atul Varma
d27f37c0a2 The manage.py test-runner now compares expected results to actual results if a '<test-name>.log.expected' file exists in the test directory; if they don't match, a unified diff is displayed. Note that this is only done via manage.py, it's not currently implemented in the Makefile test framework because makefiles make me barf. 2008-06-17 12:04:40 -07:00
Atul Varma
c0e257ba53 Added a fake preference service to test_service. 2008-06-17 11:45:13 -07:00
Atul Varma
4a3b6cdbe8 Added test_service, which currently tests the case in which the server's meta/version and private/privkey files are correct, as well as all authentication information. 2008-06-16 18:08:37 -07:00
Atul Varma
5595fd35d7 Refactored test suites based on recent changes. 2008-06-16 16:53:53 -07:00
Atul Varma
30722d0b82 Factored out fake-timer code into a separate class and moved it to head.js. 2008-06-16 16:42:32 -07:00
Atul Varma
832e0d67de Refactored head.js for unit tests so that we now have an 'initTestLogging()' function. 2008-06-16 16:22:00 -07:00
Atul Varma
dd6b64092d Defined Cu -> Components.utils in head.js so that test files don't have to put it in as boilerplate. 2008-06-16 14:06:05 -07:00
Atul Varma
ed2bdb9dcc Added test_async_missing_yield. It's very messy right now and duplicates code from other tests, but I've got some ideas about how to write better tests for async ops that I'll commit soon. 2008-06-11 18:02:46 -07:00
Atul Varma
c5c9fbdf16 Modified test_async_exceptions to use a fake nsiTimer. 2008-06-11 17:10:39 -07:00
Atul Varma
1a2855c05b Added a unit test for async exceptions. 2008-06-11 16:38:22 -07:00
Atul Varma
98e7589518 Factored out all the logging+async setup code from test_sharing.js into a new global function, makeAsyncTestRunner(), which turns an async.js-style generator into a unit test. 2008-06-09 20:51:23 -07:00
Atul Varma
c040b0cc2f Refactoring: made a new function, Utils.makeTimerForCall(), which is used by test suites and async.js. 2008-06-09 19:30:11 -07:00
Atul Varma
d55da707d9 Refactorings to test_sharing.js to make it use the async do_test_pending()/do_test_finished() calls. 2008-06-09 19:18:14 -07:00
Atul Varma
fc4056ba01 Added modules/sharing.js, which provides access to the RESTful sharing API, and a unit test suite. The unit test suite is pretty heinous right now and should get a bit of refactoring. 2008-06-09 18:55:26 -07:00
Atul Varma
49aee667f5 Added more tests to test_async.js and documented them a bit. 2008-06-07 00:34:33 -07:00
Atul Varma
948613950d Fixed an inaccuracy in the async.js test suite. 2008-06-07 00:22:57 -07:00
Atul Varma
0c65b8b3d6 Added a unit test suite for modules/async.js. 2008-06-06 21:40:30 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
0ecee8a817 Re-disabled test_xmpp_simple.js; it shouldn't be run without a local jabber server (and it wasn't, until I accidentally comitted my local change enabling the test. 2008-06-05 12:18:16 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
13f2fbd215 Merged 2008-06-04 20:30:56 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
06dabdbad5 The menu icon of a bookmark folder now changes when that folder is being shared out with others. 2008-06-04 20:30:37 -07:00
Dietrich Ayala
58d219c0e7 imported patch xmpp-transport-fault-tolerance-and-test 2008-06-04 18:34:37 -07:00
Dietrich Ayala
db02ef8937 xmpp-stream-error-handling 2008-06-04 17:36:37 -07:00
Dietrich Ayala
8ec3277ff2 [mq]: xmpp-reconnect 2008-06-04 17:00:02 -07:00
Dietrich Ayala
49101addf2 [mq]: xmpp-disconnect 2008-06-04 14:02:47 -07:00
Dietrich Ayala
7b5ca70bb5 [mq]: xmpp-cleanup 2008-06-04 12:14:28 -07:00
Atul Varma
fabc5bcb17 Added a basic testing suite for engines/passwords.js. It currently only tests _hashLoginInfo() and PasswordSyncCore._itemExists(). 2008-06-03 18:37:36 -07:00
Atul Varma
7a7a041ace Moved all code related to the syncing of cookies--e.g. CookieStore, CookieTracker, CookieEngine, CookieSyncCore--into their own file at modules/engines/cookies.js. I'll be doing the same to the other engines shortly.
This helps with code organization--all the logic for dealing with a particular data type is now in one place--and should also make it easier to write unit/regression tests.
2008-06-03 11:11:44 -07:00
Atul Varma
73312c9b8e Added a simple test to test_fault_tolerance.js that wasn't working before, but now is, and I don't know why... 2008-05-30 17:02:25 -07:00
Atul Varma
4dacc7ee50 Added a trivial appender to faultTolerance.js. 2008-05-30 16:32:06 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
3d6393bf6a Fixed broken unit test test_cookie_store.js 2008-05-30 13:52:39 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
25d2cb8e20 Merged changes 2008-05-30 11:11:02 -07:00
Atul Varma
18c29c94bb Added a testing suite for log4moz, along w/ a few refactorings necessary to perform the tests. 2008-05-29 17:56:52 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f27f36243a Moved the Share Bookmarks item out of the Weave popup menu into the Bookmarks menu, folder submenu. 2008-05-29 11:17:54 -07:00
Atul Varma
b40f447c6d Added a trivial fault tolerance JS module with a trivial test suite. 2008-05-28 11:25:28 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
60dbf91bf5 Created a cookie tracker in trackers.js, and a test for it in tests/unit/test_cookie_store.js. 2008-05-27 09:44:26 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
5fa21e0f59 Added unit test file for CookieStore. It has a test to make sure that only persistent cookies are wrapped, not session cookies. 2008-05-23 17:49:58 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
43ab447e8a Created some documentation of how to add synchronization functionality for a new user data type to Weave. Created a new directory called docs to put this into. 2008-05-19 19:40:45 -07:00
Dan Mills
5bc6a61d86 temporarily disable xmpp unit test 2008-05-12 10:18:20 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
f42a4eb7c6 Created a readme for using the XMPP client module. 2008-05-08 18:50:12 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
cb3252bd8d Expanded test_xmpp -- currently failing tests but it's got the setup now for timing out and failing if the expected message is not received. 2008-05-07 15:29:42 -07:00
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
14e111cff4 Made a very simple unit test for xmppClient; it's passing, but currently it connects to the hard-coded URL of a jabber server running on localhost; I'll need to change this if other people are going to be able to run this test. 2008-05-06 13:13:26 -07:00
Dan Mills
e8ea45e9de add a simple unit test harness based on xpcshell; add two tests for PBE and to load all the modules; add some hacks to the component's makefile to make tests work correctly 2008-04-30 13:01:17 -07:00