Commit Graph

1990 Commits

Author SHA1 Message Date
Dave Townsend
6365baa692 Bug 1315402: Make toolkit/mozapps/update pass no-undef. r=jaws
This is mostly using the import-globals-from rule to pull in globals when
the subscript loader is used. For a couple of files I've turned off no-undef
altogether, these are files that are loaded by the subscript loader and depend
on globals from the parent.

MozReview-Commit-ID: 2ZzgpCQTTuu

--HG--
extra : rebase_source : 6d2f20111ae27858811bd19db794dc9fb29183d0
2016-11-04 17:03:01 -07:00
Henrik Skupin
339324700f Bug 1299216 - Wait for process exit first before checking for crashes. r=automatedtester
MozReview-Commit-ID: 8U48dNHoFmi

--HG--
extra : rebase_source : 263ef1c801f6020fabacb36fdfbbed0690396ae1
2016-11-01 10:48:25 +01:00
Henrik Skupin
d4392e6af8 Bug 1299216 - Remove always parameter from do_process_check decorator. r=automatedtester
Removing the always parameter which is kinda useless here. Originally it was added to call
check_for_crash() in case of a MarionetteException happening. But such an exception is never
thrown in case of crashes. It will always be an IOError. So lets get it removed and ensure
we call check_for_crashes() in all the cases, and can feed the crash status into the call to
handle_socket_failure().

MozReview-Commit-ID: JeK3X7voocD

--HG--
extra : rebase_source : 0b6ecf1e59c0e4e830b3bc3df57dda0af842a176
2016-09-21 12:57:50 +02:00
Henrik Skupin
590cdec86a Bug 1299216 - Enhance handling of crashes in Marionette. r=automatedtester
There are currently various issues in Marionette which cause extra and unnecessary logging output
in case of chrome and content crashes. Especially the latter ones are not easy to discover. This
patch makes the following improvements:

* Correctly mark process crashes as IOError test failure. Until now we have only used the "Process
  has been closed" message, which does not correctly cover it, especially not if the process shutdown without
  a crash.

* Allow changing the socket_timeout for the socket client. This was mainly necessary to allow unit tests
  to run faster.

* Collect the number of crashes so it's known even later if the process has been crashed during the
  current session. It also fixes the case when check_for_crash() gets called twice, and for the
  second time False is returned which will trigger an invalid code path.

* Reduce code duplication when destroying a session.

* Adding a unit test to verify the correct behavior for chrome and content crashes.

MozReview-Commit-ID: KdUQuJqFRli

--HG--
extra : rebase_source : a2a0b0269ff84679acc6698c72ec8dc45b1dfe52
2016-11-02 13:49:32 +01:00
Henrik Skupin
0baa0a9c53 Bug 1299216 - Make use of MOZ_CRASHREPORTER_SHUTDOWN environment variable in Marionette. r=automatedtester
MozReview-Commit-ID: 88NhfqMGPXF

--HG--
extra : rebase_source : ee020f00374ecc22b42cdca04290d293da284976
2016-10-26 12:43:42 +02:00
Henrik Skupin
fb795f0be0 Bug 1299216 - Don't care about socket not connected for sock.shutdown() call. r=automatedtester
MozReview-Commit-ID: 9DXLY66KqTg

--HG--
extra : rebase_source : 79e5151746087ea08a484aceee2b69f33389cb25
2016-09-21 16:04:49 +02:00
Maja Frydrychowicz
52eb7be3cd Bug 1315522 - Marionette command-line option --addon does not work; r=automatedtester
MozReview-Commit-ID: 90osifz30nl

--HG--
extra : rebase_source : ab9ef7f9981999b1a174332f92a0107a17432e05
2016-11-07 11:17:41 -05:00
Yura Zenevich
1d865a477d Bug 1312816 - Preemptively start a11y in chrome when raisesAccessibilityExceptions marionette capability is set. r=ato
MozReview-Commit-ID: KshEWHvz8SD

--HG--
extra : rebase_source : 88e7d86bbe525ea635f22bd03b6b501ad3e6e9b0
2016-11-07 12:15:08 -05:00
Phil Ringnalda
c9fdc270b6 Merge m-c to autoland
--HG--
rename : dom/media/webaudio/compiledtest/TestAudioEventTimeline.cpp => dom/media/webaudio/gtest/TestAudioEventTimeline.cpp
2016-11-03 20:02:24 -07:00
Phil Ringnalda
0f32b67e2d Merge m-i to m-c, a=merge
MozReview-Commit-ID: Hm1RxN6OaoZ
2016-11-03 19:32:48 -07:00
Gabor Krizsanits
fccad1c205 Bug 1301340 - part4: Force single content process for failing tests. r=mrbkap 2016-11-03 19:28:09 +01:00
Michelangelo De Simone
80af1b3196 Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst
MozReview-Commit-ID: Az4PTYFUKW8

