Simon Montagu
25e8f55bc0
Make SimpleTest.is* functions less verbose on pass. Bug 797827, r=jmaher
2012-10-04 08:57:50 -07:00
William Lachance
54d781abf7
Bug 795496 - Make mozdevice raise exceptions on error;r=ahal,jmaher
...
It turns out that relying on the user to check return codes for every
command was non-intuitive and resulted in many hard to trace bugs.
Now most functinos just return "None", and raise a DMError when there's an
exception. The exception to this are functions like dirExists, which now return
booleans, and throw exceptions on error. This is a fairly major refactor,
and also involved the following internal changes:
* Removed FileError and AgentError exceptions, replaced with DMError
(having to manage three different types of exceptions was confusing,
all the more so when we're raising them)
* Docstrings updated to remove references to return values where no
longer relevant
* pushFile no longer will create a directory to accomodate the file
if it doesn't exist (this makes it consistent with devicemanagerADB)
* dmSUT we validate the file, but assume that we get something back
from the agent, instead of falling back to manual validation in the
case that we didn't
* isDir and dirExists had the same intention, but different
implementations for dmSUT. Replaced the dmSUT impl of getDirectory
with that of isDir's (which was much simpler). Removed
isDir from devicemanager.py, since it wasn't used externally
* killProcess modified to check for process existence before running
(since the actual internal kill command will throw an exception
if the process doesn't exist)
In addition to all this, more unit tests have been added to test these
changes for devicemanagerSUT.
2012-10-04 11:28:07 -04:00
Justin Lebar
851ff7842d
Bug 789392 - Allow mozapp frames to window.close() themselves. r=bz
2012-10-04 00:44:50 -04:00
Matthew Noorenberghe
c704d186dc
Disable test_notifications_popup.html from bug 784028 on android since it's lacking PopupNotifications
2012-10-03 20:54:37 -07:00
Ryan VanderMeulen
b3a7522e9a
Backout 99caa1f41fe1 (bug 797515) and a04b83c53297 (bug 789392) for M2 orange.
2012-10-03 21:59:41 -04:00
Justin Lebar
30b2ea29e8
Bug 789392 - Allow mozapp frames to window.close() themselves. r=bz
2012-10-03 20:45:40 -04:00
Ryan VanderMeulen
325089208a
Merge m-c to inbound.
2012-10-03 18:19:17 -04:00
David Chan
7991baddb3
Bug 797177 - Unbreak b2g mochitests, r=ahal
2012-10-02 15:43:19 -07:00
Patrick Wang
253d71a38a
Bug 777384 - Test case r=jlebar
...
--HG--
extra : rebase_source : 777580f0a22bfb3d9d447097b0f4a379f2b7416b
2012-09-27 01:47:57 +08:00
Joel Maher
d37007e0cd
Bug 797112 - we have a call to dm.checkCmd and that api doesn't exist anymore. r=wlach
2012-10-03 11:07:31 -04:00
Justin Lebar
0763b41739
Back out bbf94917f0ec (bug 789392) on strong suspicion of causing assertions in debug mochitest-2 on a CLOSED TREE.
...
The assertion encountered is:
Assertion failure: !gAppContentParents || !gAppContentParents->Get(mAppManifestURL), at ../../../dom/ipc/ContentParent.cpp:774
TEST-UNEXPECTED-FAIL | /tests/dom/browser-element/mochitest/test_browserElement_oop_CloseFromOpener.html | Exited with code 11 during test run
PROCESS-CRASH | /tests/dom/browser-element/mochitest/test_browserElement_oop_CloseFromOpener.html | application crashed (minidump found)
Thread 0 (crashed)
2012-10-02 18:20:20 -04:00
Justin Lebar
774351fff4
Bug 789392 - Allow mozapp frames to window.close() themselves. r=bz
2012-10-02 13:55:52 -04: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
Phil Ringnalda
8aa24b1c1a
Merge last PGO-green changeset of mozilla-inbound to mozilla-central
2012-09-28 22:06:29 -07:00
Jonathan Griffin
5cad8381bb
Bug 795100 - Add a --gecko-path argument to the B2G mochitest testrunner, r=ahal, DONTBUILD(NPOTB)
2012-09-28 10:04:03 -07:00
Isaac Aggrey
b33410feb2
Bug 789847 - Remove PR_CALLBACK usage from tree
2012-09-25 11:18:38 -05:00
Bob Clary
9f3fa1ad30
Bug 789086 - use unique temporary filename for robotium.config file in mochitest/runtestsremote.py, r=jmaher.
2012-09-28 12:25:46 -07:00
Mounir Lamouri
45c2bff831
Bug 773373 part 6 - Disable tests on Android. r=sicking
2012-09-25 23:33:02 +01:00
Andrea Marchesini
b13172b91d
Bug 779982 - Change behaviour of getSelf and add amInstalled function. r=sicking
2012-09-25 11:04:24 -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
Gregor Wagner
f7fc6f1852
Bug 792536 - Enable contacts and settings tests on mobile. r=fabrice
2012-09-19 21:37:05 -07:00
Gregor Wagner
a3f5338aff
Bug 770731 - Expose JS API for modifying app permissions. r=sicking
2012-09-19 11:19:00 -07: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
David Clarke
ac0fc975da
Bug 790546 - Add sdcard option to emulator, r=jgriffin, DONTBUILD because NPOTB
2012-09-17 18:44:07 -07: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
Gregor Wagner
da64ed1681
Backout bug 770731
2012-09-18 16:19:56 -07:00
Gregor Wagner
6ff65c4c09
Bug 770731 - Expose JS API for modifying app permissions. r=sicking
2012-09-18 14:52:39 -07:00
Tanvi Vyas
29c1c82c22
Bug 62178 - Mochitest - iframe, stylesheet, object, script, image, media, xhr (Disabled on android until ssl is supported), r=smaug
2012-09-16 20:53:01 -07:00
Adam Dane [:hobophobe]
d70d5d201f
Bug 787624 - Test for bug 787624. r=roc
2012-09-14 15:00:21 -05:00
Kartikaya Gupta
e240f0d40d
Bug 767449 - Allow robotium tests to put files in places other than /mnt/sdcard. r=jmaher
2012-09-12 07:56:31 -04: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
William Lachance
6a7b472377
Bug 723107 - Re-add mozdevice to testing/mozbase, remove duplicate files in build/mobile;r=jmaher
2012-09-07 16:00:31 -04: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
Brian R. Bondy
695f096c60
Bug 785744 - Async file picker cleanup. r=neil
2012-08-29 14:37:43 -04:00
Mounir Lamouri
62167af904
Bug 756645 - Implement IndexedDB apps isolation. r=bent
2012-08-28 09:46:46 -03:00
Philipp von Weitershausen
5801c8b2ab
Bug 776825 - Separate message managers into senders and broadcasters. r=smaug
...
--HG--
rename : content/base/public/nsIFrameMessageManager.idl => content/base/public/nsIMessageManager.idl
2012-08-27 11:13:02 -03:00
Ryan VanderMeulen
a1afd087e9
Merge m-c to inbound.
2012-08-23 19:50:46 -04:00
Mounir Lamouri
26b6f2ff4a
Bug 775815 - Use new Permission Manager API in SpecialPowers. r=sicking
2012-08-23 11:23:48 -07:00
Kyle Machulis
ee26c8d64a
Backout of c129811b87ef due to mochi bustage
2012-08-23 12:00:51 -07:00
Bobby Holley
270cd28810
Bug 785162 - Disable test_bug760802.html on android. r=smaug,dougt
2012-08-23 11:45:28 -07:00
Kyle Machulis
b48c1bd763
Bug 783426: Patch 2 - Async DOMRequest Firing Tests; r=sicking
2012-08-23 09:52:54 -07:00
Ehsan Akhgari
0fd9123eac
Bug 579517 - Part 1: Automated conversion of NSPR numeric types to stdint types in Gecko; r=bsmedberg
...
This patch was generated by a script. Here's the source of the script for
future reference:
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert PRInt8 int8_t
convert PRUint8 uint8_t
convert PRInt16 int16_t
convert PRUint16 uint16_t
convert PRInt32 int32_t
convert PRUint32 uint32_t
convert PRInt64 int64_t
convert PRUint64 uint64_t
convert PRIntn int
convert PRUintn unsigned
convert PRSize size_t
convert PROffset32 int32_t
convert PROffset64 int64_t
convert PRPtrdiff ptrdiff_t
convert PRFloat64 double
2012-08-22 11:56:38 -04:00
Kyle Machulis
750960ea54
Backout be6da7f8989c due to bustage
2012-08-22 18:11:52 -07:00