Commit graph

248 commits

Author SHA1 Message Date
Gaurav Rai
086f2a8caa Bug 1075438 - Removed readTo function from two files and fixed read function to work without readTo.Also removed the test for readTo function from mochi and xpcshell tests. r=Yoric 2014-10-27 06:59:00 -04:00
Andrew Halberstadt
d292ee73f1 Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Iaroslav Sheptykin
5ebafccaf7 Bug 1023685 - Support writing encoded zero-byte strings in OS.File.writeAtomic. r=yoric
Patch originally created by KeyboardFire <andy@keyboardfire.com>.
2014-09-23 06:50:00 -04:00
Wes Kocher
6e187f49f8 Merge m-c to inbound a=merge 2014-09-15 16:41:45 -07:00
Shu-yu Guo
59ccd2fecb Bug 1001090 - Part 5: Fix errors in tests throughout the tree. (r=robcee,gavin) 2014-09-15 16:30:47 -07:00
Paul Rouget
bfba482515 Backed out changeset a6d02cff43d3 (bug 1037235) for breaking WebIDE (bug 1067331)
--HG--
extra : amend_source : a7bfb1e931122663e7c14a7362a849520388e495
2014-09-15 16:23:04 +02:00
Erik Vold
d3d9b5a320 Bug 1037235 - toolkit/loader doesn't check module compatibility r=Mossop 2014-09-09 18:33:55 -07:00
Chris Peterson
d126c3c24f Bug 1063962 - Replace jschar typedef with C++11 char16_t type. r=jandem 2014-07-21 21:43:21 -07:00
Lynn Tran
7f93484c48 Bug 999748 - Add the user trash directory to OS.Constants.Path. r=yoric 2014-08-26 08:51:24 -04:00
David Rajchenbach-Teller
ce2b9814dc Bug 1044700 - Make OS.Path.join and OS.File.makeDir more resilient to denormalized paths. r=froydnj 2014-08-20 07:39:00 -04:00
Alexandre Poirot
7ea4dd517f Bug 1027242 - Blacklist mulet's failing tests + expose 'mulet' to ini files; fix previous bustage on a CLOSED TREE, r=ahal 2014-07-02 15:40:56 -07:00
Paolo Amadini
1492e70b40 Bug 1023402 - API review for OS.File.setPermissions. r=Yoric
--HG--
rename : toolkit/components/osfile/tests/xpcshell/test_osfile_async_setPerms.js => toolkit/components/osfile/tests/xpcshell/test_osfile_async_setPermissions.js
2014-07-09 14:26:41 +01:00
Lynn Tran
029d85bf33 Bug 1003336 - OS.Constants.Sys.Name should not be "Android" for Firefox OS. r=yoric 2014-07-04 18:20:49 -04:00
Zack Weinberg
6f9f35438c Bug 1001849: expose general chmod, and chmod-to-umask, support in OS.File. r=yoric 2014-06-20 19:54:06 -04:00
Ryan VanderMeulen
028ca01a20 Merge inbound to m-c. a=merge 2014-06-10 00:45:12 -04:00
David Rajchenbach-Teller
43ebf8cc06 Bug 1014484 - Fix 'toString is read-only' errors on B2G. r=froydnj 2014-06-09 08:26:00 -04:00
David Rajchenbach-Teller
f7fd2e76e3 Bug 1011158 - Tighten the lock around OS.File |kill| operation. r=froydnj 2014-06-09 06:25:00 -04:00
Ed Morley
2dd911fd12 Backed out changeset e28e73446d88 (bug 1018169) for Android & B2G xpcshell failures in worker_test_constants.js; CLOSED TREE 2014-06-06 11:59:22 +01:00
kushagra singh[:kushagra]
f08a7a530c Bug 1018169 - [OS.File] Write a test to check if OS.Constants is accessible from a worker. r=Yoric 2014-06-05 12:43:00 -07:00
kushagra singh[:kushagra]
0999dad2bb Bug 991883 - [OS.File] Move test_constants from main_test_osfile_async.js to an xpcshell test. r=Yoric 2014-05-26 09:52:00 -04:00
David Rajchenbach-Teller
d6f5da42b5 Bug 994951 - Activate OS.File xpcshell tests on B2G. r=froydnj 2014-05-05 06:53:00 -04:00
kushagra singh[:kushagra]
e08aaf6c19 Bug 819068 - Implementing OS.File.queue. r=Yoric 2014-04-12 21:02:06 -04:00
Nils Maier
86cfc9cc0f Bug 952997 - Fix OS.File large file support. r=yoric 2014-04-08 03:40:00 +02:00
David Rajchenbach-Teller
cb7efd3977 Bug 961317 - Clean up OS.File shutdown race condition and rework OS.File reset/shutdown. r=froydnj 2014-04-02 11:42:51 -04:00
Ryan VanderMeulen
ce35bbbf54 Backed out changeset 4eb0d4408fd2 (bug 961317) for Windows xpcshell failures. 2014-04-01 10:46:44 -04:00
David Rajchenbach-Teller
af1d8aa35a Bug 961317 - Clean up OS.File shutdown race condition and rework OS.File reset/shutdown. r=froydnj 2014-04-01 08:57:25 -04:00
David Rajchenbach-Teller
f5db5c387e Bug 934283 - Add option to OS.File.makeDir to recursively make directories;r=froydnj 2014-03-28 17:33:36 -07:00
Masatoshi Kimura
f26ac39a5d Bug 974677 - Stop following symlinks when OS.File removes a directory. r=yoric 2014-03-21 12:59:59 +09:00
David Rajchenbach-Teller
bf44435306 Bug 961665 - Tests for OS.File.read. r=froydnj 2014-03-13 09:52:07 -04:00
Ryan VanderMeulen
d2b4456c69 Backed out changesets c6ca1aa3887a, d741e117a033, 1fd26e822e73, and 720962c9f993 (bug 961665) for build bustage and xpcshell failures. 2014-03-13 10:32:57 -04:00
David Rajchenbach-Teller
e54ffe3fe8 Bug 961665 - Tests for OS.File.read. r=froydnj 2014-03-13 09:52:07 -04:00
Carsten "Tomcat" Book
5d5e9aeb99 Merge mozilla-central to fx-team on a CLOSED TREE 2014-02-25 15:42:32 +01:00
Peiyong Lin
78963dfcf5 Bug 967507 - [OS.File] Add |path| for error-reporting. r=Yoric 2014-02-24 10:16:01 -05:00
Paolo Amadini
147a66e633 Bug 973931 - OS.File.makeDir should not fail if the directory is a root in the format "D:". r=Yoric 2014-02-24 22:25:29 +01:00
Alessio Placitelli
0d3b6b8869 Bug 924874 - Add OS.File.getAvailableFreeSpace for Windows and Linux. r=Yoric 2014-01-15 02:04:00 -05:00
Paolo Amadini
6c534820ae Bug 960962 - OS.File normalization and concatenation issues on Windows. r=Yoric 2014-02-10 19:59:29 +01:00
Gregory Szorc
afdb724edf Bug 969021 - Part 1: Consolidate moz.build data into parent moz.build files; r=ted
Many moz.build files define things that could be defined in parent
moz.build files. Keeping the number of moz.build files low helps with
build times due to less I/O and fewer directories traversed.

