Commit Graph

1767 Commits

Author SHA1 Message Date
William Lachance
a29417e3f7 Bug 996862 - Remove use of mozdevice's networktools. r=ahal 2014-04-21 11:03:51 -04:00
Cameron McCormack
2e70ac08dd Bug 997598 - Don't strip leading white space from mochitest output lines when stack fixer is in use. r=wlach 2014-04-18 11:34:47 +10:00
Marco Castelluccio
1bd0344246 Bug 993326 - Automatically restore apps launchable value. r=fabrice 2014-04-17 16:43:04 -04:00
David Rajchenbach-Teller
7886ee3b33 Bug 991040 - Uncaught async exceptions in mochitests now cause warnings. r=ted 2014-04-17 16:23:23 -04:00
Vaibhav Agrawal
a54b880f82 Bug 912243 - Mochitest shouldnt chdir in __init__. r=jmaher 2014-04-16 10:29:39 -04:00
Manish Goregaokar
2e994e98d3 Bug 991348 - Give the ability to take screnshots on all test failures. r=jmaher 2014-04-12 04:23:00 +02:00
Randell Jesup
dec2b9db87 Bug 992436 - Force wakelock in B2G mochitests to reduce timeouts. r=jgriffin
CLOSED TREE
2014-04-07 14:39:16 -04:00
Ms2ger
dc2f3e243f Backed out changeset c63d8f19a893 for failures in Android mochitests. 2014-04-12 12:00:37 +02:00
Manish Goregaokar
7c01a6661a Bug 991348 - Support taking screenshots on all test failures in mochitests; r=jmaher 2014-04-12 11:08:34 +02:00
Tim Taubert
8eddc2ac1c Bug 995266 - Prevent mochitest-browser harness from leaking due to SimpleTest overrides. r=ted
CLOSED TREE
2014-04-11 17:57:59 +02:00
Ryan VanderMeulen
3a4e00b797 Backed out changeset df3c1971ecdc (bug 984930) 2014-04-11 12:54:56 -04:00
Joel Maher
6ef8e7088a Bug 984930 - Create mochitest-dt [temporarily turn off --subsuite]. r=mratcliffe 2014-04-10 15:00:56 -04:00
Michael Ratcliffe
e7dad953b0 Bug 983948 - Add mach mochitest-devtools r=jmaher 2014-03-25 16:52:53 +00:00
Vicamo Yang
bca7e5f97b Bug 975442: recognize as emulator if device name begins with 'emulator'. r=jgriffin 2014-04-09 10:14:07 +08:00
Tim Taubert
09db36a7d7 Bug 842511 - Specify a character set for directory listings r=gavin 2014-04-06 06:01:49 +02:00
Phil Ringnalda
125cfa9c03 Merge m-i to a CLOSED TREE m-c 2014-04-06 09:51:58 -07:00
Geoff Brown
23ec106d71 Bug 986738 - End robocop tests with nsIAppStartup.quit(); r=snorp 2014-04-04 12:11:21 -06:00
Neil Deakin
27ad778ee7 Bug 475981, remove titles from a bunch of tests, fixing box wrapped in a block warnings,r=neil 2014-04-04 13:11:12 -04:00
Jim Chen
0d00aee3a9 Bug 989046 - b. Drop JSON.stringify when calling handleGeckoMessage; r=mfinkle 2014-04-04 12:33:50 -04:00
Ryan VanderMeulen
6a3fa988ca Merge inbound to m-c. 2014-04-01 16:45:00 -04:00
Geoff Brown
4ba9807bcb Bug 967704 - Skip a few more tests on Android 2.3 2014-03-31 21:30:07 -06:00
Bill McCloskey
f44f9436ac Bug 986163 - Fix webapprt tests (r=ted) 2014-03-28 15:50:28 -07:00
Geoff Brown
38f8f4b8a3 Bug 967704 - Skip more mochitests on Android 2.3 only 2014-03-28 11:39:14 -06:00
Nathan Froyd
ab21e84091 Bug 969437 - part 1 - introduce a --quiet option for mochitests; r=jmaher 2014-03-07 11:42:07 -05:00
Ryan VanderMeulen
4dc5242df5 Merge inbound to m-c. 2014-03-26 20:58:31 -04:00
Gregory Szorc
df9137da98 Bug 987414 - Pass multiple test arguments to mach testing commands; r=ahal
Previously, mach xpcshell-test and mochitest-* were limited to a single
test "path" argument. This patch enables multiple arguments to be passed
in.

TestResolver in the build system has gained the ability to process
multiple paths in a single invocation. The mach commands have been
modified to utilize this new feature.