--HG--
extra : rebase_source : 4c31210ec079a1d2f18deca4e3e1d6bdbc797f76
2016-11-03 13:55:36 -07:00
Henrik Skupin
28e9589017 Bug 1259055 - Use window management class for handling of new windows. r=maja_zf
MozReview-Commit-ID: 4dwHLFEmr4k

--HG--
extra : rebase_source : a7ec686258a6d8505cbcf77392c455a981561535
2016-11-03 17:46:32 +01:00
Henrik Skupin
dc15cf6b13 Bug 1259055 - Use window management class for handling of new tabs. r=maja_zf
MozReview-Commit-ID: Le8ltn1IbU4

--HG--
extra : rebase_source : 5012f6e76640c0d3cf7ab8408002282d5afa872a
2016-11-03 17:58:41 +01:00
Henrik Skupin
1d0f7ed303 Bug 1259055 - Update Marionette unit tests to use correct handles for chrome windows. r=maja_zf
MozReview-Commit-ID: 5q8Vt8M6PK3

--HG--
extra : rebase_source : 768bd768899ea89b4a80308d43bc0e1c7773b576
2016-10-19 10:45:23 +02:00
Henrik Skupin
2b0c1a59c5 Bug 1309318 - Make the httpd server available to TestCase class to allow custom handlers. r=maja_zf
MozReview-Commit-ID: HpazIlQG1Yq

--HG--
extra : rebase_source : e22c23d5c79f28e7f85b4cc97e4ddd76f17c83af
2016-11-01 13:06:39 +01:00
Phil Ringnalda
16522e6c40 Backed out changeset 27695ca9f8cd (bug 1310864) for failures in test_navigator_resolve_identity.html, test_bug707564.html, and test_dom_xrays.html 2016-10-31 19:39:06 -07:00
Michelangelo De Simone
8b355547fc Bug 1310864 - Remove DOM/(contacts, mobileconnection, icc) and related code. r=jst
MozReview-Commit-ID: 2tWZc6hMtk5

--HG--
extra : rebase_source : 609688dd1fa430827c18e1cd0095c07fb17fce67
2016-10-28 17:53:58 -07:00
Michelangelo De Simone
6314d37360 Bug 1310020 - Remove DOM/bluetooth and related code. r=jst
MozReview-Commit-ID: IEhwzzBgb3x

--HG--
extra : rebase_source : 664e30c1d3babc71b2ef77c00e393fa767f4c159
2016-10-28 14:25:23 -07:00
Ryan VanderMeulen
a41f7d1058 Merge autoland to m-c. a=merge 2016-10-29 09:12:45 -04:00
Chris Peterson
145fdb225f Bug 1313580 - Part 1: Remove unused B2G tests for Battery API. r=baku 2016-10-28 18:41:43 -07:00
Maja Frydrychowicz
6da8812934 Bug 1303234 - Implement extracting action chain from a request; r=ato,jgraham
MozReview-Commit-ID: JxNoGZog1om

--HG--
rename : testing/marionette/action.js => testing/marionette/legacyaction.js
extra : rebase_source : 91e9b1915e18362765804e3767dfb834394a35af
2016-10-26 13:04:48 -04:00
Henrik Skupin
9e17d950d7 Bug 1141483 - After a restart Marionette doesn't restore the previous context. r=automatedtester
MozReview-Commit-ID: KCI7UZn0NeZ

--HG--
extra : rebase_source : 1d743d69c1ab1e4ce3c2f90e474b5e27f9043814
2016-10-24 17:38:30 +02:00
Michelangelo De Simone
144c0a5d23 Bug 1309719 - Remove DOM/telephony and related code. r=ehsan+251051
MozReview-Commit-ID: Gv3vnyH4Csi

--HG--
extra : rebase_source : 6267f92bc9104bace982297474dc978a06dff5ba
2016-10-12 15:19:09 -07:00
Ryan VanderMeulen
6d6cf1f8da Bug 1273758 - Re-enable test_mouse_action.py on Win7.
--HG--
extra : rebase_source : 86e824a5cfdb0a34f0aacb5217ff2eb472c7c8c1
2016-10-23 21:33:45 -04:00
Michelangelo De Simone
8641036d15 Bug 1310859 - Remove DOM/nfc and related code. r=jst
MozReview-Commit-ID: FiS7uGytipN

--HG--
extra : rebase_source : cd9be62d334568b4abd850398467bce4c4eb1544
2016-10-18 15:16:56 -07:00
Michelangelo De Simone
07411b2cc6 Bug 1310027 - Remove DOM/mobilemessage and related code. r=Ehsan
MozReview-Commit-ID: ENmSuOCdTnA

