Граф коммитов

1954 Коммитов

Автор SHA1 Сообщение Дата
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
Andreas Tolfsen 1d60861616 Bug 1302707 - Replace uses of Marionette.timeouts with set_page_load_timeout in tests; r=automatedtester
MozReview-Commit-ID: CrG4XdGjw5E

--HG--
extra : rebase_source : dff3f1391f7c70c4547f8af870a16268f6f715dc
2016-09-14 18:15:16 +01:00
Andreas Tolfsen 046f7fc75d Bug 1302707 - Correct input types for timeout function; r=automatedtester
MozReview-Commit-ID: 9472W84MTGQ

--HG--
extra : rebase_source : 0500ae57c5c5890039e7ed7d3736f42f4fdd0b0c
2016-09-14 18:14:38 +01:00
Andreas Tolfsen 656cc02f10 Bug 1302707 - Reuse Marionette.reset_timeouts in harness; r=automatedtester
MozReview-Commit-ID: HjxRViFdiRU

--HG--
extra : rebase_source : b545e7a94d942a90b508c14747b71792fd8c88b9
2016-09-14 18:13:52 +01:00
Andreas Tolfsen 0ff2cb2a90 Bug 1302707 - Add Marionette.set_page_load_timeout and adjust to new driver API; r=automatedtester
MozReview-Commit-ID: 939khISAOcU

--HG--
extra : rebase_source : e178c5b0c05f48dc571c5efa8368dd8ec91f62f3
2016-09-14 18:13:06 +01:00
Andreas Tolfsen 4adae86849 Bug 1302707 - Remove Marionette.timeouts from client; r=automatedtester
MozReview-Commit-ID: 55GvsFwLwDK

--HG--
extra : rebase_source : e371fc1de75254d669b3b740f40bbacb9a618947
2016-09-14 18:11:22 +01:00
Andreas Tolfsen e75b453f9d Bug 1302707 - Make GeckoDriver#timeouts spec compatible; r=automatedtester
MozReview-Commit-ID: 7vLVbKKuZNV

--HG--
extra : rebase_source : 89486120bad972c26db6df89fc5533036016b378
2016-09-14 18:10:22 +01:00
Andreas Tolfsen 2f680da372 Bug 1302707 - Remove GeckoDriver#setSearchTimeout; r=automatedtester
MozReview-Commit-ID: KNx1mpM1CfV

--HG--
extra : rebase_source : d720c48e42cdadc4532f5352d8ba776f1ba12a49
2016-09-14 18:09:09 +01:00
Andreas Tolfsen d91c4614bb Bug 1302707 - Remove GeckoDriver#setScriptTimeout; r=automatedtester
MozReview-Commit-ID: 3GVLpjd4LDP

--HG--
extra : rebase_source : c5a12a67ad757b58b507bc63dc5e41aa456fd6e1
2016-09-14 18:08:20 +01:00
Phil Ringnalda d1276b5b84 Backed out changeset 7dac104b94de (bug 1141483) for WinXP permaorange in test_quit_restart.py 2016-09-29 07:38:59 -07:00
Carsten "Tomcat" Book 5b45193594 merge mozilla-inbound to mozilla-central a=merge 2016-09-29 11:44:58 +02:00
Aaron Klotz 6552467db2 Bug 1296033: Re-enable test_accessibility.py and test_about_pages.py on Windows e10s; r=automatedtester
MozReview-Commit-ID: GnXD0Vr68DX
2016-09-26 18:26:15 -06:00
Henrik Skupin 27d984735c Bug 1148220 - Marionette's in_app restart has to send 'quit-application-requested' observer notification. r=automatedtester
MozReview-Commit-ID: 3IAtFFeyJWa

--HG--
extra : rebase_source : 41889aa72afc1cfcb8c3702069a805637a1d96b3
2016-09-26 15:25:05 +02:00
Henrik Skupin e416a05bb8 Bug 1141483 - After a restart Marionette doesn't restore the previous context. r=automatedtester
MozReview-Commit-ID: KCI7UZn0NeZ

