Alexandre Poirot
f357345ac6
Bug 926332 - Expose getTestFile to mochitest chrome/browser that returns nsIFile instance for test data files. r=jmaher
2013-10-17 14:27:23 -04:00
Ryan VanderMeulen
83af7e5de4
Backed out changeset 62732da6ae3d (bug 926332) for suspicion of causing mochitest-bc timeouts.
2013-10-17 16:22:41 -04:00
Alexandre Poirot
4107559430
Bug 926332 - Expose getTestFile to mochitest chrome/browser that returns nsIFile instance for test data files. r=jmaher
2013-10-17 14:27:23 -04:00
Martijn Wargers
aa4016d0c9
Bug 901343 - Tests that use createSystemXHR are failing on b2g mochitest. r=sicking
2013-10-12 02:18:34 +02:00
Ms2ger
1ee1f27aa3
Bug 922268 - Remove empty makefiles; r=gps
2013-10-03 09:10:00 +02:00
Martijn Wargers
36a41557c9
Bug 922008 - Remove more enablePrivilege calls, part2. r=jmaher
2013-09-30 11:30:01 +02:00
Ryan VanderMeulen
ad7d17c453
Merge m-c to b2g-inbound.
2013-09-30 16:30:26 -04:00
Gregory Szorc
54c1de66d6
Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:06 +02:00
Ed Morley
2c7dd24541
Backed out changeset 8b02873ee07e (bug 920223)
2013-09-30 12:50:05 +01:00
Gregory Szorc
8344d8a946
Bug 920223 - Part 3: Mass convert MOCHITEST_BROWSER_FILES to manifests; rs=Ms2ger
2013-09-30 09:52:06 +02:00
Martijn Wargers
a3d1617473
Bug 918604 - Remove more enablePrivilege calls. r=jmaher
2013-09-25 19:32:20 +02:00
Ryan VanderMeulen
df60bfed7e
Backed out changeset 356ba083bb5f (bug 918604) for frequent OSX test_window_bar.html timeouts.
...
CLOSED TREE
2013-09-27 18:28:43 -04:00
Martijn Wargers
01fd8c8bbd
Bug 918604 - Remove more enablePrivilege calls. r=jmaher
2013-09-25 19:32:20 +02:00
Martijn Wargers
4d7138739f
Bug 916086 - Remove some more enablePrivilege calls. r=jmaher
...
CLOSED TREE
--HG--
rename : layout/base/tests/test_bug458898.html => layout/base/tests/chrome/test_bug458898.html
2013-09-16 22:12:29 +02:00
Martijn Wargers
6e45f31a8e
Bug 914890 - While running a standalone mochitest, prefs and permissions should also reset after the mochitest run. r=jmaher
2013-09-30 15:05:21 +02:00
Alexandre Poirot
756c89efbe
Bug 914633 - Implement SpecialPowers.loadChromeScript to easily add new chrome features without having to modify SpecialPowers. r=ted
2013-09-14 22:09:13 -04:00
Ryan VanderMeulen
e4754304bc
Merge inbound to m-c.
2013-09-12 20:37:35 -04:00
Masayuki Nakano
c552beddd0
Bug 911951 part.2 Reimplement synthesizeText() in EventUtils.js and remove nsIDOMWindowUtils.COMPOSITION_ATTR_* from all tests r=smaug
2013-09-13 00:19:00 +09:00
Alexandre Poirot
46ce891b2a
Bug 894990 - Expose mochitest data file URL via SimpleTest.getTestFileURL. r=jmaher
2013-09-12 10:48:32 -04:00
L. David Baron
7073a4744d
Bug 847275 patch 1: Make assertions cause test failures in browser-chrome mochitest. r=dao
...
I tested all three error messages manually by making different
SimpleTest.expectAssertions() calls in
browser/base/content/test/browser_aboutHome.js .
2013-09-09 12:21:24 +02:00
Mike Hommey
f8bc7fa754
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
David Rajchenbach-Teller
8f97970e9c
Bug 872229 - Add an add_task API for mochitest. r=ted
2013-06-04 15:35:43 +02:00
Martijn Wargers
f535093ab0
Bug 908439 - Rewrite some tests to SpecialPowers.pushPrefEnv/pushPermissions. r=jmaher
2013-08-29 23:12:15 +02:00
Martijn Wargers
fef033baa7
Bug 909012 - pushPermissions doesn't have 'remove' option. r=jmaher
2013-08-26 20:05:20 +02:00
Joel Maher
57e18cad43
Bug 868158 - mochitests should support manifest format. r=ted
2013-08-02 08:48:06 -04:00
Martijn Wargers
260b0100df
Bug 873149 - Report the slowest test in mochitest, r=ted
...
--HG--
extra : rebase_source : a5da51081c9460c12a2366387acba095681bdca5
2013-06-14 02:03:48 +02:00
Masayuki Nakano
345d20234e
Bug 501496 part.13 nsListControlFrame should handle key navigation at keydown event handler r=neil
2013-07-25 15:09:29 +09:00
Masayuki Nakano
ab8eca4513
Bug 501496 part.9 EventUtils and some tests shouldn't synthesize keypress event if precede keydown event is consumed r=smaug
2013-07-25 15:09:29 +09:00
Masayuki Nakano
7318911de9
Bug 896362 part.2 Add tests for VK_ABNT_C1 and VK_ABNT_C2 r=jimm+smaug
2013-07-25 15:04:17 +09:00
Marco Bonardo
c6b58cf259
Bug 895376 - Make mochitest browser harness distinguish real timeouts from long-running tests.
...
r=gavin
2013-07-19 15:51:34 +02:00
Jim Chen
5c979358f3
Bug 864040 - Move synthesizeSelectionSet to EventUtils.js and let sendString accept newlines; r=jmaher
2013-06-26 17:28:21 -04:00
Martijn Wargers
9775b80620
Bug 880310 - Add some pushPrefEnv tests. r=jmaher
2013-06-15 01:21:57 +02:00
Gavin Sharp
30fa51a97b
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
Felipe Gomes
bac01cc4af
Bug 880555 - Fix --test-manifest option for non mochitest-plain. r=jmaher
2013-06-17 19:04:04 +02:00
Martijn Wargers
49fddee770
Bug 883094 - Fix some test files that don't unset their prefs correctly. r=jgriffin
2013-06-15 00:33:47 +02:00
Bobby Holley
f06e741959
Bug 877478 - Fix tests that depend on creating verboten instances in content. r=mrbkap
...
XPConnect generally throws when trying to create instances of non-DOM objects
in content. Due to some bugs this has historically worked in certain cases, but
we're fixing those now. So we need to fix the tests that do this sort of thing.
2013-06-04 19:56:42 -07:00
Gijs Kruitbosch
36b62dafcf
Bug 877178 - Add an exception checking method to SimpleTest, r=robcee
2013-06-01 15:33:03 +02:00
Felipe Gomes
6e89818d5f
Bug 875463 - Implement --run-until-failure option for mochitests. r=jmaher
2013-05-24 16:03:50 -03:00
Felipe Gomes
740cd9ba32
Bug 875463 - Part 0. Remove plain-loop.html and fix --repeat for single tests. r=jmaher
2013-05-24 16:03:49 -03:00
Martijn Wargers
1e95b05c7e
Bug 859401 - pushPermissions missing PROMPT_ACTION case. r=jmaher
2013-05-17 10:46:36 +02:00
Joel Maher
85d4edebe2
Bug 868329 - Switch legacy cases of test disabling on Android/B2G using makefile ifdefs over to android.json & b2g.json. r=edmorley
2013-05-07 12:46:45 -04:00
Martijn Wargers
2677f971cb
Bug 861689 - Fix focus issues in various B2G mochitests. r=jmaher
2013-05-03 18:29:55 +02:00
Ted Mielczarek
2e0143bf24
bug 866641 - add registerCleanupFunction method to mochitest-plain. r=jmaher
2013-04-29 14:35:14 -04:00
Ryan VanderMeulen
463e9e1959
Backed out changeset f4da799815da (bug 861689) for mochitest asserts.
...
CLOSED TREE
2013-04-30 11:12:17 -04:00
Martijn Wargers
3478411501
Bug 861689 - Unable to restore focus, expect failures and timeouts after certain tests in the b2g mochitest run. r=jmaher
2013-04-29 23:14:32 +02:00
Alexandre Poirot
16e6da25d8
Bug 857073 - Simplify ChromeUtils usages. r=jmaher
2013-04-16 16:46:47 -04:00
Kyle Machulis
72a717a860
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
43628a7867
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
334c0800cf
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
David Chan
1b69f6f153
Bug 855192 - Fix MockPermissionPrompt scope. r=jgriffin
2013-03-27 13:16:39 -07:00
Joel Maher
420861c89e
Bug 685652 - we need a pushPermissionsEnv equivalent to pushPrefEnv in SpecialPowers. r=jdm
2013-03-29 08:43:27 -04:00
Bobby Holley
0058cdaa1d
Bug 790732 - Fix automation detection to handle Components shim. rs=mccr8
2013-03-28 14:26:02 -07:00
Ryan VanderMeulen
0d389c5e36
Backed out changeset 01ed911e67e1 (bug 685652) for possibly being the real OSX 10.6 mochitest-other culprit. r=OJ
2013-03-27 17:05:52 -04:00
Joel Maher
217b9c48cc
Bug 685652 - we need a pushPermissionsEnv equivalent to pushPrefEnv in SpecialPowers. r=jdm
2013-03-27 15:04:39 -04:00
Gregory Szorc
7d09ff18e0
Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium
2013-03-17 18:01:25 -07:00
L. David Baron
47912e1a5b
Bug 850559: Make mochitests check that the test didn't leave the refresh driver under test control. r=ted
2013-03-15 14:40:37 -07:00
Mats Palmgren
c98174406a
Bug 635852. r=smaug
2013-03-08 12:04:53 +01:00
Ms2ger
8fedd090cc
Merge m-i to b-s.
2013-02-28 14:46:10 +01:00
Gregory Szorc
1ee2e803e1
Bug 784841 - Part 18η: Convert /testing; r=ted
2013-02-25 13:05:39 -08:00
L. David Baron
d4d58ab893
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
L. David Baron
fb7e710309
Bug 404077: Enable checking of assertions in mochitests.
2013-02-27 13:20:28 -08:00
Josh Aas
74249f548e
Bug 647216: Allow mouse event handling in the title bar on OS X. A number of contributors to this patch, including Markus Stange, Paul O'Shannessy, Mike Conley, Stephen Pohl, and myself (Josh Aas). r=mstange,dao,enndeakin
2013-02-05 15:40:34 -06:00
Josh Aas
1bd545cb01
Back out fix for bug 647216 due to test failures. CLOSED TREE
2013-02-04 10:05:06 -06:00
Josh Aas
41e8b6b37d
Bug 647216: Allow mouse event handling in the title bar on OS X. A number of contributors to this patch, including Markus Stange, Paul O'Shannessy, Mike Conley, Stephen Pohl, and myself (Josh Aas). r=mstange,dao,enndeakin
2013-02-04 09:00:42 -06:00
Matt Brubeck
675e0cc17d
Bug 832101 - Allow EventUtils.sendMouseEvent to set pressure and inputSource [r=smaug]
2013-01-24 06:52:57 -08:00
Phil Ringnalda
f65996c27a
Bug 810705 - Reenable test_MochiKit-DOM-Safari.html on Linux now that bug 799295 should have fixed the crashes
2012-12-30 09:34:38 -08:00
Jeff Walden
156aca9f59
Make SimpleTest.js runnable in non-Gecko browsers again. No bug, r=jmaher over IRC
...
--HG--
rename : browser/themes/gnomestripe/downloads/allDownloadsViewOverlay.css => browser/themes/gnomestripe/downloads/downloads.css
rename : browser/themes/winstripe/downloads/allDownloadsViewOverlay.css => browser/themes/winstripe/downloads/downloads.css
rename : toolkit/components/places/tests/mochitest/test_bug_461710_perwindowpb.html => toolkit/components/places/tests/mochitest/test_bug_461710.html
extra : rebase_source : a0c2241ee37c74d1df60cccc02b3b08fb7c68f58
2012-12-20 17:57:29 -05:00
David Chan
345efe131e
Bug 816847 - Use AppService instead of Webapps.jsm for manifest lookup. r=jgriffin
2012-11-30 10:52:40 -08:00
Georg Fritzsche
0937ddb942
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
Ehsan Akhgari
77bb9823b5
Bug 816406 - Disallow dragging a private tab into a non-private window and vice versa; r=dao
2012-12-02 15:57:06 -05:00
Ed Morley
7f2ac9b6f3
Bug 765200 - Shorten errors of type: "an unexpected uncaught JS exception reported through window.onerror - ..."; r=jmaher
2012-12-04 17:45:32 +00:00
Joel Maher
02f46eda9d
Bug 811444 - panda boards magically reboot in the middle of the test. r=ted
2012-11-28 10:23:11 -05:00
Ehsan Akhgari
fd1ca44c78
Bug 814519 - Fix a typo in SimpleTest/setup.js; r=ted
2012-11-27 14:02:08 -05:00
Peter Van der Beken
dd5db5a970
Fix for bug 814022 (Make instanceof for new DOM bindings work across scopes). r=bz.
2012-11-19 11:59:13 +01:00
Phil Ringnalda
dd90179b08
Bug 810705 - Disable test_MochiKit-DOM-Safari.html on Linux because of PGO non-profiling crashes; r=ehsan
...
--HG--
extra : rebase_source : b2145a00d88acd9d17092b9398d2b97468cdeeb8
2012-11-19 14:12:38 -05:00
Zack Weinberg
9ab9128f73
Bug 663291: Improve the SpecialPowers and SimpleTest APIs to make it easier to write mochitests that look at error console output. Update all tests that were using ad-hoc console inspection or the old SimpleTest console handler API. r=ted
2012-11-16 21:53:32 -05:00
Ryan VanderMeulen
8a64b526bc
Backed out changesets b242651c3c1b (bug 229827), b36eaac9ecf8, and 40f38a8aa660 (bug 663291) for mochitest-3/4 failures.
...
CLOSED TREE
2012-11-16 16:59:38 -05:00
Zack Weinberg
ff35201bdd
Bug 663291: Improve the SpecialPowers and SimpleTest APIs to make it easier to write mochitests that look at error console output. Update all tests that were using ad-hoc console inspection or the old SimpleTest console handler API. r=ted
...
--HG--
extra : rebase_source : 013c6031577f88a764fecee9750ee890b45d1181
2012-11-16 15:29:21 -05:00
Josh Aas
8a78b3c63d
Back out both patches for bug 647216 due to regression documented in bug 806244.
2012-11-01 09:19:24 -04:00
Markus Stange
69c7d8ae0b
Bug 647216: Allow testing of MozMouseHittest window dragging. r=enndeakin
2012-10-26 15:40:11 -04:00
Masayuki Nakano
8acd6ae7f5
Bug 705057 part.1 Ensure a set of composition events is fired on same content r=smaug
2012-09-26 14:47:45 +09:00
Simon Montagu
4bef6a2052
Make SimpleTest.is* functions less verbose on pass. Bug 797827, r=jmaher
2012-10-04 08:57:50 -07:00
Vladimir Vukicevic
022565fe50
b=683143,792462; Some tests call SimpleTest.finish() twice/guard against that; r=ehsan
2012-10-01 17:51:10 -04:00
Bobby Holley
8188b09b4e
Bug 792036 - Fix up tests to avoid relying on the existence of window.Components (MANUAL). r=mccr8
...
These are the manual fixes that the ensuing auto-generation can't deal with. Some of them
just fix up formatting (such as Components.\nFoo, so that subsequent auto-generation can
work better).
2012-09-24 14:46:28 +02:00
Bobby Holley
373e284d28
Bug 792036 - Add a SpecialPowers API to provide access to the Components object in various forms. r=mrbkap,ted
...
Now that window.Components is no longer acccessible to page JS, we need a way
to access it in mochitests. So this patch provides SpecialPowers.Components,
which is the bonafide Components object for the window upon which SpecialPowers
is defined. It also provides SpecialPowers.{Cc,Ci,Cr,Cu}, which are SpecialPowers-wrapped
versions of their respective sub-objects (with the exception of Ci, which is unwrapped).
2012-09-24 14:46:27 +02:00
Joel Maher
3c0592ca47
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
Graeme McCutcheon
c183f67a15
Merge last PGO green changeset from mozilla-inbound to mozilla-central
2012-09-19 15:15:34 +01:00
Ehsan Akhgari
a6ec3197c4
Improve the failure message when a mochitest ends without a call to SimpleTest.finish, no bug, irc-r=vlad
...
DONTBUILD
2012-09-18 21:54:53 -04:00
Christian Holler
9c12900be3
Bug 787916 - Hide Mochitest test table with --close-when-done option. r=jmaher
2012-09-19 01:28:39 +02:00
Georg Fritzsche
caeb23b288
Bug 784145 - When submitting hang reports, submit the browser report as a field of the plugin report instead of as a completely separate report. r=ted
2012-09-08 19:20:59 +02:00
Boris Zbarsky
d91716f0ab
Bug 767931. Make drawWindow and asyncDrawXULElement ChromeOnly. r=roc
2012-09-07 01:29:47 -04:00
Masayuki Nakano
e97c0a46d9
Bug 788401 Avoid JS warnings in EventUtils.synthesizeWheel() r=smaug
2012-09-07 09:53:27 +09:00
Scott Johnson
3ea152f05b
Bug 780258: Add an interface to set the maximum line box width, accessible from chrome script. [r=dbaron]
2012-09-05 16:39:34 -05:00
Myk Melez
b4fdf2f847
bug 785545 - unrefactor mozApps tests for maximum readability/reliability; r=fabrice
2012-09-05 10:08:54 -07:00
Masayuki Nakano
36a101bd0d
Bug 786898 part.2 Add overflow delta value tests r=smaug, sr=smaug
2012-09-04 17:39:28 +09:00
Mounir Lamouri
8e092dc2e5
Bug 775815 - Use new Permission Manager API in SpecialPowers. r=sicking
2012-08-23 11:23:48 -07:00
Bobby Holley
8ac1ba8830
Bug 695292 - Port SimpleTest.executeSoon() to SpecialPowers. r=mrbkap
...
If we just naively use the thread manager to dispatch the event via SpecialPowers,
we cannot avoid the XPCWrappedJS for the runnable being in chrome scope (even if
we pass a content object, we make the call in chrome scope, so we pass a cross-
compartment wrapper). This means that the machinery in
nsXPCWrappedJSClass::CheckForException ends up calling the error reporter for the
SpecialPowers scope, which isn't what we want.
Messing around with the implementation of CheckForException is playing with fire.
So we work around this with an explicit Cu API. :-(
2012-08-17 15:13:23 -07:00
Phil Ringnalda
9208a5089e
Back out e6761635f9cf (bug 695292) for Android mochitest bustage on a CLOSED TREE
2012-08-16 21:35:53 -07:00
Bobby Holley
c64c9eb535
Bug 695292 - Port SimpleTest.executeSoon() to SpecialPowers. r=mrbkap
...
If we just naively use the thread manager to dispatch the event via SpecialPowers,
we cannot avoid the XPCWrappedJS for the runnable being in chrome scope (even if
we pass a content object, we make the call in chrome scope, so we pass a cross-
compartment wrapper). This means that the machinery in
nsXPCWrappedJSClass::CheckForException ends up calling the error reporter for the
SpecialPowers scope, which isn't what we want.
Messing around with the implementation of CheckForException is playing with fire.
So we work around this with an explicit Cu API. :-(
2012-08-16 18:33:27 -07:00
Myk Melez
f4a57d26a2
bug 783391 - NS_ERROR_FILE_IS_DIRECTORY on mochitest-chrome runs; r=adw
2012-08-16 15:20:29 -07:00