Only mach code paths that pass manifestdestiny.TestManifest instances
into the test runner can accept multiple arguments. This is because
there is no other way to pass a custom set of tests into the test
runner. If multiple test arguments are used but not supported, a warning
is emitted.

--HG--
extra : rebase_source : 1ce1328a969f654e7b43a7a0bdd15ed86f5ceb21
2014-03-24 16:19:57 -07:00
Gregory Szorc
4d0939f8dc Bug 987398 - Part 1: Run mochitests from manifests with mach; r=ahal
The mochitest mach commands now consult the all-tests.json file for
resolving the test argument/path. The mochitest runner has been modified
to accept a manifestdestiny.TestManifest instance instead of a path to a
manifest file. The mach commands construct an in-memory TestManifest and
pass it to the mochitest runner.

While I was here, I cleaned up some old JSON serializing code.

--HG--
extra : rebase_source : 886b13d4cb35992c132bc3051925424609a5fdf8
2014-03-24 14:35:06 -07:00
Wes Kocher
0d58e41dd9 Merge fx-team to m-c 2014-03-25 20:03:13 -07:00
Wes Kocher
622986d217 Merge inbound to m-c 2014-03-25 19:54:55 -07:00
Alexandre Poirot
7b3b1cc88a Bug 965257 - Expose Assert.jsm in mochitest-plain chrome script. r=ted 2014-03-25 12:03:21 -04:00
Gregory Szorc
465782db3b Bug 987372 - Try harder to stop child processes in mochitest runner; r=ahal
The mochitest runner could start a child process but not clean it up in
all cases. This patch ensures we always try to stop child processes
before exiting.

Ideally, things should probably be implemented as context managers or
the cleanup logic should live in a __del__. But, perfect is the enemy of
done. This simple approach appears to solve the problem in a manner that
isn't too invasive.

--HG--
extra : rebase_source : 685d23c31184808a12f9ee3571391381eda8c5fb
extra : amend_source : 780f36555cb94870dd063842aa226c27da8d95b0
2014-03-24 14:43:36 -07:00
Phil Ringnalda
9d692a7cba Bug 983948 - Temporarily increase the per-test browser-chrome default timeout to 45 seconds 2014-03-23 16:55:34 -07:00
Jonathan Griffin
2c813577a2 Bug 979650 - Always build with Marionette for Firefox, b2g desktop, r=ted 2014-03-11 13:22:34 -07:00
Kevin Cox
89bcb7b19c Bug 958897 - ssltunnel lives if mochitest killed. r=jmaher
[PATCH] Made Mochitest.runApp() clean up after itself in case of exception
2014-03-23 10:20:32 -04:00
Masatoshi Kimura
f2e161d6fb Bug 980278 - Remove DataContainerEvent dependency from Mochitest. r=jmaher 2014-03-21 13:00:00 +09:00
Paolo Amadini
c873a36b5d Bug 985954 - Remove deprecated promise.js usage in the testing framework. r=ted 2014-04-01 13:45:48 +02:00
Vaibhav Agrawal
5d191ae6fd Bug 908945 - Fix automation.py's exit code handling; r=jmaher 2014-03-26 06:14:51 -04:00
Wes Kocher
0bdcbe2b41 Merge m-c to inbound 2014-03-25 20:21:17 -07:00
Brian Birtles
8039fdb1db Bug 986367 - Make paint_listener.js check for paint suppression; r=mattwoodrow
This patch adds an extra check for paint suppression when waiting for paint
events. This is because on some platforms (notably B2G) we can think all paints
have completed because paint suppression is in effect and as a result call the
callback too soon.

This patch use window.setTimeout(..., 0) to wait for paint suppression to finish
before preceding to check for pending paint events.

When the refresh driver is under test control, if we detect that paint events
are pending we need to force a refresh driver tick. This patch adds that tick.
I suppose we had previously never hit this situation before and never noticed
this.

