Commit Graph

175 Commits

Author SHA1 Message Date
Amod Narvekar
9301112428 Bug 1061813 - Added a check to test whether this.currentTest.scope.test is a function. r=jmaher 2015-06-11 10:15:00 +02:00
Gijs Kruitbosch
5b2fa1d806 Bug 1165890 - change warning for 'leaking' window properties, r=ted
--HG--
extra : rebase_source : 5b5cdcdf01c07114f16207c19ac21d5268dfb920
extra : histedit_source : 8363b2e3b03bbcf0edcadb16a529cb3766b5a860
2015-05-18 14:30:07 +01:00
Ehsan Akhgari
1a03395848 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Kartikaya Gupta
cd5b55f8d6 Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Alexandre Poirot
d16ebcff44 Bug 1145049 - Fix exception when using SimpleTest.expectUncaughtException. r=ted 2015-04-18 09:39:07 +02:00
Neil Deakin
f245f74c2a Bug 1131818, add versions of synthesizeMouse that work with child process tabs, r=mconley 2015-04-16 15:38:13 -04:00
Philip Chee
3a0ac45225 Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop 2015-04-07 16:09:49 +08:00
Tom Tromey
30cdc5115e Bug 1150646 - Ensure that memory stats show up in treeherder logs. r=chmanchester 2015-04-03 11:19:00 -04:00
Philip Chee
0e80e38542 Backed out changeset: 764b057e1c3f (Bug 1139958 - Start using AppConstants.jsm in Toolkit) 2015-03-28 20:54:30 +08:00
Philip Chee
be21402ef6 Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop
--HG--
extra : transplant_source : %C6%E2%5D%90JP%7E%0E1j%29%95%CF%C0%A8%F5%93g%7C%20
2015-03-28 19:17:24 +08:00
Bill McCloskey
f15599e2d9 Bug 1132072 - Tab switch refactoring (r=mconley) 2015-03-27 08:38:47 -07:00
Bill McCloskey
810adeb74f Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-19 06:43:46 -07:00
Phil Ringnalda
24910d5fbd 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
4cfef838dd Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-18 16:09:27 -07:00
Joel Maher
20bcaaf77b Bug 1143091 - restarting tests with --keep-open is hard. r=ted 2015-03-18 08:38:25 -04:00
Ryan VanderMeulen
3508f4aa52 Backed out changesets f63a2cf3fa11 and 7d9a91ee3d48 (bug 1126089) for mochitest-bc failures. 2015-03-13 13:42:57 -04:00
Bill McCloskey
5d4e83e61d Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-13 08:24:20 -07:00
Andrew McCreight
4ffb27571d 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
d3da5185f9 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.

--HG--
extra : rebase_source : 7d22be6f800aa39bbddb976baa2ea7fdfb96a58b
2015-02-22 23:11:22 -05:00
Andrew McCreight
cc7daba0dd 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
deb826f3fb Bug 1111022 - Tests for the SelfSupport backend. r=gfritzsche 2015-01-09 11:18:00 +01:00
Andrew McCreight
d20d59ce3f Backout 1ffecdc47c6d for OSX and Windows docShell leaks. CLOSED TREE 2015-02-15 21:26:19 -08:00
Andrew McCreight
e0a76a26b8 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
4d239d923a 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
4f019cb59b 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
6c86597c0a 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
c9776740d9 Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
Tim Taubert
fa8dce40d6 Bug 1077652 - Remove old BrowserNewTabPreloader.jsm and references r=jaws 2014-11-19 16:21:07 +01:00
Tim Taubert
bc4dbcd8a1 Bug 1077652 - Introduce new preloading mechanism r=dao 2014-11-19 16:23:49 +01:00
Alexander J. Vincent
179821a35d 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
926bf1ca5d 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
239fba2d47 Backed out changeset 3500854d791b for test log breakage 2014-11-07 13:32:09 +00:00
Michael Ratcliffe
f827243aac 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
2a111d41a1 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
d59c32b5f8 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
9970b37fa4 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
f70fad68df Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
David Rajchenbach-Teller
a12744beb0 Bug 1016387 - Whitelist mechanism for uncaught Promise rejections. r=ted 2014-10-04 14:11:00 +02:00
David Rajchenbach-Teller
0272d2f081 Bug 1016387 - "Uncaught async Promise errors should cause mochi tests to fail". r=ted 2014-05-30 07:48:00 +02:00
Bill McCloskey
f22a7a863c 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
3f1bbb16fd 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
d7015095cb Bug 1059381 - Implement SimpleTest.requestCompleteLog for mochitest browser. r=jmaher 2014-09-03 11:25:18 -04:00
Tim Taubert
7e6d458629 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
576d19c572 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
b47d5e54c3 Bug 1050251 - Use the correct message/name for chrome mochitest asserts. r=chmanchester 2014-08-15 14:42:00 -04:00
Gijs Kruitbosch
1547c6dfb4 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
4b03d2c025 Bug 886570 - Initial integration of structured logs in mochitest; r=ahal,Ms2ger 2014-07-17 09:02:00 +02:00
Carsten "Tomcat" Book
ce57787693 Backed out changeset cf85693280c7 (bug 886570) frequent mochitest-3 errors on windows 2014-07-11 14:15:29 +02:00
Ahmed Kachkach
50db9012f6 Bug 886570 - Initial integration of structured logs in mochitest. r=ahal,Ms2ger 2014-07-10 13:33:00 +02:00
David Rajchenbach-Teller
70287d27d7 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