Commit Graph

2209 Commits

Author SHA1 Message Date
Andrew Halberstadt
7086f00c8a Bug 1127376 - PEP8-ify all mochitest .py files (auto-generated), r=ted
This change was generated using the `autopep8` module [1]. To replicate:

    $ pip install --upgrade autopep8
    $ cd gecko
    $ autopep8 -i -a -a -r testing/mochitest --exclude 'testing/mochitest/pywebsocket/*'

[1] https://github.com/hhatto/autopep8

--HG--
extra : rebase_source : fb127187cd488b977981338373d66cc8c735214f
2015-02-13 14:42:02 -05: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
Andrew Halberstadt
f02004a920 Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
        yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)

--HG--
extra : rebase_source : adead90910811e71e8ea2bb862f2b8e92f2c1bee
2015-02-10 09:38:29 -05:00
Alexandre Lissy
53aebf0b4f Bug 1129173 - Properly detect B2G for workers interface tests. r=bent
Make use of SpecialPowers.isB2G to do the proper detection, and fix
mochitest execution for Mulet to include some B2G-specific prefs.

--HG--
extra : rebase_source : 2683f17794204cdb8b17248c9469f2498085ee81
2015-02-10 06:51:00 +01:00
Ryan VanderMeulen
74f80ff51c Merge inbound to m-c. a=merge
CLOSED TREE
2015-02-10 16:03:15 -05:00
Joel Maher
2f9ff58439 Bug 1110982 - [backout] tracking bug to get --run-by-dir enabled for 'oth' job on trunk. r=RyanVM 2015-02-10 09:07:32 -05:00
Alexandre Lissy
791808dd5f 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
Joel Maher
97f62104fb Bug 1110982 - Disabled tests for oth chunk and leaks (run-by-dir). r=RyanVM 2014-12-27 00:44:52 +05:30
Masayuki Nakano
cebca7ab8a Bug 1131026 Rename nsITextInputProcessor.init() and .initForTests() to .beginInputTransaction() and .beginInputTransactionForTests() r=smaug, sr=smaug 2015-02-10 17:09:29 +09:00
Wes Kocher
0315d466dd Backed out changeset ea625e85c72a (bug 1123763) for checktest orange on a CLOSED TREE 2015-02-09 14:00:13 -08:00
Andrew Halberstadt
d22477cea4 Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted
A filter is a callable that accepts an iterable of tests and a dictionary of values (e.g mozinfo.info) and returns an iterable of tests. Note filtering can mean modifying tests in addition to removing them. For example, this implements a "timeout-if" tag in the manifest:

    from manifestparser import expression
    import mozinfo

    def timeout_if(tests, values):
        for test in tests:
            if 'timeout-if' in test:
                timeout, condition = test['timeout-if'].split(',', 1)
                if expression.parse(condition, **values):
                    test['timeout'] = timeout
            yield test

    tests = mp.active_tests(filters=[timeout_if], **mozinfo.info)

--HG--
extra : rebase_source : 7afc5d677717279e477d420899ba839073de2d8f
2015-02-09 16:13:00 -05:00
Andrew McCreight
8a52955142 Bug 1128486 - Increase tab process leak threshold a little. r=erahm
The GeckoMediaPluginService leak slowly grows, so hide it for a little longer.
2015-02-09 11:42:20 -08:00
Dave Townsend
425a83de72 Bug 1083281: Use flags to determine which chrome and about URIs are loaded in the content process. r=mconley, r=bsmedberg, r=jduell, r=mratcliffe
--HG--
extra : rebase_source : beda0088e7715eeb41525b0123f308068745bd80
2015-02-05 08:09:15 -08:00
Patrick McManus
ff5cd770b3 bug 1129146 - Fix Mochitest NSPR logging upload r=ted 2015-02-04 09:58:37 -05:00
Ms2ger
77f294217d Bug 1127943 - Make testharness.js the default template for gen_template.pl; r=bz (NPOTB, DONTBUILD) 2015-01-30 20:38:45 +01:00
Andrew McCreight
26d7b378be Bug 1127013 - Use unix file endings in mochitest-e10s-utils. r=jmaher 2015-01-30 10:59:02 -08:00
Ehsan Akhgari
f66d3d426e Bug 1125383 - Unbreak running single mochitests using the runtests.py script directly; r=ted
Without this, the following exception is thrown:

TEST-UNEXPECTED-FAIL | unknown test url | uncaught exception - TypeError: SimpleTest.harnessParameters is undefined at http://mochi.test:8888/tests/SimpleTest/SimpleTest.js:624
2015-01-28 12:08:21 -05:00
Masayuki Nakano
7a0cea6729 Bug 936313 part.1 Remove DOM_KEY_LOCATION_MOBILE and DOM_KEY_LOCATION_JOYSTICK r=smaug+mwu+cpeterson, sr=smaug 2015-01-28 22:36:53 +09:00
Tooru Fujisawa
2e2edcd0c4 Bug 917322 part.23 Store nsITextInputProcessor instance into WeakMap instead of window r=smaug 2015-01-27 19:12:23 +09:00
Masayuki Nakano
30dc84c107 Bug 917322 part.20 Add tests of async commit at requesting to commit a composition r=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
7a85c69f66 Bug 917322 part.16 Rename COMPOSITION_ATTR_* in EventUtils.js with new constants of nsITextInputProcessor r=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
66d42c3189 Bug 917322 part.15 Create TextEventDispatcherListener abstract class for listening notifications to IME r=smaug, sr=smaug 2015-01-28 15:27:32 +09:00
Masayuki Nakano
417851bb32 Bug 917322 part.12 EventUtils.js should use nsITextInputProcessor for synthesizing composition r=smaug 2015-01-28 15:27:32 +09:00
J. Ryan Stinnett
45cb0d2821 Bug 1123945 - Fix --no-autorun harness option. r=jmaher 2015-01-21 15:22:16 -06:00
Andrew McCreight
4504972ef2 Bug 1121263 - Bump the leak threshold again for test_ipc. r=RyanVM
CLOSED TREE
2015-01-16 09:30:43 -08:00
Wes Kocher
69de67fea0 Merge fx-team to m-c a=merge 2015-01-15 17:06:55 -08:00
Joel Maher
4aaf60ae9d Bug 1041500 - Enable run-by-dir mode for mochitest-devtools. r=RyanVM
CLOSED TREE
2015-01-15 10:00:00 -05:00
Andrew McCreight
3c93da871a Bug 1121263 - Increase tab process leak threshold on OSX to paper over intermittent leak. r=jmaher 2015-01-14 10:06:46 -08:00
Andrew Halberstadt
eb68fdf7f2 Bug 1120983 - [manifestparser] Split manifestparser.py into several smaller files, r=wlach
Simple refactor that moves logic out of manifestparser.py and into cli.py, expression.py and ini.py.

--HG--
extra : rebase_source : dd454973cdb3bcb7ec29dd2e1c0c594e3b3fb817
2015-01-15 09:37:51 -05:00
Andrew McCreight
2b98534c65 Bug 1087613 - Reduce content process leak threshold to 20KB. r=erahm 2015-01-13 12:32:35 -08:00
Andrew McCreight
0f7602f738 Bug 1083897, part 2 - Don't require leak logs for tab processes on Windows. r=jmaher 2015-01-13 12:32:35 -08:00
Andrew McCreight
2439780415 Bug 1083897, part 1 - Require leak logs for tab processes on desktop. r=khuey 2015-01-13 12:32:35 -08:00
Ryan VanderMeulen
581a6510e4 Backed out changeset 1c0b0e3074c3 (bug 1119952) for frequent Linux debug mochitest failures.
CLOSED TREE
2015-01-13 14:43:34 -05:00
Martin Thomson
cfd6e98b4d Bug 1119952 - Reduce log spam from calling finished() multiple times. r=jmaher
--HG--
extra : amend_source : dda8f68cb01a0cd3e9dfa8debfd846c4248ca777
extra : transplant_source : %DE%29%E5k%07%F1%609%D5%D4%40%0C%FF.%E2%8A%24%CD%E9%F7
2015-01-09 13:32:01 -08:00
Kershaw Chang
d69ec86385 Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01: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
Joel Maher
f04a74700a Bug 1118329 - reduce osx 10.6 talos jobs via talos.json. r=armenzg 2015-01-08 10:13:05 -05:00
Neil Deakin
53db7049c1 Bug 1116457, attach the focus event listener to the right child window, r=jmaher 2015-01-07 20:52:20 -05:00
Mark Goodwin
3e0221da03 Bug 1096197 - Ensure SSL Error reports work when there is no failed certificate chain. r=keeler
--HG--
rename : browser/base/content/test/general/browser_bug846489.js => browser/base/content/test/general/browser_ssl_error_reports.js
rename : browser/base/content/test/general/browser_bug846489_content.js => browser/base/content/test/general/browser_ssl_error_reports_content.js
2015-01-07 02:28:00 -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
Kaustabh Datta Choudhury
1b7e164233 Bug 1115338 - ./mach mochitest-browser path/to/individual/test should always run test (despite skip-if/run-if conditions in manifest). r=jmaher 2015-01-06 01:16:13 +05:30
Chris Peterson
c8da89cfae Bug 1117566 - Fix some JavaScript warnings in SimpleTest runner. r=jmaher 2014-12-21 22:03:37 -08:00
Neil Deakin
05100be9f5 Bug 1083269, handle windows in a different process within waitForFocus, r=jmaher 2014-12-29 07:39:26 -05:00
Michal Novotny
db0d15813e Bug 792831 - WebSocket permessage compression extension, r=jduell 2014-12-29 12:43:40 +01:00
Phil Ringnalda
67fb5268a7 Back out 9e126e97e347 (bug 1098700), a=backout 2014-12-28 22:57:38 -08:00
Chris Manchester
d80693fa32 Bug 1113768 - Stop buffering a test's output after a failure is seen.;r=froydnj 2014-12-26 13:28:50 -05:00
Kaustabh Datta Choudhury
7c8eae4af4 Bug 1098700 - Mochitests that are annotated fails-if don't output a useful error if they unexpectedly pass. r=jmaher 2014-12-23 23:58:00 -05:00
Ehsan Akhgari
c86c4cf058 Bug 1113446 - Make sure that SimpleTest.waitForClipboard cannot trigger bad setTimeout messages; r=ted
--HG--
extra : rebase_source : 2c36df39f5f9aec17d6801b6b5f9beafbef1b5cc
2014-12-23 17:32:54 -05:00
Geoff Brown
c9776740d9 Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
Geoff Brown
75611a763f Bug 797164 - Push chrome files to b2g when needed; r=ahal 2014-12-23 14:17:41 -07:00