Andrew Halberstadt
422647ac94
Bug 1206073 - [xpcshell] Fix default value for testingModulesDir when running from mach, r=jgraham
...
--HG--
extra : commitid : KjVjUrw8IZ4
extra : rebase_source : 4ff826498fb3c303e873b8da760671577bd174b7
2015-09-18 10:00:40 -04:00
James Graham
e72c228cfc
Bug 1193257
- Make xpcshell harness command line arguments path filters for tests, r=ahal
2015-09-17 10:51:02 +01:00
James Graham
39b6367572
Bug 1193224
- Remove vestigial --tests-root-dir option from xpcshell tests, r=ahal
2015-09-17 10:51:00 +01:00
Patrick McManus
b095cc3e9b
bug 1204614 - test for h2 per stream flow control r=hurley
2015-09-14 14:08:10 -04:00
Shu-yu Guo
64db2267cf
Bug 1202902
- Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff)
2015-09-15 11:19:45 -07:00
Wes Kocher
e2c033639c
Backed out 7 changesets (bug 1181516, bug 1198257, bug 1193257
, bug 1194166, bug 1193223, bug 1193224
, bug 1181520) for breaking android 4.0 debug reftests CLOSED TREE
...
Backed out changeset 25f22b3433e0 (bug 1194166)
Backed out changeset a824847677c5 (bug 1193257
)
Backed out changeset 6cc19a8f1bb0 (bug 1193224
)
Backed out changeset bf1271f6cfa0 (bug 1198257)
Backed out changeset 75b3c43770bd (bug 1193223)
Backed out changeset 81a5cf4c8f19 (bug 1181516)
Backed out changeset db3691ee6fd1 (bug 1181520)
2015-09-15 08:52:19 -07:00
James Graham
b2ff60e70c
Bug 1193257
- Make xpcshell harness command line arguments path filters for tests, r=ahal
2015-09-15 15:33:37 +01:00
James Graham
bf3f4b3d18
Bug 1193224
- Remove vestigial --tests-root-dir option from xpcshell tests, r=ahal
2015-09-15 15:33:36 +01:00
Dragana Damjanovic
a7f75d48d4
Bug 1172502 - Add message encription for WebPush. r=mt r=kitcambridge r=keeler r=smaug
...
--HG--
extra : commitid : FsE5V9w4fej
extra : amend_source : 8b44837b765bd319cadc93a53948264dfbd87ecf
2015-09-11 07:51:32 -07:00
Carsten "Tomcat" Book
b3ee47117c
Backed out 7 changesets (bug 1181516, bug 1198257, bug 1193257
, bug 1194166, bug 1193223, bug 1193224
, bug 1181520) for test bustages on Android on a CLOSED TREE
...
Backed out changeset efe681ac063f (bug 1194166)
Backed out changeset bfcbce193ccf (bug 1193257
)
Backed out changeset bb035419fd9c (bug 1193224
)
Backed out changeset eb2d48b71c37 (bug 1198257)
Backed out changeset 0d6532c1e99e (bug 1193223)
Backed out changeset da3dd2f650d0 (bug 1181516)
Backed out changeset 29c33bbaac01 (bug 1181520)
2015-09-11 14:18:09 +02:00
James Graham
c6da3f4915
Bug 1193257
- Make xpcshell harness command line arguments path filters for tests, r=ahal
2015-09-11 12:30:14 +01:00
James Graham
e34ca60662
Bug 1193224
- Remove vestigial --tests-root-dir option from xpcshell tests, r=ahal
2015-09-11 12:30:14 +01:00
Nathan Froyd
956d3c942b
Bug 1196430 - part 6 - move cut-and-paste stack fixer code into mozrunner; r=wlach
...
This code is cut-and-pasted in several different places around the tree.
Let's put it in a common place.
2015-08-26 19:57:36 -04:00
Geoff Brown
65a6116f7a
Bug 1202102 - Apply szip to libs pushed for Android cppunit and xpcshell tests; r=dminor
2015-09-09 07:12:58 -06:00
Geoff Brown
9d0233b267
Bug 1202790 - Improve argument handling for android 'mach xpcshell-test'; r=chmanchester
2015-09-09 07:12:56 -06:00
Nick Fitzgerald
7af93cdc2a
Bug 1200446 - Add a method for saving heap snapshots to MemoryActor; r=jryans
2015-09-04 18:36:52 -07:00
Geoff Brown
2015a6ea72
Bug 1164596 - Add mach android-emulator command; r=ahal
2015-09-01 15:07:53 -06:00
Gijs Kruitbosch
75c948317e
Bug 1198716 - fix xpcshell --jsdebugger argument, r=jryans
...
--HG--
extra : commitid : JlmsELDMNm0
extra : rebase_source : cb9d862553b54adb24b53bc5b9fab9e669a20686
extra : histedit_source : 579669f9bb50f53237b8e08334b36ab39d9e34e0
2015-08-26 21:57:24 +01:00
Vaibhav Agrawal
7ec736a594
Bug 1197541 - Add --dump-tests option to mochitest and xpcshell for all tests that will be run. r=ahal
2015-08-21 17:16:11 -07:00
Nathan Froyd
6006fe1ee6
Bug 1192291 - use llvm-symbolizer when running xpcshell tests under TSan; r=ted
2015-08-07 02:58:05 -04:00
Hiroyuki Ikezoe
d0b622ad0f
Bug 1150818 - Part 2: Load mozinfo.json into xpcshell tests. r=ted
2015-08-20 16:06:00 -04:00
Alexandre Poirot
9c0a24f39a
Bug 1190452 - Always import toolkit/devtools/server/main.js as CommonJS module. r=jryans
2015-08-10 05:38:56 -07:00
David Keeler
59ef11f506
bug 1188100 - fold PSM's test_client_cert.js into necko's test_tls_server.js r=mcmanus
...
--HG--
rename : security/manager/ssl/tests/unit/test_client_cert/cert_dialog.js => netwerk/test/unit/client_cert_chooser.js
rename : security/manager/ssl/tests/unit/test_client_cert/cert_dialog.manifest => netwerk/test/unit/client_cert_chooser.manifest
extra : amend_source : 249efd8e1bc537cf14b3199865df18b8aba62d10
2015-07-29 14:27:54 -07:00
Julien Pagès
23e4c1d4a3
Bug 1091285 - move dumpScreen in a new mozscreenshot package. r=jgriffin
...
This also completely remove build/automationutils.py.
--HG--
extra : commitid : 50v6EAQNEHV
extra : rebase_source : 4ac1347d73498f068979514c6afb16ac50ab4033
2015-07-29 17:50:16 +02:00
Alessio Placitelli
5470b35b29
Bug 1168835 - Add test coverage for pending-pings quota. r=gfritzsche
2015-07-20 08:46:00 +02:00
Andrew Halberstadt
2be5ff0c10
Bug 1014760 - Move mozlog.structured to mozlog; Move mozlog to mozlog.unstructured, r=jgraham
...
Mozlog currently has two implementations. The top level package is based on the logging module and is
deprecated. The newer structured logging implementation lives in mozlog.structured. This patch swaps the
two, so the top level mozlog module contains the recommended implementation, while mozlog.unstructured
contains the old one.
--HG--
rename : testing/mozbase/docs/mozlog_structured.rst => testing/mozbase/docs/mozlog.rst
rename : testing/mozbase/mozlog/mozlog/structured/commandline.py => testing/mozbase/mozlog/mozlog/commandline.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/__init__.py => testing/mozbase/mozlog/mozlog/formatters/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/base.py => testing/mozbase/mozlog/mozlog/formatters/base.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/errorsummary.py => testing/mozbase/mozlog/mozlog/formatters/errorsummary.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/__init__.py => testing/mozbase/mozlog/mozlog/formatters/html/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/html.py => testing/mozbase/mozlog/mozlog/formatters/html/html.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/main.js => testing/mozbase/mozlog/mozlog/formatters/html/main.js
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/style.css => testing/mozbase/mozlog/mozlog/formatters/html/style.css
rename : testing/mozbase/mozlog/mozlog/structured/formatters/html/xmlgen.py => testing/mozbase/mozlog/mozlog/formatters/html/xmlgen.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/machformatter.py => testing/mozbase/mozlog/mozlog/formatters/machformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/tbplformatter.py => testing/mozbase/mozlog/mozlog/formatters/tbplformatter.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/unittest.py => testing/mozbase/mozlog/mozlog/formatters/unittest.py
rename : testing/mozbase/mozlog/mozlog/structured/formatters/xunit.py => testing/mozbase/mozlog/mozlog/formatters/xunit.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/__init__.py => testing/mozbase/mozlog/mozlog/handlers/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/base.py => testing/mozbase/mozlog/mozlog/handlers/base.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/bufferhandler.py => testing/mozbase/mozlog/mozlog/handlers/bufferhandler.py
rename : testing/mozbase/mozlog/mozlog/structured/handlers/statushandler.py => testing/mozbase/mozlog/mozlog/handlers/statushandler.py
rename : testing/mozbase/mozlog/mozlog/structured/logtypes.py => testing/mozbase/mozlog/mozlog/logtypes.py
rename : testing/mozbase/mozlog/mozlog/structured/reader.py => testing/mozbase/mozlog/mozlog/reader.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/__init__.py => testing/mozbase/mozlog/mozlog/scripts/__init__.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/format.py => testing/mozbase/mozlog/mozlog/scripts/format.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/logmerge.py => testing/mozbase/mozlog/mozlog/scripts/logmerge.py
rename : testing/mozbase/mozlog/mozlog/structured/scripts/unstable.py => testing/mozbase/mozlog/mozlog/scripts/unstable.py
rename : testing/mozbase/mozlog/mozlog/structured/stdadapter.py => testing/mozbase/mozlog/mozlog/stdadapter.py
rename : testing/mozbase/mozlog/mozlog/structured/structuredlog.py => testing/mozbase/mozlog/mozlog/structuredlog.py
rename : testing/mozbase/mozlog/mozlog/logger.py => testing/mozbase/mozlog/mozlog/unstructured/logger.py
rename : testing/mozbase/mozlog/mozlog/loggingmixin.py => testing/mozbase/mozlog/mozlog/unstructured/loggingmixin.py
rename : testing/mozbase/mozlog/mozlog/loglistener.py => testing/mozbase/mozlog/mozlog/unstructured/loglistener.py
extra : commitid : 3JWk75JY4N0
extra : rebase_source : 229bad7a7bf8ead013ce62d128c0896a75cad393
2015-07-16 10:38:40 -04:00
Gregory Szorc
4b8238e9dc
Bug 1176642 - Defer import of urllib2; r=chmanchester
...
This prevents 8 module imports from occurring at mach startup time.
As part of this, I discovered a redundant import of "sys" and eliminated
it.
--HG--
extra : commitid : AsZJHdCVbV0
extra : rebase_source : 53b1d5912ba85c7d363d9da21329a6fa65a2bce2
2015-06-25 12:12:15 -07:00
Gregory Szorc
3e949ee8fe
Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
...
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.
All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.
--HG--
extra : commitid : 6tFME1KKfTD
extra : rebase_source : 78728f82f5487281620e00c2a8004cd5e1968087
2015-06-21 17:39:09 -07:00
Michael Layzell
143cb59a10
Bug 1173503 - Make do_check_true output include the passed message in xpcshell unit tests r=ted
2015-06-19 14:27:37 -07:00
Alessio Placitelli
61d2710314
Bug 1169159 - Make xpcshells run_test_in_child() and do_await_remote_message() return promises. r=ted,gfritzsche
2015-06-03 04:41:00 +02:00
Chris Manchester
ba2b70542e
Bug 487494 - Pipe xpcshell's output through a stack fixer.;r=ted
...
--HG--
extra : commitid : CqKC3uLqzB
2015-06-11 11:21:13 -07:00
Chris Manchester
cdcbf20157
Bug 487494 - Add an xpcshell selftest for readable stacks from assertions.;r=ted
...
--HG--
extra : commitid : HBFkFrdYLoe
2015-06-11 11:21:12 -07:00
James Graham
43a3f73c63
Bug 1171849 Let consumers override mozlog default formatter options, r=chmanchester
2015-06-05 17:48:06 +01:00
Dragana Damjanovic
7cbd07a051
Bug 1150812 - xcpshell test for PushService with http2. r=nsm, r=mt
2015-06-02 07:16:00 -04:00
Robert Strong
547c00c74f
Bug 1169729 - Add prefixes to the mkdtemp calls in runxpcshelltests.py so it is easy to determine the directories that cause 'INFO Failed to remove directory' messages. r=ted
2015-06-01 11:52:21 -07:00
Patrick McManus
59fdf06bcd
Bug 1159944 - more alt-svc tests r=hurley
2015-04-30 20:53:20 -04:00
Chris Manchester
17cb2cc298
Bug 1160164 - Run "all the tests" when invoking xpcshell's mach command with no arguments instead of passing "all" to the test resolver.;r=ahal DONTBUILD
2015-04-30 11:30:10 -07:00
ziyunfei
e1db0f779e
Bug 1102219 - Part 4: Replace String.prototype.contains
with String.prototype.includes
in chrome code. r=till
2015-04-30 00:32:05 +09:00
Hiroyuki Ikezoe
fc6e6e9d62
Bug 1150822 - Need ability to skip each test on a given conditions. r=ted
2015-04-27 20:39:00 +02:00
Georg Fritzsche
6e361d8781
Bug 885389 - Add test coverage for do_get_profile() observer notifications. r=ted
2015-04-21 16:30:37 +02:00
Georg Fritzsche
3dd8b71099
Bug 885389 - Make do_get_profile() optionally fire profile-after-change on completion. r=ted
2015-04-21 16:30:36 +02:00
Georg Fritzsche
3bb6a9ea3f
Bug 1150134 - Part 3: Avoid hitting the network from Telemetry for xpcshell tests. r=yoric
2015-04-14 16:49:57 +02:00
Wes Kocher
381ed5c1ba
Merge inbound to m-c a=merge
2015-04-13 17:13:10 -07:00
Carsten "Tomcat" Book
0e18f2d43d
Merge mozilla-central to fx-team
2015-04-13 12:10:00 +02:00
Mark Hammond
1a137f9914
Bug 1074014
- allow verbose=true in xpcshell test manifests. r=ted
2015-04-13 10:32:55 +10:00
Ehsan Akhgari
29102666d0
Bug 952211 follow-up: Only access path if debuggerInfo is set
...
Landed on a CLOSED TREE as bustage fix
2015-04-10 14:45:52 -04:00
Krishnashish Gogoi
e4c0a72b3f
Bug 982852 - Added a test case for checking multiple add_task() tests without run_test(); r=gps
...
There's a test for add_task() in selftest.py called ADD_TASK_MULTIPLE, which tests if
multiple add_task() tests are working. The test added in this commit does the exact same
except without run_test(). Since the original tests included this, I thought it would make
a good case for checking if the removal of run_test() is working as expected. Please remove
if this is unnecessary.
--HG--
extra : rebase_source : f6617259056db7ac7a658a89063694f51408b8ce
2015-04-03 02:24:24 +05:30
Krishnashish Gogoi
969ba3e8a7
Bug 982852 - Add failing cases to selftest.py when run_test() is not present; r=gps
...
Since the simple test cases before this bug had cases for both passing and
failing, it would be a good idea to follow suit and add similar failing tests
for when run_test() is omitted.
Like the other simple tests defined in selftest.py, SIMPLE_FAILING_TEST,
ADD_TEST_FAILING, etc., it follows a similar pattern except these are done
without run_test() defined.
--HG--
extra : rebase_source : a1ef9a7b9e8274fe981864c5e021c80d2d66f7ec
2015-04-03 02:12:30 +05:30
Krishnashish Gogoi
bf13167dea
Bug 982852 - Add cases to check that tests without run_test() work; r=gps
...
Four new test cases have been added to testing/xpcshell/selftest.py.
These new tests check that tests where run_test() is not defined
work properly.
The test cases check the following cases:
1. when only add_test() is used.
2. when only add_task() is used.
3. when both add_task() and add_test() is used.
4. when a test file is empty, i.e. contains no add_test(), add_task() or
run_test().
Test bodies only consist of do_check_true(true) calls to make up a minimal
test without run_test() in the same vein as the other simple tests defined
previously.
Also, broke a comment up that was too long.
--HG--
extra : rebase_source : 48d055680ba8108816ecbe07008496c5281f46cc
2015-04-03 01:43:54 +05:30
Krishnashish Gogoi
a80b42da44
Bug 982852 - Make run_test() in xpcshell-tests optional; r=gps
...
As referenced in Bug 982852, this fix makes run_tests() optional.
Test cases can now consist of add_test() and add_task() calls
without the need to exclusively set up a run_test() just to call
run_next_test() inside it. If run_test() however is defined, it
will be called directly as usual, which should keep all older
tests working without breaking.
Since most run_test() calls right now are mostly boilerplate and
usually are of the form -- function run_test(){run_next_test();} --
this fix checks if run_test is defined by using the typeof operator
which should evaluate to "function" if it is defined. If defined,
it is called straight away, otherwise, run_next_test() is called,
which is what run_test() usually does when used as a set up to
call tests registered by add_test() and add_task().
--HG--
extra : rebase_source : 7cfbf30a67e3a8d088f8409edcdde8976f46b941
2015-04-02 22:32:18 +05:30