gecko-dev/testing/mochitest
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
..
BrowserTestUtils Bug 1107609 - Implement ContentTask.spawn; r=Gijs r=mconley 2015-02-11 17:28:44 -05:00
chrome Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
dynamic
manifests Bug 946065 - Part 10: Move content/media/ to dom/. r=peterv 2014-10-25 20:24:36 +03:00
MochiKit
pywebsocket Bug 792831 - WebSocket permessage compression extension, r=jduell 2014-12-29 12:43:40 +01:00
roboextender Bug 1055144 - Implement sendRequestForResult. r=wesj 2014-09-02 15:53:29 -07:00
ssltunnel Bug 1096197 - Ensure SSL Error reports work when there is no failed certificate chain. r=keeler 2015-01-07 02:28:00 -05:00
static Bug 1026785 - Fix typo. r=me DONTBUILD 2014-08-09 17:36:09 -04:00
tests Bug 1131026 Rename nsITextInputProcessor.init() and .initForTests() to .beginInputTransaction() and .beginInputTransactionForTests() r=smaug, sr=smaug 2015-02-10 17:09:29 +09:00
android23.json Bug 1083347 - Removing entries from android23.json and annotating manifests. r=gbrown 2014-11-03 12:01:51 -08:00
android.json Bug 1083347 - Patch to remove entries in androidx86.json and annotate manifests. r=gbrown 2014-10-31 10:31:00 +01:00
androidx86.json Bug 1083347 - Patch to remove entries in androidx86.json and annotate manifests. r=gbrown 2014-10-31 10:31:00 +01:00
b2g_start_script.js Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
bisection.py
browser-harness.xul Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
browser-test-overlay.xul
browser-test.js Bug 1107609 - Implement ContentTask.spawn; r=Gijs r=mconley 2015-02-11 17:28:44 -05:00
cc-analyzer.js
chrome-harness.js Bug 1083272 - remove chrome-harness.js ability to load file list from jar file. r=ahal 2014-10-17 10:01:21 -04:00
chunkifyTests.js Bug 1101976 - fix start-at/end-at support because of odd test formats with mochitest-browser, r=ted 2014-11-20 00:02:09 +00:00
gen_template.pl Bug 1127943 - Make testharness.js the default template for gen_template.pl; r=bz (NPOTB, DONTBUILD) 2015-01-30 20:38:45 +01:00
gl.json
harness.xul
install.rdf
jar.mn Bug 1107609 - Implement ContentTask.spawn; r=Gijs r=mconley 2015-02-11 17:28:44 -05:00
jetpack-addon-harness.js Bug 1097334: Fix console tests in mochitest-jetpack by setting the default log level to info. r=erikvold 2014-11-17 09:58:08 -08:00
jetpack-addon-overlay.xul 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
jetpack-package-harness.js Bug 1083927 - IndexedDB: Subdomain Quota Management; r=bent,ehsan 2014-11-28 09:44:12 +01:00
jetpack-package-overlay.xul 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
mach_commands.py Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
Makefile.in Bug 1076446 (attempt 2) - Make the DMD test work on Windows. r=glandium. 2014-10-09 19:28:33 -07:00
manifest.webapp Bug 989198, Patch 4: Dispatch both chrome event and key event for hardward keys, and add new permission, r=fabrice. 2014-11-03 15:05:43 +08:00
manifestLibrary.js Bug 987849 - Add fail-if support to Mochitest manifests. r=ahal. 2014-10-17 10:01:15 -04:00
mochitest_options.py Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-10 09:38:29 -05:00
mochitest-e10s-utils.js Bug 1127013 - Use unix file endings in mochitest-e10s-utils. r=jmaher 2015-01-30 10:59:02 -08:00
moz.build Bug 1107609 - Implement ContentTask.spawn; r=Gijs r=mconley 2015-02-11 17:28:44 -05:00
nested_setup.js Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00
pywebsocket_wrapper.py
README.txt
redirect.html Bug 1026290: Delay mochitest-chrome redirect until after MozAfterPaint; r=jmaher 2014-11-19 15:43:28 -07:00
runtests.py Bug 1123763 - [manifestparser] Implement filter system for manifest.active_tests(), r=ted 2015-02-10 09:38:29 -05:00
runtestsb2g.py Bug 797164 - Support chrome tests on b2g emulator; r=ahal 2014-12-23 14:17:42 -07:00
runtestsremote.py Bug 1092835 - Workaround for old ssltunnel from hostutils. r=jmaher 2014-12-13 20:09:00 +09:00
server.js Bug 1038620 - Add --nested_oop option to mach test commands, r=ted.mielczarek 2015-01-13 02:07:00 +01:00

See https://developer.mozilla.org/en/docs/Mochitest for detailed information on running and writing mochitests.