Commit Graph

2814 Commits

Author SHA1 Message Date
Marcos Caceres
d333449578 Bug 1270704 - Fix intermittent dead CPOW failure in browser_browserLoaded_content_loaded.js. r=mconley 2016-09-16 01:44:00 -04:00
Rob Wu
a03dbe288b Bug 1300385 - Fix flaws in SimpleTest.isDeeply. r=Waldo
- When one of the parameters to isDeeply is an object/function
  and the other is not, isDeeply returned false. Well, isDeeply
  is supposed to report an error instead of returning a value...

- Change the implementation of isDeeply to have SameValue semantics
  instead of weak equality.

- Change the representation of arrays to look like an array, instead
  of its default toString() value which is indistinguishable from a
  string due to the lack of brackets and quotes.

- Account for missing object properties;
  Distinguish them from "undefined" with the special DNE tag.

MozReview-Commit-ID: F1OJhbXcptl

--HG--
extra : rebase_source : 26091a40445064da3f87d61438bd74bbe7491363
2016-09-03 22:00:45 -07:00
Andrew McCreight
36c2e02c42 Back out de84b1059f7f (bug 1299871) because it doesn't help the issue it was supposed to. 2016-09-07 11:09:15 -07:00
Masayuki Nakano
af766dd2bc Bug 1291172 Add eQueryTextRectArray tests which compare with eQueryTextRect result r=smaug
eQueryTextRect is used by widget and eQueryTextRectArray is used by ContentCacheInChild.  So, matching their result guarantees that widget can get same result both in non-e10s mode and e10s mode.  So, the matching should be tested.

MozReview-Commit-ID: 6GfbyvZ9X7H

--HG--
extra : rebase_source : 12511d84cbd94b3f4edf42367a84ee45abc66d9e
2016-09-06 18:59:40 +09:00
Andrew Halberstadt
97f0fbd35d Bug 1300163 - Add support for Android mochitests to interactive loaners, r=armenzg
This will allow developers to request a loaner for an Android mochitest job and then use
|mach mochitest| to run tests.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : fba9adb6e2d50cc9ac27532bc91b5eb1d909d874
2016-09-02 14:43:53 -04:00
Andrew Halberstadt
4fecf32869 Bug 1300163 - Reuse the 'e10s' value from the mozharness config on interactive loaners, r=armenzg
I noticed that if you request a loaner for a non-e10s job then run mach, it will be run with e10s
enabled. The mach command should accurately reflect the type of job that got requested. This patch
grabs the 'e10s' argument from the mozharness localconfig.json and uses that.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : 6f7b45146bb7f3431c242d92b4206d41f7217c03
2016-09-02 14:42:36 -04:00
Andrew Halberstadt
fb05814e0d Bug 1300163 - Lazy load certain mach context attributes using the 'key' mechanism, r=armenzg
You can set attributes on a mach context by using the 'key' argument to the context_handler. Basically,
whatever gets returned by the handler when <key> is passed in, will get set (i.e cached) on the context
object for fast retrieval next time. This is a way to lazy load these attributes.

Previously I was setting functions like 'find_firefox()' on the context object, and then having the
mach_commands call that directly. But this way is much cleaner.

Now, the loaded 'mozharness_config' can be stored as an attribute on the context. Also 'find_firefox()'
is now an attribute called 'firefox_bin'.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : af5e32e05a29b8e91d4cd0005689baa8079ec137
2016-09-02 14:35:14 -04:00
Andrew Halberstadt
feb9ec8140 Bug 1300163 - Fix hidden tracebacks in mochitest runtests.py, r=armenzg
I had a mistake in my code that resulted in an exception being thrown when starting the
mochitest servers. However, the log just showed a timeout. It was very confusing.

