Commit Graph

1772 Commits

Author SHA1 Message Date
Jim Blandy
4d6a633bba 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
Andrew Halberstadt
e30a35bbc9 Bug 1028746 - Running mach mochitest-remote from gecko srcdir raises AttributeError instead of being helpful, r=gps, DONTBUILD, a=NPOTB 2014-06-24 13:47:19 -04:00
Vaibhav Agrawal
45213e82ee Bug 925699 - pymake/mach mochitest-plain don't delete the temporary profile. r=jmaher 2014-06-24 12:02:07 -04:00
Carsten "Tomcat" Book
8be0d4bc98 Backed out changeset 8499eefa342e (bug 958868) for m2 test failures on a CLOSED TREE 2014-06-24 12:49:47 +02:00
Vaibhav Agrawal
34b269b85c Bug 925699 - pymake/mach mochitest-plain don't delete the temporary profile. r=jmaher 2014-06-23 11:24:00 +02:00
Andrew Comminos
156004b042 Bug 958868 - Add support for delta line and page accumulation; r=masayuki, sr=smaug 2014-06-24 18:02:11 +09:00
Geoff Brown
8e59ee35ac Bug 1028918 - Re-enable test_MediaSource.html on Android 2.3; no review 2014-06-23 21:17:02 -06:00
David Burns
d5d64c921c Bug 1024642: Remove extra white space from files, no functional changes; r=dbaron 2014-06-23 10:24:16 +01:00
David Burns
a495f58aea bug 1024642: Add rebeccapurple to mochitest colors; r=jmaher 2014-06-23 10:24:08 +01:00
Geoff Brown
2fbcaa2826 Bug 1028918 - Disable content/media/mediasource/test/test_MediaSource.html on Android 2.3; r=me 2014-06-23 08:35:52 -06:00
Wes Kocher
04a521faea merge m-c to inbound on a CLOSED TREE 2014-06-20 14:02:54 -07:00
Wes Kocher
b8d6b378bf Merge m-c to fx-team 2014-06-19 18:33:19 -07:00
Gregory Szorc
88fb1d29b0 Bug 920193 - mach mochitest can now receive test objects; r=AutomatedTester
Similar to the previous patch, we now teach `mach mochitest` how to
execute test objects directly.

--HG--
extra : rebase_source : b69b5b74bcf6c81cff5deb28a1156ab2fcc691f7
2014-06-18 11:19:45 -07:00
Gregory Szorc
c15e536e73 Bug 938712 - Add --flavor to mach mochitest; r=AutomatedTester
`mach mochitest` now accepts a --flavor argument to limit execution to
tests of a certain flavor. Executing `mach mochitest --flavor=X` should
be equivalent to executing `mach mochitest-X`.

This paves the road to deprecating the various `mach mochitest-X`
commands.

--HG--
extra : rebase_source : 0f8370425f54a4ec86e7f668bcbff69362e017f7
2014-06-17 15:49:41 -07:00
Gregory Szorc
b3a110713e Bug 938712 - Implement mach mochitest; r=AutomatedTester
The `mach mochitest` command is now implemented. Given test path
arguments, it will identify mochitests of any flavor and run the
appropriate mochitest suite.

If tests from multiple suites are present, it will invoke each suite
separately. Although, the output in this mode isn't very friendly.

There are a number of enhancements that could be made to this command,
including the abilities to filter by flavor and sub-suite. These will
come in another patch.

--HG--
extra : rebase_source : 9be6000e6bb508ef0c980eda9f9ebe03a4c0f02a
2014-06-17 15:42:08 -07:00
Gregory Szorc
fce0336b8c Bug 938712 - Allow multiple instantiations of MochitestOptions; r=AutomatedTester
The MochitestOptions class has a class-local definition of the options
going into the optparse instance. The default values for these options
would be reused by subsequent consumers. In the case of the profile
path, the same temporary directory would be used. In the case of list
arguments, subsequent runs would inherit members added by earlier runs.