--HG--
extra : rebase_source : a178eee07034fb2aa1415b64bec1946230fd1c5e
2016-10-17 17:26:51 -07:00
Henrik Skupin
ae2f7c64fc Bug 1311676 - Allow MRO for Marionette testcase classes. r=maja_zf
MozReview-Commit-ID: KpxwIzFucSF

--HG--
extra : rebase_source : d59d395d33c8ce6cdbc55c3fd63f28d47bd16256
2016-10-20 14:47:51 +02:00
Andreas Tolfsen
f48f8ec456 Bug 1307127 - Pass along pageTimeout when polling for ready state from chrome; r=automatedtester
The page loading timeout is not included in the message sent to
Marionette:pollForReadyState from chrome after a remoteness change occurs.
The call is appended to the pending commands and re-issued/flushed when
Marionette:listenersAttached fires after a remoteness change.

MozReview-Commit-ID: 4UMD4x9ugMA

--HG--
extra : rebase_source : e9b0452c0d58fd10e6a3409b54d6561fdfdf4d47
2016-10-12 19:54:26 +01:00
Andreas Tolfsen
ed64617115 Bug 1309899 - Release marionette-client 3.2 and marionette-driver 2.1; r=whimboo
MozReview-Commit-ID: 5qxjxSYw1V7

--HG--
extra : rebase_source : d4080ed896d5aea1f0cf5084c0e9c84172629b60
2016-10-17 15:45:21 +01:00
Andreas Tolfsen
1a12cd5c4f Bug 1308453 - Backwards compat for old Marionette:timeouts API; r=whimboo
Since the Marionette Python client is being used for upgrade tests
it needs to remain backwards compatible with earlier Gecko versions.
Bug 1302707 changed the Marionette:timeouts API, and this patch addresses
the fallout caused by that.

When sending the new command format and it returns with an error, we try
again with the old format if the error message contained "Not a Number".
This is not ideal, but a natural consequence of poor error typing in
the past.

We can remove this workaround when Firefox 51 becomes the stable train.

MozReview-Commit-ID: JxQAuKnojPB

--HG--
extra : rebase_source : 0eeb3e51fcf73d32c29f53739e9e4e48374a5a96
2016-10-17 15:38:28 +01:00
Henrik Skupin
0c0bf0c20e Bug 1309556 - Ensure to correctly shutdown the application for quit/restart when callbacks are used. r=ato
By using a callback the usual shutdown logic from quitApplication() is not executed and as such
will create a race-condition for the client when trying to re-connect to the server. To fix that
we have to stop the server from accepting new connections until the application has been completely
shutdown.

Also delete_session() has to be called for the default in_app shutdown logic and when using a callback.

MozReview-Commit-ID: GmIM2GGwQ2P

--HG--
extra : rebase_source : 56f8ba75f9297fa4de0a143fe5c5017529d0b528
2016-10-17 13:19:19 +02:00
Henrik Skupin
bf0935bab4 Bug 1290372 - wait_for_port() has to return early if instance is not running. r=ato
In case when the instance is not running, the method would check for the port again
and again until the timeout is reached. This extra time can be spent if the process
status is checked.

MozReview-Commit-ID: C2WAWNC5CWE

--HG--
extra : rebase_source : c4077e63c19a8fdb91e4120d94051b5b51f9d9a9
2016-10-17 15:38:07 +02:00
Carsten "Tomcat" Book
0ca67120dc Backed out changeset 198c4bf0c8df (bug 1290372) for failing wpt tests 2016-10-17 14:35:02 +02:00
Henrik Skupin
d9d9880793 Bug 1290372 - _wait_for_connection() has to return early if instance is not running. r=ato
In case when the instance is not running, the method would check for the port again
and again until the timeout is reached. This extra time can be spent if the process
status is checked.

MozReview-Commit-ID: C2WAWNC5CWE

--HG--
extra : rebase_source : 2a8ab59fa60ee07b34048e95453d27aa8a2b0f3b
2016-10-17 11:51:40 +02:00
Michelangelo De Simone
42dd1f7367 Bug 1309723 - Remove DOM/voicemail and related code. r=Ehsan
MozReview-Commit-ID: JDSqQnYD6xL

--HG--
extra : rebase_source : 43008cd2eaf97d77d32a6faa9fb4854e3d1f29a8
2016-10-13 15:11:41 -07:00
Ehsan Akhgari
4c84e21df2 Bug 1261019 - Part 1: Remove support for running marionette tests as apps; r=maja_zf 2016-10-13 13:18:41 -04:00
Gijs Kruitbosch
e097591200 Bug 1274633 - remove windows 10 welcome page, r=MattN
MozReview-Commit-ID: HI8mqzRmV45

