Commit Graph

183 Commits

Author SHA1 Message Date
J. Ryan Stinnett
2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
Neil Deakin
3a0f1a2f0b Bug 1197266, Reset pushed pref environment between browser tests, r=martijn 2015-09-17 11:20:32 -04:00
Shu-yu Guo
37989840cd Bug 1202902 - Mass replace toplevel 'let' with 'var' in preparation for global lexical scope. (rs=jorendorff) 2015-09-15 11:19:45 -07:00
Bill McCloskey
084153482b Bug 1199800 - [webext] Allow extensions to be used from chrome tests (r=gabor) 2015-09-04 09:45:00 -07:00
Carsten "Tomcat" Book
ebb221ac2d Backed out 11 changesets (bug 1201377, bug 1199800, bug 1197437, bug 1199832, bug 1199698, bug 1199842) for breaking browser_ext_tabs_executeScript.js test on a CLOSED TREE
Backed out changeset 8d8d73d3c3e1 (bug 1201377)
Backed out changeset 4ed8951e3f54 (bug 1199842)
Backed out changeset 5830178bc008 (bug 1199832)
Backed out changeset 4445c570fe49 (bug 1199698)
Backed out changeset 35fc1e25d167 (bug 1199800)
Backed out changeset 54c4c3bd2454 (bug 1199800)
Backed out changeset bd3112ce6b9b (bug 1199800)
Backed out changeset 701e56e18ca7 (bug 1199800)
Backed out changeset 4407d50a7995 (bug 1199800)
Backed out changeset af2fbe345712 (bug 1199800)
Backed out changeset 0a41d20fcf77 (bug 1197437)
2015-09-04 09:59:34 +02:00
Bill McCloskey
f4cc638b45 Bug 1199800 - [webext] Allow extensions to be used from chrome tests (r=gabor) 2015-09-03 20:59:02 -07:00
Brian Grinstead
b47004718e Bug 1175318 - Import Console.jsm for mochitests;r=ted,r=past 2015-07-08 12:10:29 -07:00
Andrew Halberstadt
2651e9f398 Bug 1171971 - Move test_paths argument out of mach and into mochitest; remove --test-path, r=chmanchester 2015-06-05 13:28:29 -04:00
Amod Narvekar
453c2bc288 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
2421c78653 Bug 1165890 - change warning for 'leaking' window properties, r=ted 2015-05-18 14:30:07 +01:00
Ehsan Akhgari
437d95a148 Bug 1154275 - Remove ise() in favor of is(); r=Ms2ger 2015-05-13 14:31:58 -04:00
Kartikaya Gupta
ebe4a3e37e Bug 1039866 - Rip out a bunch of metro-only code. r=jimm,gavin,rstrong 2015-04-23 15:10:30 -04:00
Alexandre Poirot
418734c481 Bug 1145049 - Fix exception when using SimpleTest.expectUncaughtException. r=ted 2015-04-18 09:39:07 +02:00
Neil Deakin
4f0a0dcc85 Bug 1131818, add versions of synthesizeMouse that work with child process tabs, r=mconley 2015-04-16 15:38:13 -04:00
Philip Chee
cc48129674 Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop 2015-04-07 16:09:49 +08:00
Tom Tromey
7ebd885f4d Bug 1150646 - Ensure that memory stats show up in treeherder logs. r=chmanchester 2015-04-03 11:19:00 -04:00
Philip Chee
509ae1acb9 Backed out changeset: 764b057e1c3f (Bug 1139958 - Start using AppConstants.jsm in Toolkit) 2015-03-28 20:54:30 +08:00
Philip Chee
02ce7a1bcb Bug 1139958 - Start using AppConstants.jsm in Toolkit r=mossop 2015-03-28 19:17:24 +08:00
Bill McCloskey
8e755bfd3d Bug 1132072 - Tab switch refactoring (r=mconley) 2015-03-27 08:38:47 -07:00
Bill McCloskey
6d6e0f9ce9 Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-19 06:43:46 -07:00
Phil Ringnalda
b7bcece915 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
2d26630922 Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-18 16:09:27 -07:00
Joel Maher
7b49b5af4b Bug 1143091 - restarting tests with --keep-open is hard. r=ted 2015-03-18 08:38:25 -04:00
Ryan VanderMeulen
1b43939c7f Backed out changesets f63a2cf3fa11 and 7d9a91ee3d48 (bug 1126089) for mochitest-bc failures. 2015-03-13 13:42:57 -04:00
Bill McCloskey
26b5e4bd0d Bug 1126089 - Allow messages to be sent after frame script unload event (r=smaug) 2015-03-13 08:24:20 -07:00
Andrew McCreight
ecb6a8a849 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
1477ee675e 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
721a98e443 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
8dce0b9487 Bug 1111022 - Tests for the SelfSupport backend. r=gfritzsche 2015-01-09 11:18:00 +01:00
Andrew McCreight
9a7d1efe62 Backout 1ffecdc47c6d for OSX and Windows docShell leaks. CLOSED TREE 2015-02-15 21:26:19 -08:00
Andrew McCreight
769afc6dfd 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
2cfbc7bdd4 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";
});
2015-02-11 17:28:44 -05:00
Kaustabh Datta Choudhury
4b3f60067b 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
85509da73b 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
8d3b581091 Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
Tim Taubert
04753f3794 Bug 1077652 - Remove old BrowserNewTabPreloader.jsm and references r=jaws 2014-11-19 16:21:07 +01:00
Tim Taubert
facc69dc01 Bug 1077652 - Introduce new preloading mechanism r=dao 2014-11-19 16:23:49 +01:00
Alexander J. Vincent
e55ed4baf8 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
c0df7c569e 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
6080cad3f4 Backed out changeset 3500854d791b for test log breakage 2014-11-07 13:32:09 +00:00
Michael Ratcliffe
8fd5514ff9 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
3f9bcd5ef2 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
52a8993364 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
6a61c4e0e5 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
5741b0639b Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
David Rajchenbach-Teller
78f8f61db8 Bug 1016387 - Whitelist mechanism for uncaught Promise rejections. r=ted 2014-10-04 14:11:00 +02:00
David Rajchenbach-Teller
ed7fd08d9e Bug 1016387 - "Uncaught async Promise errors should cause mochi tests to fail". r=ted 2014-05-30 07:48:00 +02:00
Bill McCloskey
e8413b8a89 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
e73d94a209 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
58ae86b03f Bug 1059381 - Implement SimpleTest.requestCompleteLog for mochitest browser. r=jmaher 2014-09-03 11:25:18 -04:00