Commit Graph

81 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
Nathan Froyd
bd475bdbca Bug 988169 - display the list of mochitests again; r=jmaher 2014-05-22 10:32:32 -04:00
Tim Taubert
09db36a7d7 Bug 842511 - Specify a character set for directory listings r=gavin 2014-04-06 06:01:49 +02:00
Shu-yu Guo
4b34641680 Bug 939414 - Dump memory stats for browser-chrome. (r=ted) 2013-11-20 12:08:07 -08:00
Joel Maher
414a3b5080 Bug 868158 - mochitests should support manifest format. r=ted 2013-08-02 08:48:06 -04:00
Gavin Sharp
03583a2fa5 Bug 883314 part 2: refactor mochitest chunking code to be re-used for mochitest-browser-chrome, r=jmaher
--HG--
extra : transplant_source : %0A%C3%7F%B7%CFL%AD%2C%A2Y%5D51%AF%19%C1%C8%C5%5B%07
2013-06-16 11:19:47 -04:00
Felipe Gomes
b342190fb5 Bug 875463 - Part 0. Remove plain-loop.html and fix --repeat for single tests. r=jmaher 2013-05-24 16:03:49 -03:00
Tim Taubert
32704e37ba Backed out changeset 4d74fe8e6560 (bug 842511) 2013-02-22 22:23:28 +01:00
Tim Taubert
879d3bd5cc Bug 842511 - Specify a character set for directory listings; r=Waldo 2013-02-22 19:56:14 +01:00
Christian Holler
49974c5e53 Bug 787916 - Hide Mochitest test table with --close-when-done option. r=jmaher 2012-09-19 01:28:39 +02:00
Matt Brubeck
bdf39881f3 Back out b77834cb31ad (bug 580794) because of mochitest-browser-chrome timeouts 2012-07-25 16:19:02 -07:00
David Keeler
3744d23b02 bug 580794 - strip userpass from favicon uri (r=filipc,ctalbert) 2012-07-24 10:48:42 -07:00
Drew Willcoxon
f3a88b80ef Bug 733631 - Create a unit test infrastructure for the webapp runtime. r=myk,felipc,ctalbert 2012-06-29 15:52:43 -07:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Ralph Giles
72bc05e1a8 Bug 674225 - Add basic mochitests for Opus. r=cpearce
Add a short Ogg Opus file to the content/media/test
directory and add it to the gSeekTests, gSmallTests,
and gPlayTests in manifest.js. This file is crafted
to end on a packet boundary, so trimming to duration
is not verified.
Set the media.opus.enabled pref to true in manifest.js
so the various tests using the opus file succeed.

Add a stanza to can_play_type_ogg.js to test the
behaviour of canPlayType with an opus-specific
media type for both values of the pref.

