Commit Graph

42 Commits

Author SHA1 Message Date
Bill McCloskey
7bc1db6db5 Bug 1199800 - [webext] Refactoring to support using extensions from chrome tests (r=gabor) 2015-09-04 09:45:00 -07:00
Carsten "Tomcat" Book
1acb7d4203 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
8002ced738 Bug 1199800 - [webext] Refactoring to support using extensions from chrome tests (r=gabor) 2015-09-03 20:59:01 -07:00
Arthur Edelstein
e538c99fb3 Bug 1078657 - Add SpawnTask.js for async tasks in mochitests. r=jmaher 2015-07-17 12:37:24 -04:00
Ryan VanderMeulen
a0f2a2a9c7 Backed out changeset e5a750ee7e0b (bug 1078657) for test_async_setTimeout_stack.html and test_async_setTimeout_stack_across_globals.html failures.
CLOSED TREE
2015-07-17 12:06:14 -04:00
Arthur Edelstein
39673d63e1 Bug 1078657 - Add SpawnTask.js for async tasks in mochitests. r=jmaher 2015-07-17 01:44:00 -04:00
Neil Deakin
78e858d09c Bug 1131818, add versions of synthesizeMouse that work with child process tabs, r=mconley 2015-04-16 15:38:13 -04: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
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
Alexandre Lissy
2a69c8a3f7 Bug 1130287 - Expose isB2G in SpecialPowers. r=sicking
Some mochitests needs to behave differently when ran on B2G Desktop.
Currently, this is implemented using user agent string detection,
mostly relying on "Mobile" being present and "Android" being absent.
This is only true on B2G Desktop when ran on Try because the mozconfig
defined FXOS_SIMULATOR and that, per bug 1115935, this substring is only
added in this case, but not if just MOZ_B2G is defined. A better
approach is to expose 'isB2G' in SpecialPowers for this kind of
detection.
2015-02-08 10:09:00 +01:00
Kershaw Chang
8206fb9fe7 Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Dave Townsend
fa734afbbd Bug 1035512: Add a new common JS testing harness based on the mochitest test runner. r=gps, ted, erikvold, jmaher 2014-09-22 11:08:06 -07:00
Bill McCloskey
3a26987c7b Bug 1066433 - Remove simple mochitest e10s shim (r=jimm) 2014-09-15 16:42:26 -07:00
Martijn Wargers
cd9022a952 Bug 945781 - Remove ChromePowers.js. r=jmaher 2014-07-14 23:40:49 +02:00
Mark Hammond
f31ecbf8ce Bug 935799 - Add mochitest-e10s-utils.js to help tests when run in an e10s environment. r=felipe,ted 2014-03-03 09:33:30 +11: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
18684641d4 Bug 883634: merge harness-overlay.xul into overlay.xul, r=jmaher
--HG--
extra : transplant_source : SO%03%F2n%FD%91%1C%1E%05%0C%BE%284%EE%1E%93%91%E5%7B
2013-06-17 14:00:10 -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
L. David Baron
77f8f568f9 Bug 404077: Add mochitest support (currently semi-disabled) for making tests fail when an unexpected number of assertions fire. r=ted
This adds support for assertion checking in all mochitest suites except
for mochitest-browser-chrome.  The checking works much like it does in
reftest, except for the mechanism for annotating expected assertions,
SimpleTest.expectAssertions() (see its in-code documentation).

The support is initially disabled in that:
 (1) It doesn't cause the tests to report failure (and thus turn the
     tree orange).
 (2) It prints TEST-DETCEPXENU-FAIL/PASS instead of
     TEST-UNEXPECTED-FAIL/PASS (so that it doesn't show up in log
     highlighting).

