Gregory Szorc
49412510e0
Bug 731494 - Refactor generic code from services/sync into services/common; r=rnewman
...
--HG--
rename : services/sync/modules/async.js => services/common/async.js
rename : services/sync/modules/log4moz.js => services/common/log4moz.js
rename : services/sync/modules/ext/Observers.js => services/common/observers.js
rename : services/sync/modules/ext/Preferences.js => services/common/preferences.js
rename : services/sync/modules/ext/StringBundle.js => services/common/stringbundle.js
rename : services/sync/tests/unit/test_async_chain.js => services/common/tests/unit/test_async_chain.js
rename : services/sync/tests/unit/test_async_querySpinningly.js => services/common/tests/unit/test_async_querySpinningly.js
rename : services/sync/tests/unit/test_log4moz.js => services/common/tests/unit/test_log4moz.js
rename : services/sync/tests/unit/test_Observers.js => services/common/tests/unit/test_observers.js
rename : services/sync/tests/unit/test_Preferences.js => services/common/tests/unit/test_preferences.js
rename : services/sync/tests/unit/test_restrequest.js => services/common/tests/unit/test_restrequest.js
rename : services/sync/tests/unit/test_utils_makeURI.js => services/common/tests/unit/test_utils_makeURI.js
rename : services/sync/tests/unit/test_utils_namedTimer.js => services/common/tests/unit/test_utils_namedTimer.js
rename : services/sync/tests/unit/test_utils_stackTrace.js => services/common/tests/unit/test_utils_stackTrace.js
2012-04-05 23:26:06 -07:00
Pallani Kumaran
463758908d
Bug 701967 - Misc code cleanup in Sync's util.js; r=gps
...
This is a re-land of eb4233025be0. References to defunct tests have been
removed.
2012-03-13 02:12:47 +08:00
Gregory Szorc
9849ea91e2
Bug 730989 - Refactor identity and authentication in Sync; r=rnewman
2012-03-22 15:49:50 -07:00
Gregory Szorc
9d2a0e6bb7
Backed out changeset eb4233025be0 for xpcshell test failures
2012-03-22 15:49:39 -07:00
Pallani Kumaran
d00a421293
Bug 701967 - Misc code cleanup in Sync's util.js; r=gps
2012-03-13 02:12:47 +08:00
Richard Newman
6b62127af2
Bug 690170 - Part 1: Fix channel management to avoid nsIHTTPChannel.responseStatus => NS_ERROR_NOT_AVAILABLE in Sync HTTP requests. r=philikon
2011-10-28 14:43:18 -07:00
Richard Newman
45ea0d0d56
Bug 685945 - fixxor after skipping a qref. a=bustage
2011-10-06 12:40:23 -07:00
Richard Newman
f71641d2eb
Bug 685945 - Sync: log a warning if JSON parsing of bodies fails. r=philikon
2011-10-06 01:47:02 -07:00
Richard Newman
470f29fb56
Bug 664865 - More considered handling of node reassignment mid-sync. r=philikon
2011-06-25 14:54:50 +01:00
Richard Newman
5b644a32fd
Move Resource.serverTime to AsyncResource, fix comments for AsyncResource. r=philiKON
2011-05-30 19:01:25 -07:00
Richard Newman
b4ced7b0da
Add a test for URI construction and query modification. r=philiKON
2011-05-30 19:00:54 -07:00
Philipp von Weitershausen
08b0ac4a93
Bug 648364 - Remove dead code. r=rnewman
2011-05-19 18:09:02 -07:00
Philipp von Weitershausen
fe67de95d8
Bug 648364 - Replace custom helpers with Services.jsm. r=rnewman
2011-05-19 18:08:07 -07:00
Richard Newman
474533a259
Bug 652182: eliminate Resource status == 0 check missed in landing of Bug 623080. r=philiKON
2011-04-22 12:13:17 -07:00
Richard Newman
6e6815e668
Bug 650208: part 2b: clean up basic auth mess in tests. r=philiKON
2011-04-18 13:26:03 -07:00
Richard Newman
5d82b5ca46
Bug 623836: part 1: use lowercase headers where we're supposed to. r=philiKON
2011-04-06 16:12:21 -07:00
Richard Newman
dcad6490a7
Bug 623836: part 0: simplify Resource.setHeader. r=philiKON
2011-03-30 18:28:56 -07:00
Philipp von Weitershausen
c218c4a0a0
Bug 636402 - Simplify Sync.js to avoid creating new objects. r=rnewman a=blocking-fennec
2011-02-25 14:43:18 -08:00
Philipp von Weitershausen
2985d253e2
Bug 591102 - Ensure exceptions from [Async]Resource contain the status code. r=mconnor
2011-01-31 20:55:48 -08:00
Philipp von Weitershausen
923b14c270
Bug 609421 - Combine auth.js and resource.js. r=rnewman
2011-01-18 16:23:38 -08:00
Richard Newman
cf988e27c2
Bug 622760: log exceptions thrown in _onProgress callbacks. r=philiKON
2011-01-04 16:27:00 -08:00
Richard Newman
48f8296bad
Bug 619162: default resource success is false; retry once. r=philiKON
2010-12-20 12:47:51 -08:00
Philipp von Weitershausen
7e51b2c724
Bug 580672 - Implement quota UI (Part 1) [r=mconnor]
...
Recognize quota warnings from server, implement API calls to retrieve quota information.
2010-09-11 18:39:21 +02:00
Justin Dolske
31c2a0210a
Bug 583949 - Fix leaks in Firefox Sync unit tests
2010-08-02 22:37:13 -07:00
Edward Lee
80fc412879
Bug 573679 - Fix tests to pass on trunk
...
Use do_load_httpd_js for xpcshell tests and have consumers directly call new nsHttpServer().
2010-06-22 13:18:10 -07:00
Edward Lee
4e55362a90
Bug 570636 - Decide how to co-exist as a sync add-on and built-in sync [r=mconnor]
...
Map the modules directory to services-sync instead of weave and update imports.
2010-06-16 14:30:08 -07:00
Edward Lee
2ddf5e7a90
Bug 568136 - Migration requires client to check for a node again after a 401 [r=mconnor]
...
Allow observers to watch for resource 401s and to specify a new uri to request. Test to make sure "weave:resource:status:401" gets notified and resource handles uri changes.
2010-06-03 18:37:07 -07:00
Philipp von Weitershausen
81632f2661
Bug 566575 - Some tests FAIL on first run and PASS or hang on subsequent runs [r=mconnor]
...
Update to httpd.js from mozilla-central. server.stop() now expects a callback parameter, so pass a no-op where it's used.
2010-06-01 15:25:23 -07:00
Philipp von Weitershausen
721e3fa637
Bug 557596 - code audit and create unit test plan for resource.js [r=mconnor]
...
Lots of resource tests, Resource.serverTime initialized to null, Resource.headers normalized to lowercase.
2010-06-01 15:15:53 -07:00
Edward Lee
009411f482
Bug 511746 - Resource.foo shouldn't throw except in exceptional cases. r=thunder
...
Get rid of lastChannel and return a String object from _request with additional properties of status, succeeded, headers -- even if the response was handled by cache. Update engines to check for non-success and throw the failure. Update tests to use these additional properties instead of lastChannel, etc.
2009-08-26 15:32:46 -07:00
Edward Lee
713f08cf64
Convert test_resource to sync.
2009-06-09 14:25:55 -05:00
Myk Melez
e54cec2631
bug 476539: use a XULRunner-based test harness for unit testing; r=thunder
2009-03-20 00:14:21 -07:00
Myk Melez
fca1820177
bug 475855: make the test_auth_manager and test_resource tests work again with recent changes to the Resource object
2009-01-28 17:51:23 -08:00
Dan Mills
e94731682b
add http js server for unit tests; add tests for resources, auth manager, base weave record types (WBOs, keys, crypto wrappers/crypto meta)
2008-11-03 14:41:39 -08:00