Add support for the .opus filename extension to
the mochitest http server.
2012-05-01 17:29:42 -07:00
Artur Adib
e6bf2ee7af Bug 714712 - Part 2: pdf.js test. r=gavin 2012-03-21 22:25:06 -04:00
Joel Maher
91544c4de5 Bug 693959 - convert quit.js to specialpowers. r=ted 2011-10-14 07:52:02 -04:00
Malini Das
0efd71b59a Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- harness. r=jmaher, a=test-only 2011-08-12 12:21:35 -04:00
Cameron McCormack
884d695fd6 Bug 479352 - Hide mochitest results table if MOZ_HIDE_RESULTS_TABLE=1 is set. (v4) r=jmaher, a=testonly 2011-07-26 16:13:20 -07:00
Joel Maher
6c53116c92 Bug 668303 - convert mozillafilelogger to specialpowers. r=ctalbert, a=test-only
--HG--
rename : testing/mochitest/tests/SimpleTest/MozillaFileLogger.js => testing/mochitest/tests/SimpleTest/MozillaLogger.js
2011-07-18 22:10:29 -04:00
Malini Das
d494a702ae Bug 603517 - Enable mochitest to optionally run in loops without restarting the browser r=ctalbert 2011-07-14 14:39:17 -07:00
Benjamin Stover
4384958eb5 Bug 658065 Fix some warnings in mochitest harness r=ctalbert 2011-06-08 09:04:14 -07:00
Benoit Jacob
5a9c7d6431 Bug 658359 - Register .frag and .vert extensions as text/plain to prevent crashing due to buggy plugins in WebGL mochitest - r=ehsan
These file types were unknown, leading to querying plugins to check if any would recognize these types, leading to xpcshell crashes due to bad plugins on linux, leading to mochitest failure on my machine.
2011-05-20 17:50:53 -04:00
Joel Maher
432824779c Bug 636154 - server.js limits custom ports to 31999, we should make this 64K. r=ted, a=test-only 2011-02-23 14:39:01 -05:00
Gavin Sharp
9c64c7f28c Bug 606251: fix bug in test file enumeration that broke running tests more than once (depending on JS version changes), r=dtownsend, a=tests
--HG--
extra : rebase_source : 4c0ad52132f4674e415bae9f6e0b955fb813cd60
2010-12-05 08:38:29 -05:00
Henri Sivonen
8bc14b6092 Bug 559023 part 1 - Move html5lib tree builder tests to a directory of their own. r=jgriffin, a=test-only.
--HG--
rename : parser/htmlparser/tests/mochitest/html5lib_license.txt => parser/htmlparser/tests/mochitest/html5lib_tree_construction/html5lib_license.txt
rename : parser/htmlparser/tests/mochitest/html5lib_tree_dat1.txt => parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests1.dat
rename : parser/htmlparser/tests/mochitest/html5lib_tree_dat2.txt => parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests2.dat
rename : parser/htmlparser/tests/mochitest/html5lib_tree_dat3.txt => parser/htmlparser/tests/mochitest/html5lib_tree_construction/tests3.dat
2010-09-01 14:41:12 +03:00
Mounir Lamouri
cc33a99998 Merging to tip. a=blocking-b7 2010-09-30 17:10:19 -07:00
Joel Maher
e1bb662746 Bug 512319 Add options for mochitest to use an external server r=ted 2010-03-13 09:56:24 -08:00
Joel Maher
d050afae06 Bug 544097 Chaning mochitests to run against mochi.test instead of localhost r=ted, waldo, dwitte p=jmaher. Landed on CLOSED TREE 2010-03-12 13:53:36 -08:00
Brad Lassey
bb55fe310f backing out changesets e939397fc6a5, 88529662c474 and 3d7c54b194bb due to random hangs in pgo tests 2010-03-09 22:33:11 -05:00
Joel Maher
be2af66d17 Bug 512319 Add options for mochitest to use an external server p=jmaher r=ted 2010-03-09 11:54:39 -08:00
Joel Maher
aef3dc32c3 Bug 544097 changing mochitests to use mochi.test instead of localhost for windows mobile refactoring p=jmaher, r=ted,dwitte, sayrer, waldo, ctalbert 2010-03-09 08:55:39 -08:00
Kyle Huey
1d0289c601 Backed out changeset 8ce70abd7777 2010-03-09 01:14:21 -05:00
Joel Maher
cee9b522a0 Bug 544097 Change mochitests to use mochi.test instead of localhost for mobile refactoring p=jmaher r=ted,dwitte,sayrer 2010-03-08 19:21:33 -08:00
Clint Talbert
7ffd9496bc Backed out changeset b4372055f473 -- due to unexplained orange on OS X Leak test (Bd) box 2010-03-07 17:34:23 -08:00
Joel Maher
ef6c5fda3d Bug 544097 - Change mochitests to use mochi.test instead of localhost for mobile test refactoring p=jmaher, r=sayrer,dwitte 2010-03-07 16:08:05 -08:00
Jonas Sicking
703cc57e55 Bug 548171: Make getFile function on SERVER_ROOT platform independent. r=waldo 2010-02-23 18:04:35 -08:00
Zack Weinberg
5d31f02b7d Bug 540633: Label httpd.js debug logs, optionally timestamp them, and add support for enabling or disabling them in the middle of a run (currently only for mochitests). r=jwalden 2010-02-09 14:07:33 -08:00
Jeff Walden
48c994ee2a Bug 511317 - Add a SERVER_ROOT object-state mapping to the Mochitest harness. r=sicking 2010-02-02 17:28:46 -08:00
Zack Weinberg
bee097ea73 Back out instrumentation for bug 536603 and re-disable test 2010-01-18 14:54:56 -08:00
Zack Weinberg
ef69f941b3 Extensive debugging instrumentation for bug 536603 2010-01-18 09:03:50 -08:00
Henri Sivonen
997d759378 Bug 499907 - Make the mochitest server have the right MIME types for Ogg. r=jwalden+bmo 2009-06-26 10:45:08 +03:00
Olli Pettay
d7bd5d2e6a Bug 454781 - Mochitest doesn't align the names of the testfiles and test results, r=sayrer 2009-04-21 14:25:22 +03:00
Jeff Walden
583c6b4c88 Bug 396226 - Provide an API to asynchronously generate HTTP responses in httpd.js, and implement a state-storage system which can store object references to provide greater contextual information in handlers. NB: this push enables httpd.js debug output just in case something goes wrong, to be disabled as soon as it's clear nothing has -- expect the first Windows builds to finish next century sometime. r=sayrer 2009-04-15 13:19:35 -07:00
Ted Mielczarek
18e08ab904 bug 460515 - Remove assumption that xpcshell etc in same directory as app executable. r=jwalden 2009-02-09 13:57:27 -05:00
Jonas Sicking
be65469e7c Bug 464954: Update Access-Control implementation to latest draft and fix some bugs. r/sr=bz 2009-01-21 14:50:28 -08:00
Peter Van der Beken
533783d9ea Backed out changeset 9fc993ac4427 (Bug 464954: Update Access-Control implementation to latest draft and fix some bugs. r/sr=bz) to fix orange. 2009-01-22 14:52:34 +01:00
Jonas Sicking
e0c26b7454 Bug 464954: Update Access-Control implementation to latest draft and fix some bugs. r/sr=bz 2009-01-21 14:50:28 -08:00
Jonas Sicking
5b04c277ae Backed out changeset 2063e342b8e1 due to failing docshell tests 2009-01-21 18:07:29 -08:00
Jonas Sicking
e7e7213705 Bug 464954: Update Access-Control implementation to latest draft and fix some bugs. r/sr=bz 2009-01-21 14:50:28 -08:00