Commit Graph

166 Commits

Author SHA1 Message Date
Philip Chee
4cfa2f8c72 Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop 2015-03-28 19:17:24 +08:00
Bill McCloskey
89f1e20315 Bug 1132072 - Tab switch refactoring (r=mconley) 2015-03-27 08:38:47 -07:00
Bill McCloskey
e7aee957c0 Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-19 06:43:46 -07:00
Phil Ringnalda
bc03d24e02 Backed out 3 changesets (bug 1126089) for ASan e10s bc1 failures and green-crashes
CLOSED TREE

Backed out changeset 9af9111e9c27 (bug 1126089)
Backed out changeset 288efd5e2ca0 (bug 1126089)
Backed out changeset 3bcebfd13538 (bug 1126089)
2015-03-18 21:51:34 -07:00
Bill McCloskey
d15acaca2d Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-18 16:09:27 -07:00
Joel Maher
50711c0001 Bug 1143091 - restarting tests with --keep-open is hard. r=ted 2015-03-18 08:38:25 -04:00
Ryan VanderMeulen
a12c6d2dfc Backed out changesets f63a2cf3fa11 and 7d9a91ee3d48 (bug 1126089) for mochitest-bc failures. 2015-03-13 13:42:57 -04:00
Bill McCloskey
12af381a9e Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-13 08:24:20 -07:00
Andrew McCreight
5bb1645a39 Bug 1139021 - Don't run extra collections in the parent process for the mochitest window leak detector. r=jmaher 2015-03-04 14:00:24 -08:00
Steven MacLeod
36304cb7ff Bug 1093566 - Add modules for sharing mochitest-browser test code; r=Gijs r=paolo
Currently code used by many mochitest-browser tests is scattered
throughout the tree in various head.js files. Many similar or identical
helper methods are repeated throughout these files.

This commit introduces a BrowserTestUtils.jsm module and includes it in
the mochitest scope; the idea being these frequently re-implemented
methods can live in a central place.

A TestUtils.jsm module has also been introduced to contain code useful to
all types of tests.
2015-02-22 23:11:22 -05:00
Andrew McCreight
70d5a0bb34 Bug 1073352, part 1 - Make the DOMWINDOW and DOCSHELL leak detector work with e10s. r=jmaher
This reworks how the Mochitest DOMWINDOW and DOCSHELL leak detector works. Rather than
collecting immediately in the top-level script, it sends a message to all processes
telling them to carry out collections. Each process prints out a message when it has
finished the collections. This message is used by the test harness to decide when windows
and docshells for that process should be have been destroyed.

In non-e10s mode, the shutdown leak detector is only run in the parent process, to work
around various issues with leak detection in the thumbnail process tests.
2015-02-24 13:00:54 -08:00
Alessio Placitelli
45327633a8 Bug 1111022 - Tests for the SelfSupport backend. r=gfritzsche 2015-01-09 11:18:00 +01:00
Andrew McCreight
32ed7a2bf6 Backout 1ffecdc47c6d for OSX and Windows docShell leaks. CLOSED TREE 2015-02-15 21:26:19 -08:00
Andrew McCreight
eb177fe773 Bug 1073352, part 1 - Make the DOMWINDOW and DOCSHELL leak detector work with e10s. r=jmaher
This reworks how the Mochitest DOMWINDOW and DOCSHELL leak detector works. Rather than
collecting immediately in the top-level script, it sends a message to all processes
telling them to carry out collections. Each process prints out a message when it has
finished the collections. This message is used by the test harness to decide when windows
and docshells for that process should be have been destroyed.
2015-02-14 11:43:45 -08:00
Steven MacLeod
848a47b780 Bug 1107609 - Implement ContentTask.spawn; r=Gijs r=mconley
This introduces a new medule ContentTask, which includes a spawn method.
This new method can be used to spawn a task in the content process of a
browser. When called, a promise will be returned which resolves to the
value returned by the task.

This allows you to quickly write test code which can touch the content
and return information without having to write custom framescripts all
the time (The content code can be written inline as a simple generator
definition). ContentTask is automatically included in the scope of
mochitests.

An example use follows:

yield ContentTask.spawn(browser, {}, function* gen_replaceState() {
  content.window.history.replaceState({}, "", 'test-entry/');
  return "Value that the promise will resolve with";
});