--HG--
extra : rebase_source : b5f4dc2c8a91d8b2ad0f45eb77b770ebbf184b99
2016-09-26 17:59:23 +02:00
Henrik Skupin 401257b7ed Bug 1301334 - Package Marionette tests via moz.build entries r=gps
Move packaging for Marionette from make to test_archiver by using root manifest files.

MozReview-Commit-ID: 1cxEBYQeJ2Z
**

--HG--
extra : rebase_source : 372a407d9207bfbccbfb88c689df60b8cc1abcaf
2016-09-20 18:05:43 +02:00
Henrik Skupin c2299ca0e0 Bug 1303497 - Fix failure in test_window_management.py for new window checks. r=maja_zf
MozReview-Commit-ID: DbkRrRQvlTb

--HG--
extra : rebase_source : 441b5681635f8b3d2360e475cce2ce9414c4c0ef
2016-09-22 18:22:08 +02:00
CuriousLearner ad54592778 Bug 1298800 - Add support for callbacks to restart() and quit() methods of Marionette; r=whimboo
MozReview-Commit-ID: CIiGOCkQs48

--HG--
extra : rebase_source : 23e578a851ab74a0ea25cf76c274e9e7849e0adc
2016-09-21 21:53:12 +05:30
bhuvi96 f45db6ab53 Bug 1299207 - Remove unused imports in test_click.py; r=maja_zf
MozReview-Commit-ID: 9dDvAcsbZnS

--HG--
extra : rebase_source : 5a807ab46ed0ba28af22c2546e160abbb9e2d566
2016-09-15 21:51:21 +05:30
Henrik Skupin 857c22b6d5 Bug 1290806 - Fix TestSwitchWindow.test_windows by waiting for the newly opened window. r=maja_zf
MozReview-Commit-ID: 750cIdl27CZ

--HG--
extra : rebase_source : b165686e528cec1f2ea92225ba50198f0c7aa065
2016-09-08 18:00:36 +02:00
Henrik Skupin a04adf5ca3 Bug 1156427 - Fix test_set_location_through_execute_script by waiting for the page to be loaded. r=ato,automatedtester
--HG--
extra : rebase_source : 2aa659a7c1b796502b09e44356bf70d062cebd35
2016-09-08 15:32:59 +02:00
Phil Ringnalda 2dda3b0b13 Backed out changeset 10322a5fc3e7 (bug 1156427) for failures in test_navigation.py TestNavigate.test_should_throw_a_timeoutexception_when_loading_page
CLOSED TREE
2016-09-13 18:55:04 -07:00
Andreas Tolfsen fda7568661 Bug 1302503 - Allow quitApplication to be called without flags; r=automatedtester
MozReview-Commit-ID: 5ctSN5vZbSQ

--HG--
extra : rebase_source : d912430688e31836ba8397e372e95803c238deda
2016-09-13 19:20:39 +01:00
Henrik Skupin 42186d2ae2 Bug 1156427 - Fix test_set_location_through_execute_script by waiting for the page to be loaded. r=automatedtester
--HG--
extra : rebase_source : 718d240cf00ff5e7293fd649ee109a7b9590d3d7
2016-09-08 15:32:59 +02:00
Henrik Skupin a5af10f3a9 Bug 1301661 - Completely remove default value of 360s for socket_timeout r=maja_zf
MozReview-Commit-ID: 2xaWEAgSsTC

--HG--
extra : rebase_source : 4c9e806ba2d6513cfe755872c1b50741a1c7ff59
2016-09-12 13:03:06 +02:00
Milan Sreckovic 16413c625c Bug 1285085: Testing for a windows 4x larger than the screen in each dimension should be enough for this test. r=whimboo
MozReview-Commit-ID: 4r6N0Xkrm6j