After some digging, I found that there's a large try/finally block (with no except) in
runtests.py. The exception wasn't being displayed because of the finally block. This
try/finally block had an inner try/except/finally that wrapped part of the code. This
patch simply removes that inner block and dedents the 'except' clause to attach to the
original try/finally.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : 9d55b967c8384498a4d104730a7bb91c4885bbea
2016-09-02 14:39:34 -04:00
Andrew Halberstadt
0d41359cf5 Bug 1300163 - Add a --adbpath argument to mochitest Android to allow explicitly setting the adb binary, r=gbrown
In mozdevice, it's possible to pass in the path to the adb binary (rather than requiring it to be on the path). The
mochitest android options don't provide any means to set this however (even though the b2g options do). This patch
adds that option in.

This will be used by the mach environment on interactive loaners.

MozReview-Commit-ID: 4lsKGpizfH7

--HG--
extra : rebase_source : 07ad43c8fff3eb83a1eaab9ad0532cd85c4532c7
2016-09-02 14:26:16 -04:00
Andrew McCreight
c177086383 Bug 1299871 - Increase leak threshold on OS X to paper over increased layers leak. r=erahm
MozReview-Commit-ID: 2QQa5uxmO5J

--HG--
extra : rebase_source : 9de6443d39bc472ca7c1c0087ce92eb494d663a1
2016-09-01 11:04:09 -07:00
Ryan VanderMeulen
37b200a0c5 Merge autoland to m-c. a=merge 2016-09-01 12:11:51 -04:00
Rob Wu
105b7c01d0 Bug 1298716 - Serialize extension in ExtensionTestUtils.loadExtension r=billm
MozReview-Commit-ID: BUK2QnMmXp7

--HG--
extra : rebase_source : f98d167db8067a59666c1b260e2c031fb6fbbbae
2016-08-28 16:35:00 -07:00
Aryeh Gregor
f3e54042f1 Bug 1271115 - Merge ChromeUtils.js into EventUtils.js; r=jmaher
This allows plain mochitests to use the functions as well, which is
necessary to get them to work with e10s.

MozReview-Commit-ID: J4um2mliJcZ
2016-08-25 16:57:09 +03:00
Shane Caraveo
4987c70c34 Bug 1289549 P2 socialapi remove sidebar and chat, r=florian
MozReview-Commit-ID: JzSDh41IPBu
2016-08-23 15:24:06 -07:00
Stone Shih
4c774b11b2 Bug 1292070 - Part 2: Add API to synthesize mouse event with buttons. f=bevistseng, r=smaug
--HG--
extra : rebase_source : c676026e30c857b2a19854285f8bb40c47c58267
extra : histedit_source : c1ee981e9ab821a51d3abb96b1d2d334ffe8e0d2
2016-08-18 11:58:48 +08:00
Igor
175543fda8 Bug 1293384 - Part 2: Rename Snprintf.h header to Sprintf.h. r=froydnj 2016-08-14 23:43:21 -07:00
Igor
a57972337d Bug 1293384 - Part 1: Rename snprintf_literal to SprintfLiteral. r=froydnj 2016-08-14 23:44:00 -07:00
Rob Wood
969dc17e41 Bug 1281351 - Disable intermittent failure on win 7 e10s debug, r=enndeakin+6102
MozReview-Commit-ID: 10qFWKQFaYv

--HG--
extra : rebase_source : 1b4268ce47524992cb53c511d58b7b9def823548
2016-08-10 14:31:34 -04:00
Andrew Halberstadt
e0d54aa2ed Bug 1294099 - Fix 'Namespace object has no attribute 'flavor'' error when running |mach mochitest|, r=jgriffin
MozReview-Commit-ID: Du2fvVCNeHU

--HG--
extra : rebase_source : 75b16326d4529a0ad34cf4a382303c7e9c06611f
2016-08-10 11:50:29 -04:00
Andrew Swan
b904b2d437 Bug 1286908 Remove id allocation from SpecialPowers loadExtension() r=kmag
Prior to this change, SpecialPowers used the extension id to identiy
extension instances in inter-process messaging.  This required that
an id be allocated from the content process side when loadExtension()
was called, but that made it impossible to test code that exercises the
code path in the AddonManager that allocates ids for extensions that do
not include an id in the manifest (it also made the loadExtension() api
clunky).