This patch eliminates a lot of moz.build files by moving their content
into parent moz.build files.

--HG--
extra : rebase_source : 0cfdf2697d10532e5b03cd27fbaadb41f42b837c
extra : amend_source : 0119d4e4881217f105e0e4ba1dfa9c8f7295f3e9
extra : histedit_source : eb49e62c67af2005fdc08d9c9a07f56bee98d558%2C50951e960e450f9b0e48fc7e8ec369d8666a63b0
2014-02-06 13:00:20 -08:00
Peiyong Lin
4064096372 Bug 965196 - [OS.File] Add an option |backupTo| to writeAtomic. r=Yoric 2014-02-06 15:10:08 -05:00
Kay Plößer
1a8bbe575a Bug 960046 - [OS.File] makeDir should not fail if the directory is a root. r=Yoric 2014-02-06 10:05:43 -05:00
Peiyong Lin
186a8ee310 Bug 827803 - [OS.File] Refine exception transmission across threads. r=Yoric 2014-01-28 08:50:33 -05:00
Gregory Szorc
ec8ef61e8b Bug 963327 - Improve profile-dependent handling of OS.Constants.Path; r=Yoric
Many properties in OS.Constants.Path are dependent on the profile being
available. This patch improves their handling.

Previously, we had some repeated and boilerplate code for making
OS.Constants.Paths.<prop> a lazy getter. This patch eliminates the
boilerplate by iterating over the properties that need to be lazy
getters.