--HG--
extra : rebase_source : 9b6ae71407da582cdaa8087b5e367c72fa08a337
2015-02-11 17:28:44 -05:00
Kaustabh Datta Choudhury
5c1cc5091e Bug 1098700 - Mochitests that are annotated fails-if don't output a useful error if they unexpectedly pass. r=jmaher 2015-01-12 09:31:40 -05:00
Ehsan Akhgari
5b976ab5a8 Bug 1116755 - Do not use window.setTimeout() in order to detect tests timing out in browser-chrome tests; r=ted 2015-01-06 16:30:04 -05:00
Geoff Brown
9a8d02d0e3 Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
Tim Taubert
c60b8e95b0 Bug 1077652 - Remove old BrowserNewTabPreloader.jsm and references r=jaws 2014-11-19 16:21:07 +01:00
Tim Taubert
375ca18672 Bug 1077652 - Introduce new preloading mechanism r=dao 2014-11-19 16:23:49 +01:00
Alexander J. Vincent
1255b6cbe8 Bug 1092477 - Let the subscript Loader report any URL it fails on, when it can. r=bholley 2014-11-08 17:08:09 -08:00
Michael Ratcliffe
e2616dda10 Bug 1090913 - Make mochitests fail when it has 0 passes and 0 fails r=jmaher 2014-11-05 16:00:52 +00:00
Michael Ratcliffe
a6e62701b4 Backed out changeset 3500854d791b for test log breakage 2014-11-07 13:32:09 +00:00
Michael Ratcliffe
484d278c48 Bug 1090913 - Make mochitests fail when it has 0 passes and 0 fails r=jmaher 2014-11-05 16:00:52 +00:00
David Rajchenbach-Teller
69799ae4c5 Bug 1083989 - Browser Chrome mochitests should not export Promise.jsm to the scope. r=ted 2014-10-17 10:17:37 -04:00
Ryan VanderMeulen
b23df832bf Backed out changesets 5e406b1536f9, 27e644701c98, and 762aff2c9dbf (bug 1083989) for mochitest-e10s failures.
CLOSED TREE
2014-10-30 12:46:08 -04:00
David Rajchenbach-Teller
e71c3fd622 Bug 1083989 - Browser Chrome mochitests should not export Promise.jsm to the scope. r=ted 2014-10-17 10:17:37 -04:00
Joel Maher
2cffca4e61 Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
David Rajchenbach-Teller
4084dc4d95 Bug 1016387 - Whitelist mechanism for uncaught Promise rejections. r=ted 2014-10-04 14:11:00 +02:00
David Rajchenbach-Teller
3f48a069dc Bug 1016387 - "Uncaught async Promise errors should cause mochi tests to fail". r=ted 2014-05-30 07:48:00 +02:00
Bill McCloskey
9a60c4ff8c Bug 1071920 - Make sure we don't time out incorrectly with chaos mode (r=roc) 2014-09-29 13:05:23 -07:00
Tim Taubert
242fd0fc53 Bug 1057386 - Provide an API to let the shutdown leak detector wait until resources are properly destroyed r=adw 2014-08-31 12:13:08 +02:00
Chris Manchester
0bc3d69f96 Bug 1059381 - Implement SimpleTest.requestCompleteLog for mochitest browser. r=jmaher 2014-09-03 11:25:18 -04:00
Tim Taubert
ea3b43b052 Bug 963075 - Fix web workers from "leaking" by simulating memory pressure before checking for leaks r=ted 2014-08-26 13:23:42 +02:00
Tim Taubert
1b07033d4d Bug 1041537 - Prevent ContentSearch from leaking the browser if it's still processing a message while the test suite shuts down r=adw 2014-08-21 11:18:54 +02:00
Ahmed Kachkach
566b7313a3 Bug 1050251 - Use the correct message/name for chrome mochitest asserts. r=chmanchester 2014-08-15 14:42:00 -04:00
Gijs Kruitbosch
29b05ace2b Bug 1014062 - expose harness parameters via SimpleTest, always use the harness, pass keep-open for single test runs with mach, r=ted,f=bz
--HG--
extra : rebase_source : 494615dbe437053ea65079a2c5016782a7bee0a2
2014-05-22 20:09:21 +01:00
Ahmed Kachkach
68c23f6dff Bug 886570 - Initial integration of structured logs in mochitest; r=ahal,Ms2ger 2014-07-17 09:02:00 +02:00
Carsten "Tomcat" Book
f0569c8ad2 Backed out changeset cf85693280c7 (bug 886570) frequent mochitest-3 errors on windows 2014-07-11 14:15:29 +02:00
Ahmed Kachkach
c4872d76ea Bug 886570 - Initial integration of structured logs in mochitest. r=ahal,Ms2ger 2014-07-10 13:33:00 +02:00
David Rajchenbach-Teller
a82c78cd53 Bug 1023787 - Make Task.jsm stack rewriting play nicely with xpcshell and mochi tests. r=paolo, r=mikedeboer 2014-06-20 14:23:00 -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
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
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
Myk Melez
01123e80fe Bug 1001681 - define Task to fix webapprt-test-chrome tests; r=jmaher 2014-04-26 14:05:46 -07:00
Marco Castelluccio
799c1a2a9c Bug 1000512 - If a test cleanup function returns a promise, wait for it to be resolved before running other tests. r=jmaher 2014-04-24 16:34:00 +02:00
David Rajchenbach-Teller
7886ee3b33 Bug 991040 - Uncaught async exceptions in mochitests now cause warnings. r=ted 2014-04-17 16:23:23 -04:00
Tim Taubert
8eddc2ac1c Bug 995266 - Prevent mochitest-browser harness from leaking due to SimpleTest overrides. r=ted
CLOSED TREE
2014-04-11 17:57:59 +02:00
Paolo Amadini
c873a36b5d Bug 985954 - Remove deprecated promise.js usage in the testing framework. r=ted 2014-04-01 13:45:48 +02:00
Phil Ringnalda
9d692a7cba Bug 983948 - Temporarily increase the per-test browser-chrome default timeout to 45 seconds 2014-03-23 16:55:34 -07:00