With this change, SpecialPowers allocates an internal identifier for
messaging, but this identifier is separate from extension ids.
Confusingly, we still store the actual extension id in an id property
on the object returned by loadExtension(), but there are enough tests
that reference this that it would be unnecessarily disruptive to get
rid of it so it stays for now...

MozReview-Commit-ID: G6xk1mBJJL8

--HG--
extra : rebase_source : a0891e5ba308972c35813f55274badf9edde62f7
extra : source : e8818ef3c28489e196d1db92cabf224861b693c9
2016-08-02 16:04:37 -07:00
Andrew Halberstadt
795728d89d Bug 1293295 - Replace all mochitest 'flavor' options with a single --flavor argument, r=jmaher
This accomplishes three things:

1) Easier to use CLI when running without the benefit of testing/mochitest/mach_commands.py
2) Guarantees these arguments are mutually exclusive
3) Simplifies a bunch of logic in the test harness

The primary motivation for this change is to slightly improve the UX when running mochitest
from a taskcluster interactive loaner. However, this is more of a bandaid solution that was
easy to implement before the proper fix in bug 1293259 can be landed.

MozReview-Commit-ID: IeHBGrJ0Sji

--HG--
extra : rebase_source : ba1b7e437881e363fe0051dccd3d732221311c59
2016-08-08 11:48:49 -04:00
Andrew Halberstadt
16c7acfe05 Bug 1292660 - Fix |mach mochitest| kwargs['app'] is None error on android, r=gbrown
This fixes a regression from bug 1288827. It happened because I moved the logic that finds
the application path a little later on in the test harness. But there was an instance where
it was being used in the android mach command before that point.

As it turned out, we don't really *need* that value there. This patch grabs the same value
from build_obj.substs which is already an argument to the function.

MozReview-Commit-ID: 3IsI4VzEIIF

--HG--
extra : rebase_source : ceb718b265c7886b831e0378436baebf2b4e7598
2016-08-05 16:40:08 -04:00
Mike Conley
cb599d4f08 Bug 1292239 - Add utility to BrowserTestUtils to wait for load of selected browser in a brand new window. r=Felipe
MozReview-Commit-ID: IOChbNs8b3y

--HG--
extra : rebase_source : a778efe8b38aded85a6856a4c37c3b01ebd19894
2016-08-04 15:48:31 -04:00
Neil Deakin
50df5bfcae Bug 1291188, remove unneeded cpow part of test as it was causing failures on some machines, r=felipe 2016-08-03 13:04:39 -04:00
Thomas Wisniewski
30e540bdd6 Bug 1285036 - Part 7: Change SetRequestHeader() and related header code to follow the spec more closely. r=baku 2016-08-02 12:50:10 -04:00
Stone Shih
f8f5ef1c1a Bug 1285128 - Should not generate pointer events for those synthesized events that are not dispatched to DOM. r=smaug 2016-07-07 15:28:11 +08:00
Carsten "Tomcat" Book
fc8e03f0d8 Merge mozilla-central to autoland 2016-07-30 16:49:41 +02:00
Andrew McCreight
bbdc92f231 Bug 1195777 - When LSan detects leaks, tell the user about the report_objects option. r=chmanchester
MozReview-Commit-ID: KWNye8GdEKv
2016-07-29 16:08:06 -07:00
Carsten "Tomcat" Book
1e0260eddf Merge mozilla-central to fx-team 2016-07-28 17:44:58 +02:00
Michael Comella
39ed656f3a Bug 1261494 - Reduce telemetry init delay to 1 second for integration testing. r=gbrown
My one concern is that this change could increase the amount of processing
time spent on telemetry initialization, causing the runtime of the robocop
test suite to increase. Checking my try push [1] against other try pushes,
it doesn't seem to have made a significant difference, but the change
in runtime between pushes can be large (e.g. > 5min) so it's hard to
tell.

[1]: https://treeherder.mozilla.org/#/jobs?repo=try&revision=2017843315fe&selectedJob=24641374