--HG--
extra : rebase_source : 56b6c7f96185327776e988dc9f04928e2820a2b4
2016-09-28 16:53:46 +01:00
Michelangelo De Simone
3e5861c1f3 Bug 1306772 - Remove DOM/cellbroadcast and related code. r=jst
MozReview-Commit-ID: EWBjamnhAyC

--HG--
extra : rebase_source : 84bc99a7fd0f9d74b5b25d3ddc295c132e51d987
2016-09-30 16:03:21 -07:00
Francesco Pischedda
827fd85132 Bug 1291687 - Ensure string formatting is using format() instead of % for all Marionette py files: r=maja_zf
MozReview-Commit-ID: LdB3uvuqva0

--HG--
extra : rebase_source : 7a8be8310cbc1c6a9fec3df6f25e34599a6a1727
2016-09-28 21:39:00 +02:00
Andreas Tolfsen
4fb36571d9 Bug 1282833 - Add out of bounds type checks to Set Window Position; r=automatedtester
MozReview-Commit-ID: 3nx8qhdBOIZ

--HG--
extra : rebase_source : 671409dc75efd18b123184dafede8a40e82f9113
2016-10-06 13:13:58 +01:00
Andreas Tolfsen
e660c5df5d Bug 1282833 - Match window position tests to specification; r=automatedtester
MozReview-Commit-ID: 6Si6btmDaxw

--HG--
extra : rebase_source : 2b94bdd6c864d437017eb5677d6a206a6ff3f5f0
2016-10-06 13:11:56 +01:00
Andreas Tolfsen
b6b0b6accb Bug 1282833 - Return position from Set Window Position; r=automatedtester
MozReview-Commit-ID: C8R9zAbJXsY

--HG--
extra : rebase_source : 9b8867e68242e9b876382aabd879cb9dbafe2db5
2016-10-06 13:11:31 +01:00
Andreas Tolfsen
1a4c5b1588 Bug 1282833 - Make Set Window Position type checks spec compliant; r=automatedtester
parseInt accepts any value and coerces it to a number.  isNaN allows
floats, and the specification says we should only have integers.

MozReview-Commit-ID: HeZ1eA0duWe

--HG--
extra : rebase_source : b582c0afe1889e8058d32d39314694b3556c4352
2016-10-06 13:10:56 +01:00
Andreas Tolfsen
f0a8bac6ca Bug 1282833 - Correct error on unsupported Set Window Position; r=automatedtester
MozReview-Commit-ID: 81q7deqyXDS

--HG--
extra : rebase_source : c30a9fc7ad4395ea6f9f9960cb422dbf137c5870
2016-10-06 13:09:10 +01:00
Andreas Tolfsen
b4bfad9e93 Bug 1302707 - Set the default page loading- and script timeout; r=automatedtester
The WebDriver specification mandates that the page loading timeout must
be five minutes, and the script timeout 30 seconds.

MozReview-Commit-ID: E82jGXCb2ch

--HG--
extra : rebase_source : e1015cbf1cb01b7b48948592be9a022b87670118
2016-09-28 17:32:36 +01:00
Andreas Tolfsen
b2605976f0 Bug 1302707 - Fix type check to allow page loading timeout of 0; r=automatedtester
The `get` function in testing/marionette/listener.js used an evaluated
if-condition test to determine if a page timeout was given.  This would
fail if passed 0 because 0 evaluates to false in JavaScript.

This patch fixes the incorrect type check by looking at whether the
variable has been defined or not.

MozReview-Commit-ID: 39vDZRjKAFb

--HG--
extra : rebase_source : f8100e05f9b1165e20b5aaab6e89b09fd110b3d2
2016-09-27 13:07:28 +01:00
Andreas Tolfsen
a8388f63d6 Bug 1302707 - Unignore test that expects timeout error; r=automatedtester
MozReview-Commit-ID: 6QK1bcFhTHB

--HG--
extra : rebase_source : a392b2830994f8858111cfa2946e72c937a6f4c2
2016-09-26 18:15:03 +01:00
Andreas Tolfsen
72ed57b167 Bug 1302707 - Add test for Marionette:timeouts compat behaviour; r=automatedtester
The input type for the `ms` field when passing the old JSON schema that
puts Marionette into the backwards compatible behaviour, accepts string
types that are `parseInt`ed into an integer.  This change adds a test
for this.

MozReview-Commit-ID: GJ3ibit7tyG

--HG--
extra : rebase_source : f8ddc6fa46f8917afd650eeabdaf2916c5a3bc04
2016-09-26 18:10:30 +01:00
Andreas Tolfsen
ea075a7680 Bug 1302707 - Correct Marionette tests to match API changes; r=automatedtester
MozReview-Commit-ID: BXXdFbfTKi4

--HG--
extra : rebase_source : 6f75fe815f8c0079c1b4fe0f7e30b3f2460ce3d9
2016-09-14 18:15:48 +01:00