Commit Graph

27 Commits

Author SHA1 Message Date
Georg Fritzsche
fbfffbfda7 Bug 885389 - Add test coverage for do_get_profile() observer notifications. r=ted 2015-04-21 16:30:37 +02:00
Andrew Halberstadt
11b824f09b Bug 1066735 - Remove root b2g and android specific xpcshell manifests, r=chmanchester 2014-10-07 18:18:28 -04:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Birunthan Mohanathas
254f890e2e Bug 1016240 - Exterminate CR+LF line endings. r=briansmith,cpearce,ehsan,gavin 2014-06-18 17:56:02 -07:00
Mike de Boer
355ce664f5 Bug 1014482: update XPCShell self-tests to be compatible with global Assert.jsm methods. r=gps 2014-05-30 16:26:44 +02:00
Jeremy Morton
cabb2da590 Bug 998291 - Allow for relatively-loaded modules to be loaded into a given scope. r=bsmedberg 2014-04-22 23:37:26 +01:00
Gregory Szorc
189afd1a65 Bug 901990 - Part 2: Upgrade xpcshell manifests; r=ted 2013-09-24 11:50:08 -07:00
Jim Blandy
58cf18a230 Bug 899757: Make nsServerSocket::InitWithAddress provide more detailed error results. r=mayhemer, r=ted
I looked through the NSPR socket creation functions that InitWithAddress
uses to see which errors they could return, and placed appropriate comments
in ErrorAccordingToNSPR.

The test coverage is not great; in particular, I wasn't able to find a way
to elicit "address in use" errors from Windows (although I could from
Linux); the web says that Windows is much more relaxed about binding
listening sockets than Unix derivatives. I'm interested in suggestions.
2013-09-06 08:06:22 -07:00
Mihnea Dobrescu-Balaur
dbc39b7ead Bug 892021 - Add a do_get_tempdir function to head.js. r=ted, r=gbrown 2013-07-16 09:38:35 -07:00
Jim Blandy
7211407b9b Bug 808791: Add some xpcshell testing functions handy for matching JSON packets. r=jmaher 2013-01-14 16:15:58 -08:00
Mark Capella
a4f2f7bbee Bug 772272 - Remove do_load_httpd_js from xpcshell tests, Final, r=ted
Remove last three references, final cleanup
2012-08-23 08:16:44 -04:00
Gregory Szorc
f2c0bc7eeb Bug 760576 - Define do_check_null test helper for xpcshell tests; r=ted 2012-06-01 19:23:31 +02:00
Gervase Markham
cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ted Mielczarek
5ae59a8111 bug 664197 - integrate mozinfo + ManifestDestiny update into xpcshell harness. r=jmaher 2011-06-21 08:12:40 -04:00
Joel Maher
39ca77fbd2 Bug 616999. Xpcshell manifest support; manifest files. r=ted, a=test-only 2011-05-20 11:54:01 -04:00
Jonathan Protzenko
28fb9d1722 Bug 628669: Provide support for relative URLs in Components utils import (JSM, JS modules) r=bsmedberg r=mrbkap
This patch allows a JS module to import another one with a relative path. For
instance, if you have a set of modules you want to drop-in in any extension, and
these modules depend on each other, you can import XPCOMUtils and then do
XPCOMUtils.importRelative(this, "otherfile.jsm").
2011-04-14 00:10:13 +02:00
Marco Bonardo
f920734ad6 Bug 602871 - XPCShell test harness should ignore system idle time while running tests, r=ted a=tests-only 2010-10-19 11:18:40 +02:00
Dave Townsend
3ff971529b Bug 550481: Exceptions from the do_execute_soon callback should be logged and fail the test. r=ted 2010-03-08 10:26:54 -08:00
Marco Bonardo
d96b854d39 Bug 544241 - xpcshell-tests head.js should always remap resource://test to the current test dir, r=ted 2010-02-23 14:11:37 +01:00
John Daniels
b11db71e70 Bug 525819 - Make do_timeout take a callback function, not a string to eval. r=jwalden 2009-11-24 11:58:42 -08:00
Ted Mielczarek
886f30a24c bug 459114 - helper function to provide a clean profile directory for xpcshell tests. r=sdwilsh 2009-05-14 07:37:40 -04:00
Ted Mielczarek
114d157d21 Backed out changeset 9ddc25fb2246 - bug 459114 - helper function to provide a clean profile directory for xpcshell tests. r=sdwilsh - for test failures 2009-08-05 15:36:20 -04:00
Ted Mielczarek
d1eb2fade9 bug 459114 - helper function to provide a clean profile directory for xpcshell tests. r=sdwilsh 2009-05-14 07:37:40 -04:00
Ted Mielczarek
3b71e84498 bug 439110 - xpcshell's load() just silently fails for non-existent files - add automated test 2009-04-20 06:56:23 -04:00
Ted Mielczarek
31c7dc8591 bug 482085 - fix all xpcshell tests to not reference files from the srcdir. r=bsmedberg,waldo 2009-03-21 11:20:00 -04:00
Serge Gautherie
54e4fe8656 Bug 446300 - move tools/test-harness/xpcshell-simple to testing/xpcshell; (Dv1-MC) Move the source harness directory, followup; r=ted.mielczarek
Fix changeset 2cff77c405f8: move new files (and update them) to the correct place.
2009-01-27 17:48:14 +01:00
Serge Gautherie
8d1e19e9fd Bug 446300 - move tools/test-harness/xpcshell-simple to testing/xpcshell; (Av1a-MC) Move the source harness directory; r=ted.mielczarek 2009-01-22 19:39:02 +01:00