MozReview-Commit-ID: LeeGgNEp74h

--HG--
extra : rebase_source : 21b01fa8a5357de19046fc946b4098cfd0f7b823
extra : amend_source : 457f229e6b92b8834ddd6dfef5837753f47d570b
2016-07-27 08:05:12 -07:00
Dan Minor
439f1b4394 Bug 1289123: Remove test_zmedia_cleanup.html from Autophone WebRTC job manifest; r=drno
MozReview-Commit-ID: CwC1Kr3mU9Q

--HG--
extra : rebase_source : 895780ea63df7e89a2ad16ea736a73e84d2ae936
2016-07-25 09:49:05 -04:00
Andrew McCreight
916e425911 Bug 1287877 - Fail when LeakSanitizer encounters a fatal error. r=jgriffin 2016-07-27 10:11:40 -07:00
Fabrice Desré
7846da76d6 Bug 1287107 - Making transition alive with gaia as chrome:// r=bholley,fabrice
MozReview-Commit-ID: 9uVUrmuVFXQ

--HG--
extra : rebase_source : 20f6f0235667530c21aca4889b5d33e39c2d1a48
2016-03-03 09:58:47 -08:00
Carsten "Tomcat" Book
c7846e126c Backed out changeset 16aa7041c009 (bug 1287107) for causing xpcshell and mac tests 2016-07-22 11:30:23 +02:00
Fabrice Desré
f5b619fb28 Bug 1287107 - Making transition alive with gaia as chrome:// r=bholley,fabrice
MozReview-Commit-ID: 9uVUrmuVFXQ

--HG--
extra : rebase_source : d0c19fcda5c72ecdce3b0d0bbbafa5a7954d7a4c
2016-03-03 09:58:47 -08:00
Tom Tromey
5538d692d3 Bug 1286877 - do not set c-basic-offset for python-mode; r=gps
This removes the unnecessary setting of c-basic-offset from all
python-mode files.

This was automatically generated using

    perl -pi -e 's/; *c-basic-offset: *[0-9]+//'

... on the affected files.

The bulk of these files are moz.build files but there a few others as
well.

MozReview-Commit-ID: 2pPf3DEiZqx

--HG--
extra : rebase_source : 0a7dcac80b924174a2c429b093791148ea6ac204
2016-07-14 10:16:42 -06:00
Carsten "Tomcat" Book
8428cd56e3 merge mozilla-inbound to mozilla-central a=merge 2016-07-20 11:20:15 +02:00
David Keeler
56d2f86c86 bug 1284946 - remove usages-related APIs from nsIX509Cert r=Cykesiopka,Felipe,jcj
nsIX509Cert provided the APIs getUsagesArray, requestUsagesArrayAsync, and
getUsagesString. These APIs were problematic in that the synchronous ones would
cause certificate verification to block the main thread and the asynchronous one
was needlessly indirect in its definition (it made use of two additional
special-case xpidl types) and needlessly complex in its implementation (it
required nsNSSComponent to manually manage a background thread without the aid
of recent improvements in that area (e.g. CryptoTask)). Furthermore, these APIs
would return string descriptions of the usages the certificate in question had
been verified for rather than using more concrete identifiers or values. This
paradigm is usable but imprecise. The new nsIX509CertDB API
asyncVerifyCertAtTime is much more expressive, enforces off-main-thread
computation, and makes use of CryptoTask for a simple implementation. Using this
API, previous uses of the old nsIX509Cert APIs can be replaced. As an additional
benefit, this removes a ton of obsolete C++ code.

MozReview-Commit-ID: KXVTcjAKehu

