TimeStamp too expensive?

2013-01-06 Thread Josh Aas
I was working on something for which TimeStamp and TimeDuration classes would be helpful in simplifying code that deals with a cache expiration date. This code does not require high-precision timing. In review I was told that "TimeStamp shouldn't be used unless a hi-precision ms resolution is ne

Re: jsm source (mercurial )

2013-01-06 Thread Daniel Holbert
I'm guessing you meant "do_get_cwd" (not _workdir) That and do_print are defined in head.js: https://mxr.mozilla.org/mozilla-central/source/testing/xpcshell/head.js and they're documented here: https://developer.mozilla.org/en/docs/Writing_xpcshell-based_unit_tests ~Daniel On 01/06/2013 09:12 A

Re: jsm source (mercurial )

2013-01-06 Thread rvj
Many thanks for your reply all your suggestions.. ...its just taken a bit of time knowing in which JSM a particular function is located For example, I was trying to find "helper" functions used in test_subprocess(), functions such as do_get_workdir() and do_print(), but it seems that you

Re: jsm source (mercurial )

2013-01-06 Thread Jonathan Protzenko
On Sun 06 Jan 2013 03:49:46 PM CET, rvj wrote: > Yes thanks . > > Thats where I started before getting sidetracked looking for > test functions in the Mercurial source ...something which I am just > finding my around https://github.com/protz/gpgfox/blob/0d2fb7c0e207c8a76def0d87b0888b759b2f6ffe/

Re: jsm source (mercurial )

2013-01-06 Thread rvj
Yes thanks . Thats where I started before getting sidetracked looking for test functions in the Mercurial source ...something which I am just finding my around PS do you understand the reference to compilation of tests? "Jonathan Protzenko" wrote in message news:mailman.6011.1357482

Re: jsm source (mercurial )

2013-01-06 Thread Jonathan Protzenko
The code lives there http://hg.mozilla.org/ipccode/ and is very well-documented. It's all JSM's so it should fit your use case very well. Cheers, jonathan On Sun 06 Jan 2013 02:48:59 PM CET, rvj wrote: > OK think Ive found it in testframework.js > > I could really do with a properly documente

Re: jsm source (mercurial )

2013-01-06 Thread rvj
OK think Ive found it in testframework.js I could really do with a properly documented example of a subprocess call for novices Can anyone explain comment 247 in bug 68702 regarding test case compilation ??? "Jan Gerber and I have developed an entirely new version of subprocess, written i

Re: jsm source (mercurial )

2013-01-06 Thread rvj
BTW where are all the functions with the prefix do_ located that appear in the .jsm modules do_get_file, do_print, etc "rvj" wrote in message news:lo6dnupuperznxznnz2dnuvz_jodn...@mozilla.org... do I need to install windows mercurial to download the jsm files .. or is there an alte

RE: Firefox Social API

2013-01-06 Thread Adam Sobieski
Firefox Developers and Community, There's also a class action lawsuit about Facebook"sponsored stories": http://epic.org/privacy/vppa/Fraley%20v.%20Facebook%20(appropriation%20case)%20Order%2012-16.pdf http://docs.fraleyfacebooksettlement.com/docs/notice.pdf http://www.fraleyfacebooksettlement