Atul Varma
|
b5dc3b878a
|
Added a really, really basic sync test for bookmarks.
|
2008-06-24 16:55:56 -07:00 |
|
Atul Varma
|
f9ab00520c
|
Separated test_passwords into itself, which contains pure unit tests, and test_password_syncing, which contains a suite that's more along the lines of a system test, though still with plenty of stuff faked-out. fake_login_manager.js contains code shared between the two suites.
--HG--
rename : services/sync/tests/unit/test_passwords.log.expected => services/sync/tests/unit/test_password_syncing.log.expected
|
2008-06-23 21:21:40 -07:00 |
|
Atul Varma
|
0258487f7a
|
Refactored stuff out of test_passwords and into head.js to make creating new sync tests for different engines easier.
|
2008-06-23 20:57:10 -07:00 |
|
Atul Varma
|
088eeebfd3
|
Added some more visibility to the individual steps of test_passwords.
|
2008-06-23 18:01:48 -07:00 |
|
Atul Varma
|
387927da84
|
Updated expected log for test_passwords based on recent code changes.
|
2008-06-23 17:41:01 -07:00 |
|
Justin Dolske
|
6ed3755104
|
Bug 433949 - Use WeaveCrypto component (NSS) instead of OpenSSL
|
2008-06-23 16:23:57 -07:00 |
|
Atul Varma
|
ed6f207586
|
Added 'resync on second computer' step to test_passwords.
|
2008-06-23 14:45:58 -07:00 |
|
Atul Varma
|
cd6f3ef8d3
|
Moved the FakeGUIDService from test_passwords.js to head.js.
|
2008-06-23 14:13:46 -07:00 |
|
Atul Varma
|
9baa177ade
|
A tiny bit more refactoring to test_passwords.
|
2008-06-20 18:36:33 -07:00 |
|
Atul Varma
|
77a64f448f
|
Oops, forgot to recommit the canonical log for test_passwords in my last commit.
|
2008-06-20 18:36:11 -07:00 |
|
Atul Varma
|
7e429a9eba
|
Fake GUID generator now provides a different yet deterministic GUID upon each invocation.
|
2008-06-20 18:25:21 -07:00 |
|
Atul Varma
|
fd24f3706a
|
test_passwords now also removes a user after doing everything else.
|
2008-06-20 18:04:59 -07:00 |
|
Atul Varma
|
01b47a4865
|
Factored out the fake filesystem related functions in test_passwords.js into a FakeFilesystemService class in head.js.
|
2008-06-20 17:47:32 -07:00 |
|
Atul Varma
|
0d27ee6f89
|
Refactored test_passwords to make it more modular and readable, changed the formatting of some log messages to be more descriptive.
|
2008-06-20 15:39:07 -07:00 |
|
Atul Varma
|
4c78f8d170
|
Improved test_passwords so that it syncs, re-syncs, adds a new user, and re-syncs again.
Fixed a strict warning in engines.js.
|
2008-06-20 14:22:06 -07:00 |
|
Atul Varma
|
4e39258260
|
Made the tracking of async generators/coroutines more robust for debugging purposes.
Refactored code in syncCores.js to use Utils.makeTimerForCall().
Improved test_passwords to perform an additional sync after the initial one.
|
2008-06-20 13:58:56 -07:00 |
|
Atul Varma
|
2f9945b9d3
|
Added more informative output for fake DAV, so that log-based tests are both more self-documenting re: Weave's behavior and serve as more robust test cases.
|
2008-06-20 12:49:25 -07:00 |
|
Atul Varma
|
a39acd2449
|
Added an expected-log for the passwords sync engine unit test.
|
2008-06-20 12:39:50 -07:00 |
|
Atul Varma
|
32c7be2a6f
|
Changed log level in a unit test.
|
2008-06-20 12:24:02 -07:00 |
|
Atul Varma
|
ea744597ab
|
Modified the way logging works in unit testing; fake testing components now log as part of the 'Testing' logger instead of the root logger.
|
2008-06-19 17:04:04 -07:00 |
|
Atul Varma
|
93520a6e78
|
Added more fake prefs to the password test to eliminate strict warnings, added logging code to identity.js to aid in debugging.
|
2008-06-19 16:03:42 -07:00 |
|
Atul Varma
|
6046183cfa
|
Finished test_passwords.js, although it raises a number of strict warnings.
|
2008-06-18 18:08:33 -07:00 |
|
Atul Varma
|
920bb46e7c
|
Fixed a preference typo in test_service.js.
|
2008-06-18 17:33:44 -07:00 |
|
Atul Varma
|
251f02b0f0
|
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
|
7829070424
|
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
|
e9670abd3f
|
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
|
30046913d8
|
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
|
22a628bfea
|
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
|
90d243db16
|
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
|
945a8b782a
|
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
|
a6cca49fc3
|
Added a fake preference service to test_service.
|
2008-06-17 11:45:13 -07:00 |
|
Atul Varma
|
b0ca747fe2
|
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
|
8d40fc280b
|
Refactored test suites based on recent changes.
|
2008-06-16 16:53:53 -07:00 |
|
Atul Varma
|
459e94fa97
|
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
|
de38af3819
|
Refactored head.js for unit tests so that we now have an 'initTestLogging()' function.
|
2008-06-16 16:22:00 -07:00 |
|
Atul Varma
|
2675855ed4
|
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
|
78c2bba04d
|
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
|
d32ba01952
|
Modified test_async_exceptions to use a fake nsiTimer.
|
2008-06-11 17:10:39 -07:00 |
|
Atul Varma
|
561d94aa66
|
Added a unit test for async exceptions.
|
2008-06-11 16:38:22 -07:00 |
|
Atul Varma
|
9c1413e024
|
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
|
9cc4da48c1
|
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
|
98a85cbd23
|
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
|
2905492e20
|
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
|
3bb8a88ccf
|
Added more tests to test_async.js and documented them a bit.
|
2008-06-07 00:34:33 -07:00 |
|
Atul Varma
|
ce74084744
|
Fixed an inaccuracy in the async.js test suite.
|
2008-06-07 00:22:57 -07:00 |
|
Atul Varma
|
394167a10a
|
Added a unit test suite for modules/async.js.
|
2008-06-06 21:40:30 -07:00 |
|
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
|
12ae1f3d1c
|
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
|
a8012cad1d
|
Merged
|
2008-06-04 20:30:56 -07:00 |
|
jonathandicarlo@jonathan-dicarlos-macbook-pro.local
|
e578f11c10
|
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
|
406a97aee2
|
imported patch xmpp-transport-fault-tolerance-and-test
|
2008-06-04 18:34:37 -07:00 |
|