--HG--
extra : rebase_source : 50c51f73b2b61ed0ad4dc9702cc5df470ce998bc
2016-07-06 14:45:36 -07:00
J. Ryan Stinnett
fb7f435c7f Bug 1285936 - Make import-*-globals rules into errors for automation. r=me
MozReview-Commit-ID: IrjMIH3fl5K
2016-07-19 12:51:47 -05:00
Andrew Halberstadt
e920337e70 Bug 1288827 - Allow running mochitest from test-package without specifying --appname, r=armenzg
Because it is now possible for options.app to get set after 'parse_args' time, we need to make sure
the argument validation happens later. To accomplish this we pass in the parser instance to
'run_test_harness' and do parser.validate there. This unfortunately requires some minor uses of
global to accomplish easily due to how mach handles parsers.

MozReview-Commit-ID: s3Js1aZlSE

--HG--
extra : rebase_source : 3a94debda3dbed839074094707cadf32e7f7337c
2016-07-20 11:13:30 -04:00
Geoff Brown
058d5be563 Bug 1285663 - Optimize profile pushes and do not chmod files on /sdcard; r=bc 2016-07-14 10:36:31 -06:00
Geoff Brown
ec5683cac0 Bug 1286697 - Initialize mochitest urlOpts to avoid duplicate options on subsequent runs; r=jmaher 2016-07-14 10:36:30 -06:00
Thomas Zimmermann
a610242b37 Bug 1280600: Merge Android and b2g branches in build scripts where possible, r=glandium
B2g now has 'OS_TARGET' set to 'Android'. This patch merges Android
and Gonk branches in the build scripts where possible.

MozReview-Commit-ID: 9hKA0Gc62Xc
2016-07-11 15:16:56 +02:00
Masatoshi Kimura
e4ae8f8bff Bug 1282038 - Allow allowfullscreen for rewritten YouTube Flash embeds. r=qdot,jst
MozReview-Commit-ID: I8y0gMA5BxE

--HG--
rename : dom/base/test/test_youtube_flash_embed.html => dom/base/test/file_youtube_flash_embed.html
2016-06-24 19:12:53 +09:00
Bob Clary
d111f0ca3f Bug 1281511 - Add getAndroidSdk() to Mochitest SimpleTest.js, r=gbrown, snorp. 2016-06-28 11:14:45 -07:00
Masayuki Nakano
60bb642e47 Bug 1275528 part.1 Support a way to query content relative to insertion point r=smaug
Native IME handler may want to query content relative to start of selection (or composition if there is it). Additionally, in e10s mode, insertion point in actual content may be different from the cache in parent.  Therefore, in some cases, it does make sense to query content with offset relative to start of selection or composition.

This patch implements it simply and only in non-e10s mode.

Additionally, this fixes a bug of nsQueryContentEventResult::GetOffset() which hasn't been accepted its calls even if the event message is valid (eQueryTextContent, eQueryTextRect and eQueryCaretRect).

MozReview-Commit-ID: 34I7vyTUAgO

--HG--
extra : rebase_source : d79ba0dc3e002f7691495ee1ff8bdb3854d8f6fe
2016-06-16 14:10:49 +09:00
Blake Kaplan
5688cefb7f Bug 1163418 - Remove use of CPOWs in safebrowsing tests. r=felipe 2016-06-21 13:46:02 -07:00
Masayuki Nakano
d5bf222ecd Bug 1275914 part.7 Add automated tests to query IME selections r=smaug
MozReview-Commit-ID: GwBU6Evcpfa

--HG--
extra : rebase_source : d6a54b3ab227fbae75e723b277f0ff1e95d44044
2016-06-20 16:31:29 +09:00
Andrew Swan
cde8becf24 Bug 1270357 Add isDeeply to mochitest eslintrc r=kmag
MozReview-Commit-ID: 6TsspFtPiuZ

--HG--
extra : rebase_source : 620297cd519fc394ac2877f2c5e5b2018791aa56
2016-05-31 16:16:37 -07:00
Phil Ringnalda
8d1174f9a3 Back out 3 changesets (bug 1270357) for test_chrome_ext_native_messaging.html timeouts
CLOSED TREE

Backed out changeset 2e602689376d (bug 1270357)
Backed out changeset e1979d928c7c (bug 1270357)
Backed out changeset e0f9b54febc8 (bug 1270357)
2016-06-08 20:35:32 -07:00