Commit Graph

214 Commits

Author SHA1 Message Date
Yura Zenevich
4318c1f3fc Bug 828201 - Replace DEBUG constant by a preference across OS.File and add File.GET_DEBUG method used for testing. r=dteller 2013-02-13 20:51:39 -05:00
Dave Townsend
f1c830614d Bug 793928: Switch users of the promise library to the new location and move tests files. r=gavin
--HG--
rename : toolkit/addon-sdk/test/Makefile.in => addon-sdk/test/Makefile.in
rename : toolkit/addon-sdk/test/unit/head.js => addon-sdk/test/unit/head.js
rename : toolkit/addon-sdk/test/unit/test_promise.js => addon-sdk/test/unit/test_promise.js
rename : toolkit/addon-sdk/test/unit/xpcshell.ini => addon-sdk/test/unit/xpcshell.ini
2013-02-01 11:43:15 -08:00
Kartikaya Gupta
5942209d6f Back out of d8d79ba17527 (bug 828201) as it caused a significant memory regression on Android. r=me 2013-02-01 13:41:42 -05:00
Mitesh Pathak
bdfb49d00a Bug 808492 - Support double-closing DirectoryIterator in asynchronous mode. r=dteller 2013-01-17 15:22:09 +05:30
Yura Zenevich
c0ee945a1b Bug 828201 - Replace DEBUG constant by a preference across OS.File and add a File.GET_DEBUG method used for testing. r=dteller 2013-01-29 10:50:04 -05:00
David Rajchenbach-Teller
84d3a15daf Bug 830694 - Taking advantage of zero-copy transfer between workers;r=froydnj 2013-01-16 13:30:28 +01:00
Eduard Neculaesi
7d36566ade Bug 802534 - [OS.File] Main thread versions of OS.File.Info and OS.File.DirectoryIterator.Entry should have nice prototypes; r=yoric 2013-01-10 10:40:46 -08:00
David Rajchenbach-Teller
1be8873e10 Bug 827206 - OS.File.exists for Windows should now work on directories. r=froydnj 2013-01-07 21:29:22 -05:00
Dustin L. Howett
2b635dfd91 Bug 812647 - Fix OS.File's failure to find libc on case-sensitive OS X filesystems. r=Yoric 2012-12-23 10:52:35 -05:00
David Rajchenbach-Teller
fcc899a9db Bug 815339 - Extract PromiseWorker from OS.File. r=froydnj 2012-12-19 20:11:14 -05:00
David Rajchenbach-Teller
c704a2d6f6 Bug 820681 - Restore OS.Constants.Path.{profileDir, localProfileDir} to its previous state. r=Yoric 2012-12-16 19:37:11 -05:00
Sankha Narayan Guria
060217ad59 Bug 809305 - [OS.File] Share the common functions in the test suite. r=Yoric 2012-12-16 19:31:35 -05:00
David Rajchenbach-Teller
f38dd67616 Bug 810543 - do_get_profile now sends the correct events. r=froydnj,khuey 2012-12-11 15:12:59 -08:00
David Rajchenbach-Teller
cd65eb8fc3 Bug 810543 - OS.File now adapts if OS.Constants.Path.profileDir is not available;r=froydnj 2012-12-11 15:12:59 -08:00
Benjamin Peterson
a58970b987 Bug 819601 - Don't redeclare formal. r=Yoric 2012-12-08 10:07:32 -05:00
Ryan VanderMeulen
61800c75c4 Backed out changeset b4b3522a6c08 (bug 815339) due to mochitest timeouts. 2012-12-03 21:23:05 -05:00
David Rajchenbach-Teller
7c943d7992 Bug 815339 - Extract PromiseWorker from OS.File. r=froydnj 2012-12-03 20:26:16 -05:00
Amod Narvekar
399290969e Bug 781346 - Expose local profie directory to OS.Constants.Path. r=yoric 2012-12-01 21:20:44 -05:00
David Rajchenbach-Teller
5e20b43d79 Bug 807875 - Implement creationDate correctly for Mac OS X. r=froydnj 2012-11-15 11:22:27 -08:00
David Rajchenbach-Teller
e2685ec5f5 Bug 794091 - Reorganize OS.File importScripts to avoid talos hangs. r=froydnj 2012-11-08 14:35:01 -05:00
Sankha Narayan Guria
f548ecc819 Bug 775949 - [OS.File] Test suite uses |info| instead of |ok|. r=Yoric 2012-11-12 16:43:45 -05:00
Phil Ringnalda
6c724342b3 Back out 5ebd6549bf93 and 73287cb2dc6a (bug 794091) on suspicion of breaking Win64 PGO builds 2012-11-08 20:43:18 -08:00
David Rajchenbach-Teller
8f78d9d386 Bug 794091 - Reorganize OS.File importScripts to avoid talos hangs. r=froydnj 2012-11-08 14:35:01 -05:00
David Rajchenbach-Teller
dca36f6ddf Bug 808428 - Testing that OS.File can be called from xpcshell. r=nfroyd
--HG--
extra : rebase_source : 6dfc9107c4ff2453b47a3df528ca8d0037b91cf8
2012-11-05 07:59:00 -08:00
Kyle Huey
1482122303 Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon
--HG--
extra : rebase_source : 98337b6a8c07d05e8c961a452dd05a7d75c3c60b
2012-10-31 09:13:28 -07:00
Eduard Neculaesi
d4c76420c6 Bug 804566 - [OS.File] Add an option ignoreExisting to OS.File.makeDir r=dteller
--HG--
extra : rebase_source : 9c09886a434bc800c51be348e6761b5131da01e2
2012-10-31 01:19:44 +02:00
Vicamo Yang
8297cdabd6 Backout 67cb43bb8865: Breaks B2G Marionette 2012-10-31 16:35:11 +08:00
David Rajchenbach-Teller
f00db38ba7 Bug 770538 - dirfd, MacOS X version. r=froydnj 2012-10-30 11:34:49 -04:00
Mitesh Pathak
f7d0947b62 Bug 770538 - Call Unix C function |dirfd| from JavaScript. r=dteller 2012-10-12 00:19:17 +05:30
Kyle Huey
bdf47895bb Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 12:28:11 -07:00
Ed Morley
415466b584 Backout fdb7c9649a07 (bug 805967), 72003517a631 (bug 806538), 354250ed1e72 (bug 770538), ea6edd3749ce (bug 770538) for bustage on a CLOSED TREE 2012-10-30 17:56:20 +00:00
Ed Morley
777eed8444 Backout a145ded68994, e0cf397089ec & 1545e91c658e (bug 798491) for bustage on a CLOSED TREE 2012-10-30 17:02:31 +00:00
David Rajchenbach-Teller
8bc51b6773 Bug 770538 - dirfd, MacOS X version. r=froydnj 2012-10-30 11:34:49 -04:00
Mitesh Pathak
44ca94fcc1 Bug 770538 - Call Unix C function |dirfd| from JavaScript. r=dteller 2012-10-12 00:19:17 +05:30
Kyle Huey
aa1997a51a Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-30 08:26:12 -07:00
Andres Hernandez
72550ebb62 Bug 805472 - [OS.File] Ensure that all test files are removed. r=Yoric 2012-10-25 14:11:06 -06:00
Andres Hernandez
7f92c07cdb Bug 800697 - [OS.File] Convert async testsuite to use Task.js. r=Yoric 2012-10-23 11:48:52 -06:00
David Rajchenbach-Teller
b243f3936e Bug 803190 - Replace test_osfile_comms scaffolding with something more robust. r=froydnj 2012-10-23 18:30:28 -04:00
WangJun
4428b1f6ca Bug 793682 - [OS.File] getCurrentDirectory/setCurrentDirectory for the main thread. r=Yoric 2012-10-15 23:05:44 +08:00
David Rajchenbach-Teller
96b80a3867 Bug 800493 - Remove now useless libxul code from OS.File. r=froydnj 2012-10-16 21:34:03 -04:00
Andres Hernandez
f2aa74f125 Bug 799226 - Optimize |OS.File.exists| r=Yoric 2012-10-16 09:39:27 -06:00
Andres Hernandez
de6a0f4277 Bug 796953 - [OS.File] writeAtomic should accept an option noOverwrite. r=Yoric 2012-10-09 12:10:06 -06:00
David Rajchenbach-Teller
6b356ba4e7 Bug 794104 - In async OS.File, DEBUG should be false. r=yoric 2012-10-03 18:19:23 -04:00
David Rajchenbach-Teller
1d46be1e7b Bug 793435 - Open worker_test_osfile_win.js instead of worker_test_osfile_unix.js. r=yoric 2012-10-03 18:19:23 -04:00
WangJun
0046ba4707 Bug 793435 - Handle INVALID_HANDLE in CloseHandle and FindClose correctly. r=yoric 2012-10-02 20:56:47 +08:00
David Rajchenbach-Teller
1ed72438b5 Bug 795687 - Move all of OS.File to typed arrays instead of array buffers. r=froydnj 2012-10-02 20:14:39 -04:00
David Rajchenbach-Teller
a06e299cf2 Bug 786211 - Async OS.File.{read, writeAtomic} test suite. r=froydnj 2012-09-27 23:06:00 -04:00
David Rajchenbach-Teller
87a4815c09 Bug 786211 - Async OS.File.{read, writeAtomic}. r=froydnj 2012-09-27 23:06:00 -04:00
David Rajchenbach-Teller
29701a6bdc Bug 786211 - OS.File atomic write (test suite). r=froydnj 2012-09-27 23:06:00 -04:00
David Rajchenbach-Teller
0dfd56a4f8 Bug 786211 - OS.File atomic write (platform code). r=froydnj 2012-09-27 23:06:00 -04:00
David Rajchenbach-Teller
6d4ed9c757 Bug 786211 - OS.File atomic write (shared code). r=froydnj 2012-09-27 23:05:59 -04:00
David Rajchenbach-Teller
0d64618fca Bug 793949 - Test that OS.File.copy overwrites rather than appending. r=froydnj 2012-09-26 21:37:23 -04:00
David Rajchenbach-Teller
030b6921a1 Bug 793949 - Fix flags to ensure that OS.File.copy overwrites rather than appending. r=froydnj 2012-09-26 21:37:23 -04:00
David Rajchenbach-Teller
6d6e29f819 Bug 784717 - Asynchronous directory walk tests. r=froydnj 2012-09-26 21:37:23 -04:00
David Rajchenbach-Teller
ecb2fe56b1 Bug 784717 - Asynchronous directory walk controller code. r=froydnj 2012-09-26 21:37:23 -04:00
David Rajchenbach-Teller
600e5f8970 Bug 784717 - Asynchronous directory walk worker code. r=froydnj 2012-09-26 21:37:23 -04:00
David Rajchenbach-Teller
1c4d8d3a7c Bug 777711 - Async OS.File makefile changes. r=yoric 2012-09-22 20:48:26 -04:00
David Rajchenbach-Teller
fe0cbe73c9 Bug 777711 - Async OS.File test suite. r=taras 2012-09-22 20:48:26 -04:00
David Rajchenbach-Teller
210e4e3041 Bug 777711 - Async OS.File worker. r=taras 2012-09-22 20:48:26 -04:00
David Rajchenbach-Teller
c1f1a96bb5 Bug 777711 - Async OS.File controller. r=taras 2012-09-22 20:48:25 -04:00
David Rajchenbach-Teller
7d8cf9df7c Bug 792668 - Simplify code shared between implementations of HANDLE. r=froydnj 2012-09-22 17:11:44 -04:00
David Rajchenbach-Teller
168241112c Bug 782231 - Testsuite for the new features of DirectoryIterator. r=froydnj 2012-09-21 23:36:15 -04:00
David Rajchenbach-Teller
9462346964 Bug 782231 - Do not automatically reopen a DirectoryIterator that is closed before being used on Windows. r=yoric 2012-09-21 23:36:15 -04:00
David Rajchenbach-Teller
1cf232a40b Bug 782231 - Implement DirectoryIterator.prototype.nextBatch. r=froydnj 2012-09-21 23:36:15 -04:00
David Rajchenbach-Teller
544ba638fc Bug 782231 - Implement DirectoryIterator.prototype.forEach. r=froydnj 2012-09-21 23:36:15 -04:00
David Rajchenbach-Teller
811fd6492f Bug 782231 - Share code between implementations of DirectoryIterator. r=froydnj 2012-09-21 23:36:15 -04:00
David Rajchenbach-Teller
64bcf4f1c8 Bug 790633 - Make FindClose errors visible to the test suite. r=froydnj 2012-09-21 23:36:14 -04:00
David Rajchenbach-Teller
32431c9037 Bug 790649 r=froydnj 2012-09-20 10:46:35 -04:00
Abhishek Potnis
bb3d25c6b9 Bug 786592 - Remove the logging of OS.Path.normalize from ospath_unix_back.jsm. r=yoric 2012-09-19 15:07:02 +05:30
Jim Mathies
eb03628ccf Bug 789344 - osfile.jsm referenced by wrong url. r=nfroyd 2012-09-08 06:13:34 -05:00
David Rajchenbach-Teller
bade6f9210 Bug 769191 - Have OS.File.prototype.{readTo, write} extrapolate a default length. r=froydnj 2012-09-01 11:35:55 -04:00
David Rajchenbach-Teller
ab6433091d Bug 786673 - Make mkstemp should return a file descriptor. r=froydnj
--HG--
extra : rebase_source : 10c20b2feb1b21db67acdaffc742cff06fd068af
2012-08-31 06:36:41 -04:00
Abhishek Potnis
ef0432f69a Bug 785200 - Conditioned logging in osfiles with exports.OS.Shared.DEBUG. r=yoric
--HG--
extra : rebase_source : e6e9de813d8ec5f82f32522d32e0cedb0ec07f2c
2012-08-29 14:12:23 +05:30
Luqman Aden
80d6f71e96 Bug 786196 - [OS.File] Implement flushing. r=yoric 2012-08-29 10:31:30 -04:00
David Rajchenbach-Teller
001cacf6ad Bug 780483 - Tests. r=froydnj 2012-08-30 18:03:06 -04:00
David Rajchenbach-Teller
210b60f638 Bug 780483 - Make {read, write} become {_read, _write} and {readTo, writeFrom} become {read, write}. r=froydnj 2012-08-30 18:03:06 -04:00
Ryan VanderMeulen
153f6fd0e3 Backout 84103a267a9e (bug 785200) due to debug orange on a CLOSED TREE. 2012-08-29 18:37:17 -04:00
Abhishek Potnis
fbeca64a28 Bug 785200 - Conditioned logging in osfiles with exports.OS.Shared.DEBUG. r=dteller 2012-08-29 14:12:23 +05:30
David Rajchenbach-Teller
51c3cbc291 Bug 785828 - Load libxul.so lazily in OS.Shared. r=froydnj 2012-08-28 13:23:47 -04:00
David Rajchenbach-Teller
fe8729a417 Bug 784373 - Test setPosition without optional argument. r=froydnj 2012-08-28 13:23:47 -04:00
David Rajchenbach-Teller
4d1f3e3bae Bug 784373 - Fixed typo: SEEK_START => SEEK_SET. r=froydnj 2012-08-28 13:23:47 -04:00
David Rajchenbach-Teller
59a38cf735 Bug 771617 - Tests for readTo/writeFrom/readAll. r=froydnj 2012-08-25 17:18:44 -04:00
David Rajchenbach-Teller
8447d31c33 Bug 771617 - Fix WinFile.{ReadFile, WriteFile} to accept void*. r=froydnj 2012-08-25 17:18:43 -04:00
David Rajchenbach-Teller
fbf35ccefb Bug 771617 - OS.File.prototype.{readTo, writeFrom, readAll}. r=froydnj 2012-08-25 17:18:43 -04:00
David Rajchenbach-Teller
7293910358 Bug 771617 - Refactoring to better share code between implementations of OS.File. r=froydnj 2012-08-25 17:18:43 -04:00
David Rajchenbach-Teller
6be509e906 Bug 783676 - Export OS.Path (companion test suite). r=taras 2012-08-24 16:18:16 -04:00
David Rajchenbach-Teller
d4aca058c1 Bug 783676 - Normalize "../../..". r=taras 2012-08-24 16:18:16 -04:00
David Rajchenbach-Teller
0962e799e8 Bug 783676 - Export OS.Path. r=taras 2012-08-24 16:18:16 -04:00
David Rajchenbach-Teller
74b8f71a82 Bug 761138 - Create/remove directories (testsuite). r=froydnj 2012-08-24 16:18:16 -04:00
David Rajchenbach-Teller
98096a724b Bug 761138 - Create/remove directories (Windows version). r=froydnj 2012-08-24 16:18:15 -04:00
David Rajchenbach-Teller
b39ae853e2 Bug 761138 - Create/remove directories (Unix version). r=froydnj 2012-08-24 16:18:15 -04:00
David Rajchenbach-Teller
e34177f37f Bug 775588 - Test that temporary directory, profile directory are present. r=yoric
--HG--
extra : rebase_source : ec3ac0e47c1b86241cee965c3bad14bc5ca28116
2012-08-22 16:58:09 -04:00
David Rajchenbach-Teller
cfa861eeab Bug 782303 - Serialize directory entries. r=froydnj 2012-08-18 12:26:35 -04:00
David Rajchenbach-Teller
e77291ae46 Bug 776259 - Serialize file info. r=froydnj 2012-08-18 12:26:35 -04:00
David Rajchenbach-Teller
4db449a360 Bug 771929 - Serialize numbers. r=froydnj 2012-08-18 12:26:35 -04:00
David Rajchenbach-Teller
0035caf975 Bug 783284 - [OS.File] Rename *Time to *Date. r=froydnj 2012-08-18 08:25:49 -04:00
David Rajchenbach-Teller
ff7c2d6d51 Bug 780501 - Path types for OS.File;r=froydnj 2012-08-16 22:05:30 -04:00
David Rajchenbach-Teller
b661c92be0 Bug 771928 - Test OS.File pointer arithmetic. r=froydnj 2012-08-16 22:05:30 -04:00
David Rajchenbach-Teller
f265533a1c Bug 771928 - OS.File pointer arithmetics. r=froydnj 2012-08-16 22:05:30 -04:00
David Rajchenbach-Teller
95ee23b5f6 Bug 773643 - Test (de)serialization of errors. r=froydnj 2012-08-14 19:56:47 -04:00