This patch also rearranges the main loop so that early returns appear first and
calling the callback appears at the end.
2014-03-26 09:20:07 +09:00
Geoff Brown
5c92b15fcb Bug 967704 - Disable a few tests on Android 2.3 for intermittent failures 2014-03-20 17:16:40 -06:00
Carsten "Tomcat" Book
25e80771a2 Merge mozilla-central to b2g-inbound 2014-03-19 16:30:49 +01:00
Andrew Halberstadt
c5299fccd1 Bug 983262 - Remove obsolete b2g mochitest json manifests, r=jmaher 2014-03-19 11:23:29 -04:00
Bill McCloskey
e2a704f342 Bug 983921 - Rename test_SimpleTestGetTestFileURL.html so it doesn't get skipped (r=jmaher)
--HG--
rename : testing/mochitest/tests/Harness_sanity/test_SimpleTestGetTestFileURL.html => testing/mochitest/tests/Harness_sanity/test_SimpletestGetTestFileURL.html
2014-03-15 08:43:35 -07:00
Bill McCloskey
aa5f40a77e Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00
Wes Kocher
a3277d291d Backed out changeset 88425ad0f06a (bug 982828) for introducing various mochitest-5 failures on a CLOSED TREE
* * *
Backed out changeset 94f9ebdc6662 (bug 982828)
2014-03-13 19:41:21 -07:00
Bill McCloskey
f4f6bf8e4d Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Geoff Brown
b438829b3c Bug 983406 - Fix syntax error in androidx86.json; r=jmaher 2014-03-13 16:59:01 -06:00
Bill McCloskey
7193069fa0 Backed out changeset d6261f65070a 2014-03-13 15:52:27 -07:00
Bill McCloskey
69a746922b Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Vaibhav Agarwal
74d0d984a3 Bug 971132 - B2G mochitests should use the new manifest format for runtests; r=jmaher 2014-03-13 10:40:10 -04:00
Wes Kocher
d3699eaf73 Merge b2g-inbound to m-c 2014-03-12 19:51:10 -07:00
Dave Hylands
e651093286 Bug 959591 - Add a test to verify functionality. r=fabrice 2014-03-12 14:15:05 -07:00
Ryan VanderMeulen
f06b210e1a Merge m-c to b2g-inbound. 2014-03-12 11:33:22 -04:00
David Clarke
5c33bc2f44 Bug 981217 - Make the wifi connection more rubust during testing. r=ahal 2014-03-12 08:29:23 -04:00
Andrew Halberstadt
1dd06e308b Bug 974069 - Add 'manifests' back to DIRS in testing/mochitest, r=ted 2014-03-11 13:40:43 -04:00
Vaibhav Agarwal
262a9b4cd4 Bug 970925 - convert testing/mochitest/android.json into skip-if statements in mochitest.ini files; r=jmaher 2014-03-12 06:16:12 -04:00
Geoff Brown
e4da2e0e2b Bug 967704 - Add android23.json to mochitest Makefile.in; r=jmaher 2014-03-12 09:42:00 -06:00
Vaibhav Agarwal
086e8d6332 Bug 971132 - B2G mochitests should use the new manifest format; r=jmaher 2014-03-12 11:41:08 -04:00
Geoff Brown
673896d195 Bug 967704 - Add android23.json for Android 2.3 mochitests; r=jmaher 2014-03-10 19:56:31 -06:00
Nathan Froyd
0b41e38db5 Bug 979936 - delete unused `quiet' param-handling code in setup.js; r=jmaher 2014-03-05 12:39:46 -05:00
Brian Birtles
fcbfc7668a Bug 979161 part 4 - Add a non-flushing version of waitForAllPaints to paint_listener.js; r=mattwoodrow
This patch adds waitForAllPaints which does *not* call getBoundingClientRect
since that can cause a flush. Sometimes this flush is undesirable since it can
mask bugs in the code under test which should be performing this flush itself.
2014-03-10 13:47:12 +09:00
Brian Birtles
107bec87ec Bug 979161 part 3 - Use SpecialPowers.getDOMWindowUtils in paint_listener.js; r=mattwoodrow
We can't just use SpecialPowers.DOMWindowUtils since otherwise we end up with
a DOMWindowUtils object that is bound to the parent object.
2014-03-10 13:47:12 +09:00
Brian Birtles
8faeac96c8 Bug 979161 part 2 - Wrap long lines in paint_listener.js; r=mattwoodrow
And also simplify the code somewhat
2014-03-10 13:47:12 +09:00
Brian Birtles
b739e7961d Bug 979161 part 1 - Wrap up paint_listener.js so it doesn't leak globals; r=roc 2014-03-10 13:47:12 +09:00
Joel Maher
c07db01998 Bug 970925 - (backout canvas webgl) convert testing/mochitest/android.json into skip-if statements in mochitest.ini files. r=gbrown CLOSED TREE 2014-03-06 16:49:37 -05:00
Vaibhav Agarwal
417b7f2e77 Bug 970925 - convert testing/mochitest/android.json into skip-if statements in mochitest.ini files; r=jmaher 2014-03-06 13:42:47 -05:00
Vaibhav Agarwal
66a7651a97 Bug 971132 - B2G mochitests should use the new manifest format [directories]; r=jmaher 2014-03-06 13:42:45 -05:00
Vaibhav Agarwal
9a59a5c96d Bug 971132 - B2G mochitests should use the new manifest format; r=jmaher 2014-03-06 13:42:43 -05:00
Ted Mielczarek
5db86de6a8 Bug 977699 - Move the few remaining mochitests to manifests. r=jmaher 2014-03-04 15:54:31 -05:00
Richard Barnes
70dae16942 Bug 936340 - Implement navigator.sendBeacon r=sicking 2014-03-06 10:51:23 -05:00
Ehsan Akhgari
65a4f26667 Backed out changeset 98cc8a50348f (bug 936340) because it misses the test_beaconElectrolysis.html file, which breaks the build 2014-03-06 09:04:45 -05:00
Richard Barnes
137fe8d659 Bug 936340 - Implement navigator.sendBeacon. r=sicking 2014-03-06 08:52:50 -05:00
Joel Maher
9b5829fcde Bug 971025 - move testing/mochitest/test/test_* to testing/mochitest/test/Harness_sanity. r=ted
--HG--
rename : testing/mochitest/tests/SpecialPowersLoadChromeScript.js => testing/mochitest/tests/Harness_sanity/SpecialPowersLoadChromeScript.js
rename : testing/mochitest/tests/file_SpecialPowersFrame1.html => testing/mochitest/tests/Harness_sanity/file_SpecialPowersFrame1.html
rename : testing/mochitest/tests/test_SimpleTestGetTestFileURL.html => testing/mochitest/tests/Harness_sanity/test_SimpleTestGetTestFileURL.html
rename : testing/mochitest/tests/test_SpecialPowersExtension.html => testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension.html
rename : testing/mochitest/tests/test_SpecialPowersExtension2.html => testing/mochitest/tests/Harness_sanity/test_SpecialPowersExtension2.html
rename : testing/mochitest/tests/test_SpecialPowersLoadChromeScript.html => testing/mochitest/tests/Harness_sanity/test_SpecialPowersLoadChromeScript.html
rename : testing/mochitest/tests/test_SpecialPowersPushPermissions.html => testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPermissions.html
rename : testing/mochitest/tests/test_SpecialPowersPushPrefEnv.html => testing/mochitest/tests/Harness_sanity/test_SpecialPowersPushPrefEnv.html
rename : testing/mochitest/tests/test_bug362788.xhtml => testing/mochitest/tests/Harness_sanity/test_bug362788.xhtml
rename : testing/mochitest/tests/test_bug816847.html => testing/mochitest/tests/Harness_sanity/test_bug816847.html
rename : testing/mochitest/tests/test_sanity.html => testing/mochitest/tests/Harness_sanity/test_sanity.html
rename : testing/mochitest/tests/test_sanityEventUtils.html => testing/mochitest/tests/Harness_sanity/test_sanityEventUtils.html
rename : testing/mochitest/tests/test_sanityException.html => testing/mochitest/tests/Harness_sanity/test_sanityException.html
rename : testing/mochitest/tests/test_sanityException2.html => testing/mochitest/tests/Harness_sanity/test_sanityException2.html
rename : testing/mochitest/tests/test_sanitySimpletest.html => testing/mochitest/tests/Harness_sanity/test_sanitySimpletest.html
rename : testing/mochitest/tests/test_sanityWindowSnapshot.html => testing/mochitest/tests/Harness_sanity/test_sanityWindowSnapshot.html
rename : testing/mochitest/tests/test_sanity_cleanup.html => testing/mochitest/tests/Harness_sanity/test_sanity_cleanup.html
rename : testing/mochitest/tests/test_sanity_cleanup2.html => testing/mochitest/tests/Harness_sanity/test_sanity_cleanup2.html
2014-03-05 10:32:02 -05:00
Ehsan Akhgari
bf09c6f469 Bug 976896 - Port STL_FLAGS to moz.build; r=mshal 2014-03-04 19:39:06 -05:00
Geoff Brown
c374245688 Bug 936226 - Update test manifests for Android x86 2014-03-04 17:02:04 -07:00
Ryan VanderMeulen
b497219d9b Bug 979446 - Disable dom/downloads tests on B2G for frequent timeouts. 2014-03-04 13:38:18 -05:00
Masayuki Nakano
988a8c3033 Bug 974318 part.9 Use WidgetTextEvent::mRanges on CompositionStringSynthesizer r=smaug 2014-03-04 22:48:28 +09:00
Andrew Halberstadt
76474a8cf9 Bug 967647 - Enforce an unbuffered stream by default in mozprocess, r=jgriffin 2014-03-03 15:16:54 -05:00
Benjamin Chen
54263f59b6 Bug 969289 - Add new test_mediarecorder_record_gum_video_timeslice.html test case. r=jsmith 2014-02-18 11:11:18 +08:00
Ed Morley
1169e3e5fb Merge latest green inbound changeset and mozilla-central 2014-03-03 14:44:44 +00: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
Kearwood (Kip) Gilbert
607fa6edce Bug 687297 - Added Mochitest to verify that the per-presentation base minimum font size is propagated without being influenced by the language-specific global preference. r=dbaron
This test applies a large value to the font.minimum-size.ja preference, opens a new window, advances the url through an iso-8859-1 page, a Shift-JIS page, and back to an iso-8859-1 page.  If the height of a div containing text on the first iso-8859-1 page and last iso-8859-1 page do not match, then the test is failed.

This test has been excluded from B2G Desktop Client tests due to bug 948948.
2014-02-26 16:01:38 -08:00
Ryan VanderMeulen
72c9423622 Merge m-c to fx-team. 2014-02-28 16:10:17 -05:00
Jan de Mooij
332dd47a4c Bug 977921 - Override ASan malloc_context_size to save memory. r=decoder
--HG--
extra : rebase_source : 500882c214de079c1d493e21a9ee91c3da743226
2014-02-28 16:33:25 +01:00
Andrew Halberstadt
fd5c7dc4f7 Bug 974069 - Add manifest for running emulator-jb mochitests, r=ted 2014-02-28 15:24:37 -05:00
Tim Taubert
8c3f3d431b Bug 975552 - Let the leak detector know about the preloaded customization tab r=bustage 2014-02-28 20:55:37 +01:00
Bill McCloskey
a6e3c52e36 Bug 938019 - Run mochitests from manifests (r=ted,gps) 2014-03-18 08:03:51 -07:00
Nathan Froyd
0d75086338 Bug 977198 - better contextual logging for test failures in mochitests; r=jmaher 2014-02-26 14:31:12 -05:00
Nathan Froyd
9c88edbd18 Bug 974073 - add SimpleTest.forceCompleteLog() so tests can force all test output to be displayed; r=jmaher 2014-02-25 16:41:02 -05:00
Nathan Froyd
c44927f681 Bug 973000 - always output log messages for a single mochitest run; r=jmaher 2014-02-14 15:24:36 -05:00
John Schoenick
c4eec01cb3 Bug 971279 - Add nptest java plugin. r=bsmedberg 2014-02-25 13:30:04 -08:00
Ryan VanderMeulen
32684d2e23 Bug 960743 - Disable content/base/test/test_XHR_timeout.html on B2G due to intermittent failures. 2014-02-25 08:15:34 -05:00
Wes Kocher
a5dcf6f444 Backed out 7 changesets (bug 406541, bug 738396, bug 852315, bug 971273, bug 971279) for various java/plugin-related failures on a CLOSED TREE
Backed out changeset 13cc8a7ee925 (bug 852315)
Backed out changeset 23dfc36f99d4 (bug 852315)
Backed out changeset fb56bd7c0feb (bug 406541)
Backed out changeset b24d1437c6f3 (bug 738396)
Backed out changeset 5028e1290b45 (bug 971279)
Backed out changeset 34ecdab0cfc2 (bug 971279)
Backed out changeset 95b4aa01923d (bug 971273)
2014-02-20 16:19:30 -08:00
John Schoenick
2e78a944a7 Bug 971279 - Add nptest java plugin. r=bsmedberg 2014-02-20 14:38:02 -08:00
Andrew Halberstadt
d881fe9921 Bug 975085 - Don't create unnecessary devicemanager instance in b2g emulator tests, r=jgriffin 2014-02-20 16:56:57 -05:00
Bobby Holley
37381cb9d4 Bug 974546 - SpecialPowers wrappers should catch, wrap, and rethrow exceptions for callables. r=mrbkap 2014-02-20 08:57:20 -08:00
Joel Maher
262aab5684 Bug 970925 - convert testing/mochitest/android.json to mochitest.ini - first pass at androidx86.json. r=gbrown 2014-02-20 09:17:16 -05:00
Martin Thomson [:mt]
61d6cb4a6f Bug 972168 - Include dot files in the test bundle. r=ted 2014-02-12 20:27:17 -08:00
"Kan-Ru Chen (陳侃如)"
f10544b0e0 Bug 970290 - Wait "testready" instead of "load" event. 2014-02-20 10:25:14 +08:00
Ryan VanderMeulen
4b268f77e5 Bug 974270 - Disable dom/datastore mochitests on B2G for frequent failures that take down the rest of the test suite with it. 2014-02-19 15:39:38 -05:00