The assertion checking only works within the test runner (which runs
multiple tests); it does not function when running only a single test.
2013-02-24 23:42:38 -08:00
Georg Fritzsche
5beaeb5928 Bug 805330 - Ensure plugin widget visibility via paint flushes. r=josh,roc,robcee
--HG--
rename : layout/base/tests/chrome/paint_listener.js => testing/mochitest/tests/SimpleTest/paint_listener.js
2012-12-05 14:39:26 +01:00
Joel Maher
c3c481579d Bug 762908 - Rip enablePrivilege out of spidermonkey tests. r=ted
--HG--
rename : testing/mochitest/specialpowers/Makefile.in => testing/specialpowers/Makefile.in
rename : testing/mochitest/specialpowers/chrome.manifest => testing/specialpowers/chrome.manifest
rename : testing/mochitest/specialpowers/components/SpecialPowersObserver.js => testing/specialpowers/components/SpecialPowersObserver.js
rename : testing/mochitest/MockFilePicker.jsm => testing/specialpowers/content/MockFilePicker.jsm
rename : testing/mochitest/tests/SimpleTest/MozillaLogger.js => testing/specialpowers/content/MozillaLogger.js
rename : testing/mochitest/tests/SimpleTest/SpecialPowersObserverAPI.js => testing/specialpowers/content/SpecialPowersObserverAPI.js
rename : testing/mochitest/specialpowers/content/specialpowers.js => testing/specialpowers/content/specialpowers.js
rename : testing/mochitest/tests/SimpleTest/specialpowersAPI.js => testing/specialpowers/content/specialpowersAPI.js
rename : testing/mochitest/specialpowers/install.rdf => testing/specialpowers/install.rdf
rename : testing/mochitest/specialpowers/jar.mn => testing/specialpowers/jar.mn
2012-09-20 09:06:50 -04:00
Tim Taubert
486d7be9bf Bug 728294 - Part 3 - Analyze cycle collection logs on testsuite shutdown to detected leaked windows; r=ted,smaug 2012-08-03 12:36:59 +02:00
Masayuki Nakano
a9a8364195 Bug 768736 Define constants for system native virtual keys for nsIDOMWindowUtils::SendNativeKeyEvent() r=roc 2012-06-27 11:26:38 +09:00
Bobby Holley
2486dbf4ed Bug 761982 - remove mozprefs.js. r=jmaher 2012-06-18 15:43:00 +02:00
Geoff Lankow
0da1c7db6e Bug 668710 - Move mockObjects.js in with the rest of SimpleTest; r=dao
--HG--
rename : toolkit/content/tests/browser/common/mockObjects.js => testing/mochitest/tests/SimpleTest/MockObjects.js
2011-08-05 23:55:49 +12:00
Geoff Lankow
05b39c14b0 Bug 668154 - Use the same mock file picker for all mochitests and xpcshell tests; r=jmaher 2011-10-22 12:39:30 +13:00
Joel Maher
c300a042aa Bug 675245 - cleanup pluginutils and SimpleTest.executeSoon() to utilize specialpowers. r=ted 2011-10-19 05:35:05 -04:00
Joel Maher
91544c4de5 Bug 693959 - convert quit.js to specialpowers. r=ted 2011-10-14 07:52:02 -04:00
Joel Maher
be5ce7dc85 Bug 676274 - refactor specialpowers so we can use the api in mochitest-chrome without specialpowers. r=ted, a=test-only. 2011-10-06 10:51:03 -04:00
Malini Das
e306b1b5aa Bug 367393 - Add a packed MochiKit that contains only SimpleTest dependencies- chrome. r=jmaher, a=test-only 2011-08-12 12:21:36 -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
Joel Maher
344f4a7302 Bug 666654 - split eventutils.js functions that are chrome only into chromeutils.js. r=ted, a=test-only 2011-07-23 09:02:40 -04: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
Daniel Holbert
5493695d98 Backout f2390732b6a4 (Bug 668154) for apparently turning debug mochitest-oth & mochitest-4 perma-orange 2011-07-11 17:49:03 -07:00
Geoff Lankow
2ebe71ef6e Bug 668154 - Use the same mock file picker for all mochitests and xpcshell tests r=jmaher 2011-07-11 12:24:13 -07:00
Joel Maher
49f029c6fb Bug 654461 - cleanup chrome and a11y harnesses to simplify code. r=ted, a=test-only 2011-05-17 13:10:37 -04:00
Joel Maher
431d92c153 Bug 599847 Cleanup unused test files in mochitest/static r=ctalbert a=NPOTB 2010-10-21 13:15:57 -07:00
Mounir Lamouri
cc33a99998 Merging to tip. a=blocking-b7 2010-09-30 17:10:19 -07:00