--HG--
extra : rebase_source : c8f2c7b560c0b75c9ecb748c4ff4160259730f89
2016-09-09 12:42:34 -04:00
Henrik Skupin fadd103e03 Bug 1301153 - Split-up marionette_test module into distinct modules. r=maja_zf
marionette_test.py is a bloated module which contains everything around the Marionette testcase classes.
We should split this up into distinct modules, so each new module covers specific code. The two new modules
introduced are errors, and decorators. This split would also be aligned to the structure of the driver.

To not loose backward compatibility we have to keep the import from marionette_test. It means the new
modules have to live in a sub folder named like that.

MozReview-Commit-ID: DQg55M258ST

--HG--
extra : rebase_source : 2c4150e56b4489518bd1c87b4c3f7cc25e0c5133
2016-09-07 22:58:36 +02:00
Henrik Skupin 2a5371b154 Bug 1296175 - Remove broken timout code when pushing new permissions. r=ato
Because execute_async_script() has it's own timeout value, there shouldn't be another timeout
check inside the script. Even with this check we return immediately now, which can cause test
failures if setting the permission is delayed.

MozReview-Commit-ID: Aqsbfc6Ayy6

--HG--
extra : rebase_source : c1107a48644129d9e55ed07e049a60ad809d2ed0
2016-09-05 14:33:18 +02:00
Anjana Vakil 2876869ab9 Bug 1284238 - Test that manifest tests are filtered with correct settings; r=maja_zf
Add tests to ensure that the arguments passed to the call to
`manifest.active_tests` from within `runner.add_test` are correct,
based on the runner's settings for e.g. e10s and test tags.
Add helper function for setup for these tests to avoid duplication.


MozReview-Commit-ID: CsaDm7cSyZf

--HG--
extra : rebase_source : fe3687aea4d342962074bfef7f5c43385710f8fa
2016-09-08 14:20:28 +02:00
Anjana Vakil 20bb44fe7d Bug 1284238 - Split manifest fixture into non/parametrized versions; r=maja_zf
Move the ManifestFixture class out of the `manifest_fixture` function,
and rename that function to `manifest_with_tests`. Create a new,
simpler manifest fixture without parametrization, called `manifest`.

This allows us to use the mocking-out done in the ManifestFixture class
in tests where we don't actually need the parametrization of the
`active_tests` attribute.

MozReview-Commit-ID: xuBn4QxApf

--HG--
extra : rebase_source : c570086a6ec4556fc634f7e18f998a5fca042a01
2016-09-08 13:45:55 +02:00
Wes Kocher 4c4ea87ae0 Backed out 2 changesets (bug 1283919) for being the wrong way to fix this a=backout
Backed out changeset a328778db08d (bug 1283919)
Backed out changeset 7e1f25f59298 (bug 1283919)
2016-09-07 14:22:21 -07:00
Henrik Skupin a5a7c13571 Bug 1300776 - Add testing/marionette/harness to flake8 linter (except mixins, tests) . r=ahal
MozReview-Commit-ID: F9Hfze9zvzE

--HG--
extra : rebase_source : ddd2e63bf13967da1d66d49cbdd189b68e0e7402
2016-09-06 15:46:08 +02: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
Eric Rahm 6a06f03938 Bug 1299587 - Handle if marionette tests can't focus mainFrame in tearDown. r=automatedtester
It's possible the mainFrame has already been closed in which case it can
become a dead wrapper. Just gracefully handle failure in this situation.
2016-09-01 13:30:24 -07:00
Ryan VanderMeulen 3611a7607d Merge inbound to m-c. a=merge 2016-08-31 22:33:17 -04:00
Kartikaya Gupta 114ff898bb Bug 1299488 - Remove TabParent::InjectTouchEvent as it is unused but error-prone. r=botond
MozReview-Commit-ID: EVBRK70veT1
2016-08-31 16:54:23 -04:00
Henrik Skupin 2222cce311 Bug 1284457 - Reduce default socket timeout for Marionette to 60s r=ato
MozReview-Commit-ID: DXASYzQD4sA

--HG--
extra : rebase_source : a9fcc3cc93a9bc3b502e4dd5e211e5be89354d34
2016-08-15 16:55:02 +02:00