AppData and UAppData are now lazy getters.

test_profiledir.js has been rolled into test_path_constants.js.

test_path_constants.js now emits a warning when a comparison doesn't
test anything. This should help identify ineffective tests going
forward.

--HG--
extra : rebase_source : d142c5fc78eb894f78f9ac8745de3413e4919f09
2014-01-24 11:34:30 -08:00
Ed Morley
5f796ef741 Backed out changeset ad7fc270445d (bug 963327) for xpcshell failures on a CLOSED TREE 2014-01-27 17:19:01 +00:00
Gregory Szorc
f7bbb0bae1 Bug 963327 - Improve profile-dependent handling of OS.Constants.Path; r=Yoric
Many properties in OS.Constants.Path are dependent on the profile being
available. This patch improves their handling.

Previously, we had some repeated and boilerplate code for making
OS.Constants.Paths.<prop> a lazy getter. This patch eliminates the
boilerplate by iterating over the properties that need to be lazy
getters.

AppData and UAppData are now lazy getters.

test_profiledir.js has been rolled into test_path_constants.js.

test_path_constants.js now emits a warning when a comparison doesn't
test anything. This should help identify ineffective tests going
forward.

--HG--
extra : rebase_source : 971e2bd5f313de2b25090a67d20e101c859f4f4c
2014-01-24 11:34:30 -08:00
David Rajchenbach-Teller
1ffb2fdeb5 Bug 916076 - Tests for OS.File telemetry. r=froydnj 2014-01-22 12:21:44 -05:00
Sumit Agrawal
46da777f0e Bug 958354 - OS.Constants.Path should expose UAppData. r=Yoric 2014-01-13 08:45:20 -05:00
Ryan VanderMeulen
74121462c0 Backed out changeset 13bea55207f2 (bug 952997) for xpcshell orange. 2014-01-10 11:33:35 -05:00
David Rajchenbach-Teller
adaffe07a5 Bug 854169 - OS.File.{read, writeAtomic} support for lz4. r=froydnj 2014-01-09 17:10:05 +01:00
Nils Maier
17670f407e Bug 952997 - Fix OS.File large file support. r=Yoric 2014-01-10 08:15:37 -05:00
Dustin J. Mitchell
9e5e3e01c8 Bug 803188 - Support converting between file paths and file:/// uris in OS.File. r=Yoric 2013-12-16 14:55:37 -05:00
David Rajchenbach-Teller
98abf2da50 Bug 935792 - ignoreAbsent flag for removeDir() doesn't default to true as intended/documented. r=froydnj 2013-11-26 14:21:03 -05:00
David Rajchenbach-Teller
f9053f7265 Bug 941565 - Fix OS.Constants.Path.libxul on Android. r=glandium 2013-11-25 09:32:29 -05:00
Mike Hommey
e80e877ab7 Bug 939044 - Remove most definitions of MODULE. r=mshal 2013-11-19 11:47:39 +09:00
Avinash Kundaliya
3f72c76566 Bug 897023 - [OS.File] Be smarter with functions that can fail with becauseAbsent/becauseExists. r=yoric 2013-11-15 21:46:59 -05:00
Ryan VanderMeulen
ecd2ce3368 Backed out changeset 3232989e79e7 (bug 897023) for mochitest-other failures. 2013-11-11 10:55:36 -05:00
Avinash Kundaliya
ac49340292 Bug 891110 - Detecting attempts to pass undefined in declareFFI. r=Yoric 2013-11-11 09:18:22 -05:00
Avinash Kundaliya
52086fcf9e Bug 897023 - [OS.File] Be smarter with functions that can fail with becauseAbsent/becauseExists. r=Yoric 2013-11-11 09:02:13 -05:00
Ryan VanderMeulen
ccdd6e36c5 Backed out 5 changesets (bug 854169) for Android crashes.
Backed out changeset 8898b6c66941 (bug 854169)
Backed out changeset 12cebd8b5669 (bug 854169)
Backed out changeset 844860e32631 (bug 854169)
Backed out changeset 4ede802f8dbb (bug 854169)
Backed out changeset ccae8b3f0a7d (bug 854169)
2013-11-08 10:52:02 -05:00
David Rajchenbach-Teller
b96fb42e22 Bug 854169 - OS.File.{read, writeAtomic} support for lz4. r=froydnj 2013-11-08 09:16:05 -05:00
Felix H. Dahlke
67d88b1309 Bug 921229 - Remove files with the read-only flag set. r=yoric 2013-10-29 09:27:01 +01:00
Chris Manchester
91224f8957 Bug 885480 - Set becauseNoSuchFile on windows for osfile errors produced as a result of no such directory. r=yoric 2013-10-29 17:35:31 -04:00
Nils Maier
014077a85c Bug 924916: Part 4 - xpcshell tests for OS.File.setDates(). r=yoric 2013-10-28 05:42:00 +00:00
Nils Maier
2901e2256a Bug 912457 - Expose async |flush()| in OS.File. r=yoric 2013-10-27 19:03:25 -04:00
Nils Maier
8d9544a179 Bug 924858 - Part 1: Add |append| mode flag to OS.File.open on Unix. r=yoric
To match previous behavior, this mode flag will default to |true|.
2013-10-27 08:03:16 -04:00
David Rajchenbach-Teller
90d10a9c6f Bug 927560 - Shutdown osfile_async_worker.js, companion tests;r=froydnj 2013-10-17 06:57:00 +01:00
Nils Maier
5a9921b1ae Bug 928239 - Fix pump_userland fallback in OS.File.copy. r=yoric 2013-10-21 06:50:00 +01:00
David Rajchenbach-Teller
a01b1f3365 Bug 801376 - OS.File loads symbols lazily;r=froydnj 2013-10-22 02:43:00 +01:00
David Rajchenbach-Teller
df846798ca Bug 904652 - Port osfile_{win, unix}_allthreads.jsm to a module loader. r=froydnj 2013-10-16 11:15:04 -04:00
Marcos Aruj
417a0959e3 Bug 866571 - [OS.File] Add createUnique method. r=yoric 2013-10-16 08:21:39 -04:00
Ryan VanderMeulen
dd43da16c1 Backed out changeset 03d629375717 (bug 904652) for suspicion of causing mass test bustage.
CLOSED TREE
2013-10-15 15:22:13 -04:00
Nils Maier
eb1847005b Bug 926691 - OS.File API must preverse |bytes| options to .readTo() and .write(). r=yoric 2013-10-15 14:05:57 -04:00
David Rajchenbach-Teller
e1a2cd7adb Bug 904652 - Port osfile_{win, unix}_allthreads.jsm to module loader. r=froydnj 2013-10-15 13:28:26 -04:00
David Rajchenbach-Teller
06b090bf96 Bug 918364 - Make exceptions more meaningful in OS.File. r=froydnj 2013-10-11 11:50:52 -04:00
Marco Castelluccio
9d0ac7a132 Bug 923540 - Add a function to recursively remove directories. r=Yoric 2013-10-10 10:59:49 -04:00
Ms2ger
1ee1f27aa3 Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Ryan VanderMeulen
1f31fb75a5 Merge fx-team to m-c.
--HG--
rename : mobile/android/base/UpdateServiceHelper.java => mobile/android/base/updater/UpdateServiceHelper.java
2013-09-30 16:18:53 -04:00
Gregory Szorc
e6acf6270f Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
Marco Castelluccio
bca52b1804 Bug 920686 - [OS.File] Add some constants to OS.Constants.Path for WebappsInstaller.jsm. r=yoric 2013-09-30 10:59:41 -04:00
Ed Morley
53a451894a Backed out changeset 68b6b152f51a (bug 920223) 2013-09-30 12:50:09 +01:00
Gregory Szorc
0b4364c6f3 Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
David Rajchenbach-Teller
46d2889c34 Bug 845190 - Reactivate tests blocked by bug 888347. r=yoric 2013-09-25 11:43:48 -04:00
Brandon Benvie
18a7c4ce75 Bug 919769 - Make OS.Path.normalize correctly handle forward slashes on Windows. r=yoric 2013-09-24 10:59:37 -07:00
David Rajchenbach-Teller
beb7dc48d7 Bug 891300 - Porting ospath_* to the module loader. r=froydnj
--HG--
rename : toolkit/components/osfile/modules/ospath_unix_back.jsm => toolkit/components/osfile/modules/ospath_unix.jsm
rename : toolkit/components/osfile/modules/ospath_win_back.jsm => toolkit/components/osfile/modules/ospath_win.jsm
2013-09-19 08:55:53 -04:00
David Rajchenbach-Teller
94f905da01 Bug 916687 - Leaked directory detection, increasing test timeout. r=yoric 2013-09-17 11:39:02 -04:00
David Rajchenbach-Teller
f973db63f5 Bug 913899 - Plugging OS.File to AsyncShutdown (tests);r=froydnj 2013-09-14 18:48:37 +02:00
David Rajchenbach-Teller
629f254aaa Bug 874435 - Round dates given by stat() up/down more generously in tests. r=froydnj 2013-09-06 09:19:05 -04:00
Mike Hommey
f8bc7fa754 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
David Rajchenbach-Teller
4f0e565e43 Bug 874425 - Add more logging to attempt to find out source of negative durations under Windows. r=yoric 2013-08-23 10:06:33 -04:00
Ryan VanderMeulen
6b3c77a10d Bug 827805 - Fix xpcshell manifest so that the new test runs and test_logging.js remains disabled. 2013-08-13 14:47:37 -04:00
David Rajchenbach-Teller
136069a831 Bug 874435 - Fix lastAccessDate/lastModificationDate typo. r=froydnj 2013-08-12 08:40:42 -04:00
Sunny
aaba8eb2da Bug 827805 - [OS.File] Use Deprecated.jsm to mark deprecation of OS.File.Info.prototype.creationDate. r=yoric 2013-08-09 14:10:44 -04:00
David Rajchenbach-Teller
2458ae39b8 Bug 889876 - Make OS.Constants.Path.profileDir earlier. r=froydnj 2013-07-23 09:20:54 -04:00
David Rajchenbach-Teller
a2552d0e20 Bug 890050 - OS.File.writeAtomic should rename by default. r=froydnj 2013-07-10 14:57:17 -04:00
David Rajchenbach-Teller
5f4d724ed4 Bug 888479 - Port osfile_shared_allthreads.jsm and dependents to worker module loader. r=froydnj 2013-07-09 09:09:16 -04:00
Birunthan Mohanathas
eea82fdfd5 Bug 857077 - Add ignoreAbsent option to OS.File.remove. r=yoric 2013-07-01 09:26:12 -04:00
Ryan VanderMeulen
e7f4d8086a Bug 845190 - Disable test_logging on linux too. 2013-07-01 08:51:46 -04:00
Stefan Mirea
d44e08b773 Bug 887907 - Move OS.File to use Promise.jsm; r=gps
--HG--
extra : rebase_source : cab194eea7781dfd5c14732a77710d6d7904525b
2013-06-27 11:15:41 -07:00
David Rajchenbach-Teller
d8c828d9ff Bug 886997 - Don't flush by default;r=froydnj 2013-06-27 13:19:54 -04:00
Ryan VanderMeulen
780105221c Bug 845190 - Revert previous attempt to fix and re-disable tests. 2013-06-11 08:12:06 -04:00
David Rajchenbach-Teller
bedc6e2041 Bug 845190 - Re-enable test_logging.js and test_645970.js on all platforms. r=yoric 2013-06-10 22:07:41 -04:00
David Rajchenbach-Teller
d23366fba0 Bug 874435 - Assume lower file system time precision. r=froydnj 2013-05-30 11:25:48 -04:00