Commit Graph

403 Commits

Author SHA1 Message Date
Phil Ringnalda
a14e25163d 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
b90cc17174 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
401bd9646a 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
c1f34c416f 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
4c7422ffc4 Back out both patches for bug 647216 due to regression documented in bug 806244. 2012-11-01 09:19:24 -04:00
Markus Stange
9e63676c33 Bug 647216: Allow testing of MozMouseHittest window dragging. r=enndeakin 2012-10-26 15:40:11 -04:00
Masayuki Nakano
8217ef94b6 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
25e8f55bc0 Make SimpleTest.is* functions less verbose on pass. Bug 797827, r=jmaher 2012-10-04 08:57:50 -07:00
Vladimir Vukicevic
2864c47b46 b=683143,792462; Some tests call SimpleTest.finish() twice/guard against that; r=ehsan 2012-10-01 17:51:10 -04:00
Bobby Holley
7f912ddc79 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
515994bfb3 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
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
Graeme McCutcheon
5855c286f2 Merge last PGO green changeset from mozilla-inbound to mozilla-central 2012-09-19 15:15:34 +01:00
Ehsan Akhgari
6b89c15794 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
49974c5e53 Bug 787916 - Hide Mochitest test table with --close-when-done option. r=jmaher 2012-09-19 01:28:39 +02:00
Georg Fritzsche
cf33482a3e 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
06092f65fb Bug 767931. Make drawWindow and asyncDrawXULElement ChromeOnly. r=roc 2012-09-07 01:29:47 -04:00
Masayuki Nakano
08b5649f75 Bug 788401 Avoid JS warnings in EventUtils.synthesizeWheel() r=smaug 2012-09-07 09:53:27 +09:00
Scott Johnson
1ccadb6e74 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
5c26a10f81 bug 785545 - unrefactor mozApps tests for maximum readability/reliability; r=fabrice 2012-09-05 10:08:54 -07:00
Masayuki Nakano
652c834ce7 Bug 786898 part.2 Add overflow delta value tests r=smaug, sr=smaug 2012-09-04 17:39:28 +09:00
Mounir Lamouri
26b6f2ff4a Bug 775815 - Use new Permission Manager API in SpecialPowers. r=sicking 2012-08-23 11:23:48 -07:00
Bobby Holley
a4ec7a6646 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
8c55938528 Back out e6761635f9cf (bug 695292) for Android mochitest bustage on a CLOSED TREE 2012-08-16 21:35:53 -07:00
Bobby Holley
773b674a05 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
f121b94dfd bug 783391 - NS_ERROR_FILE_IS_DIRECTORY on mochitest-chrome runs; r=adw 2012-08-16 15:20:29 -07:00
Myk Melez
782fce224f bug 770770: refactor webapp runtime test harness to reduce complexity/special-casing; r=adw
--HG--
extra : rebase_source : 183331b565d8c0577c9ba60a89f3c1ea6b11af9a
2012-08-14 15:27:26 -07:00
Bobby Holley
79e4222127 Bug 781521 - Fix test_SpecialPowersExtension. r=Ms2ger
The constructor function lives in content, but it's being invoked from chrome, so the |this| object is actually privileged.
2012-08-14 20:54:33 -07:00
Ryan VanderMeulen
870142e530 Merge inbound to m-c. 2012-08-11 22:33:42 -04:00
Masayuki Nakano
cb1f8565ed Bug 719320 part.9 Implement nsIDOMWindowUtils::sendWheelEvent() for tests r=smaug, sr=jst 2012-08-12 10:42:36 +09:00
Gregor Wagner
83d03f7572 Bug 781929 - Fix SpecialPowers.addPermission typo. r=bent 2012-08-10 13:55:42 -07:00
Jonathan Griffin
5b08093de1 Bug 781711 - Make mochitest manifests work properly with both runtests and excludetests, r=jmaher 2012-08-10 09:44:50 -07:00
Kyle Huey
c44a5bd7c8 Bug 781700: Don't hold strong references to databases from the synchronization queue, so that GCing a database will unblock waiting operations. r=bent
--HG--
extra : rebase_source : 2f1b2405ffc91831d33eb91e4b2d61c2b1ac872b
2012-08-10 09:15:02 -07:00
Ed Morley
61bd42dc2d Merge last PGO-green changeset of mozilla-inbound to mozilla-central 2012-08-09 12:46:05 +01:00
Ms2ger
9d79f22780 Bug 781116 - "finished in a non-clean fashion" message should use error() instead of log(); r=ted 2012-08-09 09:11:33 +02:00
Bobby Holley
8a0a25b7d4 Bug 778420 - Add Services getter to SpecialPowers. r=jmaher
--HG--
extra : rebase_source : 6e0962a1fc3629d682beb4c36537ee0b11c9d810
2012-08-03 22:19:54 +02:00
Camilo Viecco
677feb5b22 Bug 726053 - Add in-chrome context to specialpowers, r=ted.mielczarek
--HG--
extra : rebase_source : a14c4a7606527b6dc2bd1c46e76e439bfacafd18
2012-08-08 22:08:42 +02:00
Mike Hommey
6173fa297f Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
Ehsan Akhgari
b40b21d633 Merge the nullptr conversion from mozilla-central into mozilla-inbound 2012-07-30 10:28:15 -04:00
Aryeh Gregor
e806eeab4f Bug 777292 part 2 - Change all nsnull to nullptr 2012-07-30 17:20:58 +03:00
Masatoshi Kimura
b79ee47058 Bug 750241 - Filter console messages to prevent intermittent orange; r=hsivonen 2012-07-30 12:47:19 +01:00
Wes Johnston
9f5ee4bbb4 Bug 773741 - Test using touch events on resizers. r=enn 2012-07-27 15:01:13 -07:00
Mounir Lamouri
72b86db435 Bug 775817 - Update [most] tests to use the new permission manager api. r=sicking 2012-07-23 11:08:07 -07:00
Nathan Froyd
a7eb97f896 Bug 370750 - consolidate mochitest files installation; r=glandium
With assistance on the patch from Ms2ger, Waldo, and Mossop.
2012-07-03 16:49:02 -04:00
Masayuki Nakano
e5e6f98f79 Bug 769190 part.1 Rename Scroll and Win to ScrollLock and OS for the argument of getModifierState() r=smaug, sr=jst 2012-07-06 09:42:05 +09:00
Tal Aloni
c2e7a66cfa Bug 248239 - Change standards mode height calculations for table cells to use content-box sizing rather than border-box sizing by default (and to honor -moz-box-sizing, which we do not do in quirks mode). Also remove -moz-box-sizing: border-box from default style for caption element (all modes). r=dbaron 2012-06-30 12:01:31 -04:00
Ehsan Akhgari
45fe6d3ae2 Bug 722872 - Part 1: Add nsITransferable::Init(nsILoadContext*), enforce that it's called in debug builds, and add nsIDOMDocument* arguments to nsIClipboardHelper methods; r=roc
This patch does the following:

* It adds nsITransferable::Init(nsILoadContext*).  The load context
  might be null, which means that the transferable is non-private, but
  if it's non-null, we extract the boolean value for the privacy mode
  and store it in the transferable.
* It adds checks in debug builds to make sure that Init is always
  called, in form of fatal assertions.
* It adds nsIDOMDocument* agruments to nsIClipboardHelper methods which
  represent the document that the string is coming from.
  nsIClipboardHelper implementation internally gets the nsILoadContext
  from that and passes it on to the transferable upon creation.  The
  reason that I did this was that nsIClipboardHelper is supposed to be a
  high-level helper, and in most of its call sites, we have easy access
  to a document object.
* It modifies all of the call sites of the above interfaces according to
  this change.
* It adds a GetLoadContext helper to nsIDocument to help with changing
  the call sites.
2012-04-16 22:14:01 -04: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
Ryan VanderMeulen
7511d396e5 Merge m-c to inbound. 2012-06-18 20:59:17 -04:00
Jan Varga
1ac8eec4a0 Bug 763388 - Remove enablePrivilege calls from IndexedDB and FileHandle tests. r=bent 2012-06-18 19:09:26 +02:00
Ms2ger
6e8b98202d Bug 763169 - Part b: Miscellaneous fixes; r=jhammel 2012-06-17 09:51:22 +02:00
Bobby Holley
c2dbe5e980 Bug 764315 - Trigger reification for QuickStubbed accessors in SpecialPowers wrappers before calling Object.getOwnPropertyDescriptor. r=mrbkap 2012-06-18 15:43:00 +02:00
Bobby Holley
4127f77199 Bug 763301 - Put SpecialPowers Xray detection in a try/catch. r=mrbkap 2012-06-18 15:43:00 +02:00
Joel Maher
a26d899b2d Bug 761125 - change mochitests to run all tests except excludedtests in android.json. r=jgriffin 2012-06-14 09:01:23 -04:00
Bobby Holley
a2a3845832 Bug 762432 - Handle proxies on __lookupGetter__ and __lookupSetter__. r=jorendorff 2012-06-12 15:44:14 +02:00
Olli Pettay
93a765cab8 Bug 756277 - XMLHttpRequest started from Cc['@mozilla.org/xmlextras/xmlhttprequest;1'] ends up bound to some random window, r=bz
--HG--
extra : rebase_source : 480dbf41846fee3362697cb0bf537281f35845e0
2012-06-08 23:45:13 +03:00
Bobby Holley
92242cfbac Bug 762529 - Handle constructors properly in SpecialPowers wrappers. r=mrbkap
--HG--
extra : rebase_source : edea7357a5e9f33d3cf68f09646492fb0a1cfc10
2012-06-08 00:09:55 +02:00
Ben Turner
b072e01d8f Bug 666693 - 'Remote IndexedDB for multiple IndexedDB-using processes'. r=cjones+sicking. 2012-06-01 10:21:12 -07:00
Gervase Markham
d4eb7d5782 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Bobby Holley
77291b468d Bug 553102 - Waive COW checks on SpecialPowers wrapper objects. r=mrbkap 2012-05-24 13:04:57 +02:00
Bobby Holley
590b3bd9e9 Bug 553102 - Fix SpecialPowers DOMWindowUtils. r=ted 2012-05-24 13:04:57 +02:00
Bobby Holley
5f74170fd0 Bug 553102 - Make the SpecialPowers wrapping API a bit nicer. r=ted 2012-05-24 13:04:57 +02:00
Ed Morley
ed4bcc5143 Backout cfac7b6a1f9c (bug 728893) for mochitest-1 orange 2012-05-23 11:56:03 +01:00
Diogo Golovanevsky Monteiro
a5f0597339 Bug 728893 - Allow mochitest iframe to go fullscreen r=ctalbert 2012-05-23 10:36:26 +01:00
Chris Pearce
f0483c44f2 Bug 753546 Part 1 - Make nsDocument listen for 'fullscreen-approved' notification rather than 'perm-changed' to signal fullscreen approved. r=smaug 2012-05-22 08:43:36 +12:00
Gervase Markham
ca171eec44 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Neil Rashbrook
0efdc15974 Bug 678726 Improved diagnostics to try to figure out what this random orange is r=ted 2012-05-10 22:46:15 +01:00
Chris Pearce
fdc9ccd271 Bug 746885 part 3 - Change pointer lock tests to always run on a domain with fullscreen-approved permissions. r=smaug 2012-05-09 09:48:27 +12:00
Justin Lebar
30ce54f7ce Bug 749018 - Make OOP <iframe mozbrowser> pass current browser frame tests. r=smaug,cjones
--HG--
extra : rebase_source : f15018bf2c9427a0d6e8d44da348d8d7d1693219
2012-05-08 09:20:35 -07:00
Masayuki Nakano
e7f63293af Bug 166240 part.8 Add tests for KeyboardEvent.location (synthesized events) r=smaug, sr=jst 2012-05-03 17:35:02 +09:00
Masayuki Nakano
bf490789ea Bug 630811 part.3 Improve nsDOMWindowUtils::send*Event() for new modifiers r=smaug 2012-04-25 12:00:02 +09:00
Serge Gautherie
1425823abe Bug 637101. (Bv1) Add a 1 second delay before calling killTest(), Fix bug 647323 regression, Remove extra ';' and spaces. r=ted.mielczarek. 2012-04-05 21:00:02 +02:00
Kyle Huey
03a553e469 Bug 722428: Fix leaks in mochitest by reworking SpecialPowers and nsDOMWindowUtils. r=mounir,ctalbert 2012-04-01 19:23:51 -07:00
Marco Bonardo
31496b4a78 Merge central to inbound 2012-03-30 12:27:55 +02:00
Ms2ger
e175c46c26 Bug 647323 - Part b: Implement test harness reporting code and import testharness code from the upstream repository; r=jhammel+ted 2012-03-29 23:08:43 +02:00
Peter Van der Beken
205960e5d1 Fix for bug 740397 (Make tests that try to get XHR.channel use SpecialPowers). r=bholley.
--HG--
extra : rebase_source : 0bd78094debfea9d179f17396626c3802a6b5a21
2012-03-29 11:15:09 -07:00
Peter Van der Beken
ec45e06e99 Fix for bug 739898 (Stop using enablePrivilege in test_bug480509.html). r=bz. 2012-03-27 16:31:36 -07:00
Peter Van der Beken
4e41ccafaf Fix for bug 739898 (Stop using enablePrivilege in test_bug480509.html). r=bz. 2012-03-27 16:31:36 -07:00
Masayuki Nakano
e780865b68 Bug 722961 Add tests for autocomplete with composition r=m_kato 2012-03-27 23:22:56 +09:00
Aryeh Gregor
b52ac88eae Bug 735805 part 5 - Mochitests that run no tests should fail; r=jmaher 2012-03-16 16:07:16 -04:00
Aryeh Gregor
ec634c71c6 Bug 736529 - Calling waitForFocus() and then finishing before you get focus should cause the test to fail; r=jmaher 2012-03-19 13:09:48 -04:00
Bobby Holley
21adfde48e Bug 731442 - Back out f9145dab4be9 (bug 718543) due to test failures. r=backout 2012-03-06 11:05:29 -08:00
Jonas Sicking
5e2c35737e Bug 722626: Implement DOMRequest object. r=mrbkap 2012-02-24 14:19:49 +01:00
Gavin Sharp
e598724f40 Bug 728627: simplify SpecialPowers pref observing, r=jmaher
--HG--
extra : rebase_source : 1c411dc0e8679cea3cc1f68ec792c36d19fbacfc
2012-02-18 17:33:18 -08:00
Joel Maher
a05309ab15 Bug 725112 - Add an easy make command to rerun tests that failed the last time. r=ted 2012-02-20 09:59:04 -05:00
Bobby Holley
0dae4c03ad Bug 718543 - Preserve SpecialPowers wrapper identity with a WeakMap cache. r=mrbkap 2012-02-19 15:47:12 -08:00
Geoff Lankow
61a628c863 Bug 718255 - Merge nsIPrefBranch2 with nsIPrefBranch - Part F, remove uses of nsIPrefBranch2 in testing/ and layout/tools/reftest/ ; r=bsmedberg 2012-01-17 15:01:25 +13:00
Serge Gautherie
be41c83ac8 Bug 725045. (Av1) pushPrefEnv() param is "clear" not "remove". r=jmaher.
DONTBUILD (comment-only).
2012-02-07 22:05:18 +01:00
Gavin Sharp
68c7507d6c Bug 723207: fix SimpleTest.info when called as just info(), r=jmaher
--HG--
extra : transplant_source : %02%AC%FC%98%E8%23%FE%9A%3D%BC%DEck%16%9FP%CE%95%B3%AF
2012-02-01 10:11:53 -08:00
Gavin Sharp
6fe4e4bc0c Bug 718203: don't allow drops of javascript: URIs on the home button, r=enndeakin, sr=bz
--HG--
extra : transplant_source : %ADP%C0%F8%8D%C4%A2v%BC%E5ZM%FC%D6BB%B7A%1E%07
2012-01-30 17:58:30 -08:00
Daniel Holbert
5febc529b4 Bug 722075: Fix $(NULL)-after-commented-out-lines in a mochitest Makefile. r=gavin 2012-01-30 12:11:41 -08:00
Reuben Morais
b15bc38f0f Bug 722144 - Allow dblclick on EventUtils.sendMouseEvent. r=smaug 2012-01-29 05:01:00 -08:00
Jonathan Watt
37c1301be5 Bug 701060 - Fix race condition with pref observers causing test orange. r=ehsan. 2012-01-27 22:16:44 +00:00
Dão Gottwald
2e4b60b563 No bug - fix some browser chrome tests that pollute the global scope 2012-01-24 23:08:42 +01:00
Serge Gautherie
e0b14800f9 Bug 720095. (Av1a-mochitest) Fix some strict warnings and nits. r=ted.mielczarek. 2012-01-24 17:38:46 +01:00
Dao Gottwald
5b8afd1702 Bug 719849 - global variables pollute the browser window during devtools tests; r=rcampbell 2012-01-23 11:50:11 -04:00
Dão Gottwald
55df5a1cf9 No bug - fix some browser chrome tests that pollute the global scope 2012-01-20 16:21:46 +01:00
Bobby Holley
5e68024fa3 Bug 702353 - Implement Proxy-Based XPCOM Wrappers in SpecialPowers. r=mrbkap,ted 2012-01-18 19:10:04 -08:00
Ehsan Akhgari
3d6474bf75 Bug 668728 - Teach the mochitest harness to verify that the test calling finish is the same one that we expect it to be, to avoid drastic failures such as test_reftests_with_caret.html inadvertently navigating back, and skipping half of its tests; r=ted 2011-08-19 02:03:25 -04:00
Boris Zbarsky
edd0a7b852 Bug 716549. Flush on every mousemove, because otherwise we can end up with mouse events (mousemove, mousein, mouseout) dispatched to the wrong elements. r=smaug 2011-12-23 22:52:26 -05:00