This patch should make subsequent runs free from the baggage of the
first.

--HG--
extra : rebase_source : c55a229e67515a9133377404344872ad0935a637
2014-06-17 15:38:13 -07:00
Andrew McCreight
4061f7761e Bug 988041 - Enable LeakSanitizer for Mochitests. r=jmaher 2014-06-20 09:08:30 -07:00
Andrew Halberstadt
d638652838 Bug 997244 - Move emulator.py out of marionette and into mozrunner, r=wlach,mdas,jgriffin 2014-06-19 14:17:26 -04:00
Geoff Brown
7285ebc540 Bug 1026830 - Add LD_LIBRARY_PATH=xrePath when launching utilities; r=jmaher 2014-06-18 20:39:34 -06:00
Nicholas Nethercote
39f29c384a Bug 1010064 - Allow memory reports to be anonymized. r=bsmedberg.
--HG--
extra : rebase_source : 5eb756b17a97e751deb0f47e909fdb35533cb23b
2014-05-20 23:06:54 -07:00
Wes Kocher
0771859834 Backed out changeset 81a51de30a2a (bug 997244) for breaking b2g emulator mochitests on an otherwise CLOSED TREE 2014-06-18 14:15:48 -07:00
Andrew Halberstadt
0b14f45d59 Bug 997244 - Pull emulator.py out of marionette and into mozrunner, r=wlach,mdas,jgriffin 2014-06-18 13:30:12 -04:00
Armen Zambrano Gasparnian
9c5e561048 Bug 989583 - Set self.testRoot and self.testRootAbs in only one place (runtests.py). r=jmaher 2014-06-17 09:50:16 -04:00
Armen Zambrano Gasparnian
31244d9e09 Bug 989583 - Install all tests (even disabled) from manifests. r=jmaher 2014-06-16 14:51:22 -04:00
David Rajchenbach-Teller
7f063bb1ef Bug 1010518 - Activate Task.Debugging.maintainStack on test suites. r=ted 2014-06-09 14:43:00 +02:00
William Lachance
4b9480677f Bug 984528 - Rename manifestdestiny -> manifestparser. r=ahal
--HG--
rename : testing/mozbase/docs/manifestdestiny.rst => testing/mozbase/docs/manifestparser.rst
rename : testing/mozbase/manifestdestiny/manifestparser/__init__.py => testing/mozbase/manifestparser/manifestparser/__init__.py
rename : testing/mozbase/manifestdestiny/manifestparser/manifestparser.py => testing/mozbase/manifestparser/manifestparser/manifestparser.py
rename : testing/mozbase/manifestdestiny/setup.py => testing/mozbase/manifestparser/setup.py
rename : testing/mozbase/manifestdestiny/tests/comment-example.ini => testing/mozbase/manifestparser/tests/comment-example.ini
rename : testing/mozbase/manifestdestiny/tests/default-skipif.ini => testing/mozbase/manifestparser/tests/default-skipif.ini
rename : testing/mozbase/manifestdestiny/tests/filter-example.ini => testing/mozbase/manifestparser/tests/filter-example.ini
rename : testing/mozbase/manifestdestiny/tests/fleem => testing/mozbase/manifestparser/tests/fleem
rename : testing/mozbase/manifestdestiny/tests/include-example.ini => testing/mozbase/manifestparser/tests/include-example.ini
rename : testing/mozbase/manifestdestiny/tests/include/bar.ini => testing/mozbase/manifestparser/tests/include/bar.ini
rename : testing/mozbase/manifestdestiny/tests/include/crash-handling => testing/mozbase/manifestparser/tests/include/crash-handling
rename : testing/mozbase/manifestdestiny/tests/include/flowers => testing/mozbase/manifestparser/tests/include/flowers
rename : testing/mozbase/manifestdestiny/tests/include/foo.ini => testing/mozbase/manifestparser/tests/include/foo.ini
rename : testing/mozbase/manifestdestiny/tests/just-defaults.ini => testing/mozbase/manifestparser/tests/just-defaults.ini
rename : testing/mozbase/manifestdestiny/tests/manifest.ini => testing/mozbase/manifestparser/tests/manifest.ini
rename : testing/mozbase/manifestdestiny/tests/mozmill-example.ini => testing/mozbase/manifestparser/tests/mozmill-example.ini
rename : testing/mozbase/manifestdestiny/tests/mozmill-restart-example.ini => testing/mozbase/manifestparser/tests/mozmill-restart-example.ini
rename : testing/mozbase/manifestdestiny/tests/no-tests.ini => testing/mozbase/manifestparser/tests/no-tests.ini
rename : testing/mozbase/manifestdestiny/tests/path-example.ini => testing/mozbase/manifestparser/tests/path-example.ini
rename : testing/mozbase/manifestdestiny/tests/relative-path.ini => testing/mozbase/manifestparser/tests/relative-path.ini
rename : testing/mozbase/manifestdestiny/tests/test_convert_directory.py => testing/mozbase/manifestparser/tests/test_convert_directory.py
rename : testing/mozbase/manifestdestiny/tests/test_convert_symlinks.py => testing/mozbase/manifestparser/tests/test_convert_symlinks.py
rename : testing/mozbase/manifestdestiny/tests/test_default_skipif.py => testing/mozbase/manifestparser/tests/test_default_skipif.py
rename : testing/mozbase/manifestdestiny/tests/test_expressionparser.py => testing/mozbase/manifestparser/tests/test_expressionparser.py
rename : testing/mozbase/manifestdestiny/tests/test_manifestparser.py => testing/mozbase/manifestparser/tests/test_manifestparser.py
rename : testing/mozbase/manifestdestiny/tests/test_read_ini.py => testing/mozbase/manifestparser/tests/test_read_ini.py
rename : testing/mozbase/manifestdestiny/tests/test_testmanifest.py => testing/mozbase/manifestparser/tests/test_testmanifest.py
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/subdir/manifest.ini => testing/mozbase/manifestparser/tests/verifyDirectory/subdir/manifest.ini
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/subdir/test_sub.js => testing/mozbase/manifestparser/tests/verifyDirectory/subdir/test_sub.js
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/test_1.js => testing/mozbase/manifestparser/tests/verifyDirectory/test_1.js
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/test_2.js => testing/mozbase/manifestparser/tests/verifyDirectory/test_2.js
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/test_3.js => testing/mozbase/manifestparser/tests/verifyDirectory/test_3.js
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/verifyDirectory.ini => testing/mozbase/manifestparser/tests/verifyDirectory/verifyDirectory.ini
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/verifyDirectory_incomplete.ini => testing/mozbase/manifestparser/tests/verifyDirectory/verifyDirectory_incomplete.ini
rename : testing/mozbase/manifestdestiny/tests/verifyDirectory/verifyDirectory_toocomplete.ini => testing/mozbase/manifestparser/tests/verifyDirectory/verifyDirectory_toocomplete.ini
2014-06-10 13:20:23 -04:00
Gijs Kruitbosch
13038eca1c Bug 1022616 - mochitest chrome template uses broken path to SimpleTest.js, r=jmaher DONTBUILD because NPOTB
--HG--
extra : rebase_source : 5924ce540737491b5ad1baef3dda1c8256b4675b
2014-06-09 13:17:21 +01:00
Nathan Froyd
bd475bdbca Bug 988169 - display the list of mochitests again; r=jmaher 2014-05-22 10:32:32 -04:00
Joel Maher
15b2b6128b Bug 992911 - (run-by-dir) add the ability to run mochitests per directory in a loop. r=ahal 2014-06-03 11:19:28 -04:00
Geoff Brown
9f04be3a68 Bug 1019604 - Avoid mochitest cleanup failure following error; r=jmaher 2014-06-03 08:19:37 -06:00
Carsten "Tomcat" Book
b24097f49a Backed out changeset 86d0bd2a0233 (bug 992911) for android 2.3 bustage 2014-06-02 13:36:51 +02:00
Joel Maher
5ba56a3264 Bug 992911 - (run-by-dir) add the ability to run mochitests per directory in a loop. r=ahal 2014-06-02 06:54:23 -04:00
Joel Maher
4a01fb5fe9 Bug 1014503 - running devtools tests via mochitest-browser gives unhelpful error message. r=ted 2014-05-30 08:17:05 -04:00
Bobby Holley
63c08e78fa Bug 1015380 - Fix up SpecialPowers. r=gabor 2014-05-28 11:14:27 -07:00
Geoff Brown
c33b8ad3e9 Bug 979921 - Enable several mochitests on Android 2.3; r=dminor 2014-05-26 12:36:57 -06:00
Marco Castelluccio
a99a3096b2 Bug 1009809 - Use ManifestHelper::biggestIconURL in the desktop app installer. r=myk,jmaher
--HG--
rename : toolkit/webapps/tests/test_hosted.xul => toolkit/webapps/tests/test_hosted_icons.xul
rename : toolkit/webapps/tests/test_packaged.xul => toolkit/webapps/tests/test_packaged_icons.xul
2014-05-21 18:02:21 +02:00
James Graham
41dd2b2604 Bug 1011458 - Buy back a few characters for Windows paths by renaming tests staging directory. r=ted 2014-05-16 04:55:00 +02:00
Geoff Brown
47a3f79da2 Bug 936226 - Update test manifests for Android x86; r=me 2014-05-12 18:39:24 -06:00
Christoph Kerschbaumer
e3eeb185e9 Bug 1008407 - test/navigation/test_bug344861.html fails on B2G ICS Emulator Opt when enforcing CSP 1.0. r=fabrice 2014-05-12 12:02:14 -07:00
Andrew Halberstadt
f310c7b7a3 Bug 957768 - Backout no longer needed --hide-subtests mochitest option (bug 937181 implemented the same thing but better), r=jmaher 2014-05-09 14:59:18 -04:00
Geoff Brown
64bf884a5c Bug 984523 - Update manifests for Android mochitest-gl; r=jmaher 2014-05-08 21:24:05 -06:00
Boris Zbarsky
de703c8590 Bug 990289. Make running a single mochitest run it in a way where the subtest results can be accessed. r=ted 2014-05-08 22:20:54 -04:00
Ted Mielczarek
159f8c076d bug 815002 - allow using loopback devices in WebRTC mochitests on Linux when available. r=jsmith,jmaher 2014-05-01 07:18:00 -04:00
Dão Gottwald
9155b33e7c Bug 805068 - Make browser chrome tests more self-contained by giving each test a new blank tab. r=ttaubert 2014-05-07 15:08:05 +02:00
Ehsan Akhgari
f54064f016 Bug 1006648 - Add a dummy SimpleTest.requestFlakyTimeout() function; r=ted 2014-05-06 20:06:50 -04:00
Gavin Sharp
c607f79fa9 Bug 896711: remove BrowserChromeTests.runWhenReady because it's being abused, r=dao/ttaubert/vporof 2013-07-27 17:32:40 -07:00
Gijs Kruitbosch
47a7b46794 Bug 1004410 - allow running mochitests against an arbitrary binary, r=jmaher
--HG--
extra : rebase_source : ba7e34aaffe2dd845b8717a34dc27c7f59983534
2014-05-01 11:05:36 +01:00
Vicamo Yang
120e5aad58 Bug 996443: carry emulator arch automatically for mach commands. r=ahal 2014-05-01 00:57:39 +08:00
Myk Melez
01123e80fe Bug 1001681 - define Task to fix webapprt-test-chrome tests; r=jmaher 2014-04-26 14:05:46 -07:00
Masayuki Nakano
a47b044528 Bug 998188 part.5 Fix orange and improve EventUtils.js and ChromeUtils.js r=smaug 2014-04-26 08:52:13 +09:00