Commit Graph

13854 Commits

Author SHA1 Message Date
Andreas Tolfsen
57db3d8819 Bug 1316622 - New timeouts inteface in Marionette Python client; r=automatedtester
Introduce a new interface for managing timeouts in the Marionette
Python client.

MozReview-Commit-ID: JHojs7rWBz5

--HG--
extra : rebase_source : 388b8b3f30f07b95bf40edc57d13ffe5a7d5c502
2016-11-10 21:00:23 +00:00
Andreas Tolfsen
0db3d11874 Bug 1316622 - Move internal interface construction last; r=automatedtester
No functional changes.

MozReview-Commit-ID: 2reL23EOCVq

--HG--
extra : rebase_source : 962009138daceffe0e9132738872ec2830499ff9
2016-11-10 20:57:10 +00:00
Andreas Tolfsen
2a41f328ab Bug 1316622 - Make implicit wait timeout default to 0; r=automatedtester
The WebDriver specification mandates that the implicit wait timeout should
default to 0 (off), which in Marionette has the same effect as null.

MozReview-Commit-ID: Ca3RxO7gHv8

--HG--
extra : rebase_source : 5a804614b0bdf99c7d1241bbc06f3566f127b32f
2016-11-10 20:56:26 +00:00
Andreas Tolfsen
57445ac21f Bug 1316622 - Rename Marionette command timeouts to setTimeouts; r=automatedtester,whimboo
This renames the `Marionette:timeouts` command
to `Marionette:setTimeouts`.  It should be fine to make this
backwards incompatible change as the `Marionette.set_script_timeout`,
`Marionette.set_search_timeout`, and `Marionette.set_page_load_timeout`
commands all have existing try...except behaviour for another backwards
incompatible change in Firefox 52.

MozReview-Commit-ID: 58RrXhE2tN3

--HG--
extra : rebase_source : 67a52d6c48d5c94fdd4eb4e1120223778a83e0c2
2016-11-10 18:29:55 +00:00
Phil Ringnalda
89e92b0c3b Merge m-c to autoland 2016-11-22 21:33:35 -08:00
Nicholas Nethercote
7e1a8cf56c Bug 1315138 - gtestify storage/test/*.cpp. r=mak,erahm.
This change is mostly straightforward, except for the following.

- It removes all the printing from the do_check_* macros because gtest macros
  do appropriate printing.

- test_StatementCache.cpp needs some special gtest magic for the type
  parameterization.

- It merges the four tests in test_unlock_notify.cpp because they rely on being
  executed in order, and so aren't independent.

- storage_test_harness_tail.h is no longer necessary because gtest provides the
  test looping functionality.

- It uses #include and the preprocessor to remove the duplication between
  test_deadlock_detector.cpp and xpcom/tests/DeadlockDetector.cpp.

- It makes the test in test_service_init_background_thread.cpp a death test to
  force it to be the first storage gtest, because it fails otherwise.

- It adds code to undo the SQLite mutex hooking as necessary, so that tests
  don't interfere with each other.

- It de-virtualizes Spinner's destructor (as identified in bug 1318282).

--HG--
rename : storage/test/storage_test_harness.h => storage/test/gtest/storage_test_harness.h
rename : storage/test/test_AsXXX_helpers.cpp => storage/test/gtest/test_AsXXX_helpers.cpp
rename : storage/test/test_StatementCache.cpp => storage/test/gtest/test_StatementCache.cpp
rename : storage/test/test_asyncStatementExecution_transaction.cpp => storage/test/gtest/test_asyncStatementExecution_transaction.cpp
rename : storage/test/test_async_callbacks_with_spun_event_loops.cpp => storage/test/gtest/test_async_callbacks_with_spun_event_loops.cpp
rename : storage/test/test_binding_params.cpp => storage/test/gtest/test_binding_params.cpp
rename : storage/test/test_deadlock_detector.cpp => storage/test/gtest/test_deadlock_detector.cpp
rename : storage/test/test_file_perms.cpp => storage/test/gtest/test_file_perms.cpp
rename : storage/test/test_mutex.cpp => storage/test/gtest/test_mutex.cpp
rename : storage/test/test_service_init_background_thread.cpp => storage/test/gtest/test_service_init_background_thread.cpp
rename : storage/test/test_statement_scoper.cpp => storage/test/gtest/test_statement_scoper.cpp
rename : storage/test/test_transaction_helper.cpp => storage/test/gtest/test_transaction_helper.cpp
rename : storage/test/test_true_async.cpp => storage/test/gtest/test_true_async.cpp
rename : storage/test/test_unlock_notify.cpp => storage/test/gtest/test_unlock_notify.cpp
extra : rebase_source : dbb695c112564efa1945116be1a8435988982e74
2016-11-11 09:59:23 +11:00
Daniel Holbert
a4b633bdc7 Bug 1319458: Mark <body> as display:none during pageload of talos glterrain test. r=jmaher
MozReview-Commit-ID: LdUVInFYrDn
2016-11-22 13:13:45 -08:00
Geoff Brown
b752d59e3d Bug 1315749 - Run mochitest-chrome on Android x86; r=jmaher 2016-11-22 13:49:46 -07:00
elluls
393845e931 Bug 1302774: rename cross-opt to cross-opt-st-an; r=dustin
MozReview-Commit-ID: 4U6kJiaZCGa

--HG--
rename : testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_opt.py => testing/mozharness/configs/builds/releng_sub_mac_configs/64_cross_opt_st_an.py
extra : rebase_source : 2d68f8762a5ae62b6178f764603fa470aa3b89a7
2016-11-22 15:45:33 +00:00
Neerja Pancholi
9435e5a0fa Bug 1318530 - Add new test 'tsvg_static' to talos.json r=jmaher
MozReview-Commit-ID: 3ngnHv99CPP

--HG--
extra : rebase_source : a43e46618a31615627502a0297647d35f4deb0c0
2016-11-18 16:33:03 -08:00
Neerja Pancholi
13dbcfdc35 Bug 1318530 - Add boilerplate code to test.py to enable new test suite 'tsvg_static'. r=jmaher
MozReview-Commit-ID: 2X194dSromV

--HG--
extra : rebase_source : 8a6310969e1431629f1ac7e5a33a5e7a0bb13e57
2016-11-17 17:22:08 -08:00
Neerja Pancholi
109849cf85 Bug 1318530 - Split talos test suite 'svgx' by moving all static tests to new suite 'svg_static'. r=jmaher
MozReview-Commit-ID: LQAduvQE4v6

--HG--
rename : testing/talos/talos/tests/svgx/composite-scale-opacity.svg => testing/talos/talos/tests/svg_static/composite-scale-opacity.svg
rename : testing/talos/talos/tests/svgx/composite-scale-rotate-opacity.svg => testing/talos/talos/tests/svg_static/composite-scale-rotate-opacity.svg
rename : testing/talos/talos/tests/svgx/composite-scale-rotate.svg => testing/talos/talos/tests/svg_static/composite-scale-rotate.svg
rename : testing/talos/talos/tests/svgx/composite-scale.svg => testing/talos/talos/tests/svg_static/composite-scale.svg
rename : testing/talos/talos/tests/svgx/gearflowers.svg => testing/talos/talos/tests/svg_static/gearflowers.svg
rename : testing/talos/talos/tests/svgx/svgx.manifest => testing/talos/talos/tests/svg_static/svg_static.manifest
extra : rebase_source : c726d56d512cf0a1b0614ed79ab008a411057708
2016-11-17 16:22:50 -08:00
Andrew Halberstadt
8ab30217fe Bug 1318841 - Ensure desktop1604-test docker image downloads the run-wizard binary from vcs, r=jmaher
This image currently has a version of the "run-wizard" binary baked in. This is out of date from the
canonical copy under taskcluster/scripts. This patch just copies what the "desktop-test" image does
by downloading that binary from version control.

MozReview-Commit-ID: Eg4x8slf3X9

--HG--
extra : rebase_source : 89e3dc5716c4bfb46ab807cc15df3e1e329a93d6
2016-11-22 10:57:48 -05:00
Kris Maglione
1390ab41bf Bug 994255: Add included and parent test manifest files to backend inputs list. r=gps
MozReview-Commit-ID: EvMt0ojZGFr

--HG--
extra : rebase_source : ccdf62dde1d315495e7effbdd824c2a2c14099f2
2016-11-18 14:52:54 -08:00
Carsten "Tomcat" Book
8b27dda5d1 merge mozilla-inbound to mozilla-central a=merge 2016-11-22 15:53:05 +01:00
Nils Ohlmeier [:drno]
02f44dd0a3 Bug 1193731: onicegatheringstatechange web-platformtests should pass r=jib
MozReview-Commit-ID: AEAAS4dyPvy

--HG--
extra : rebase_source : e5be2c6cce10e9c8d0f507c71b7f267e0288b6e0
2016-11-19 23:13:03 -08:00
Ehsan Akhgari
6b394f0382 Bug 1318879 - Remove the app related code from mozprofile; r=ahal 2016-11-21 18:56:08 -05:00
Wes Kocher
efeab1563a Backed out changeset 0cafbf944d89 (bug 1318879) for robocop failures a=backout 2016-11-21 13:01:21 -08:00
Thomas Wisniewski
d1cae84099 Bug 1311798 - Align XMLHttpRequest.abort() with the spec. r=baku
--HG--
extra : rebase_source : 29002a6d139a08b706e54dfa4c32163632455e67
2016-11-21 01:30:00 -05:00
Ryan VanderMeulen
5f81c84a69 Bug 1317758 - Remove in-tree references to the linux64-cc and linux64-tsan jobs. r=Callek
--HG--
extra : rebase_source : 43446764b782c775f0bea942634c20c85d567aaf
2016-11-21 12:29:23 -05:00
Ehsan Akhgari
012349bc0f Bug 1318879 - Remove the app related code from mozprofile; r=ahal 2016-11-21 14:59:05 -05:00
Xidorn Quan
8f0f7a04c9 Bug 1315403 followup - Fix mochitest failure and lint error.
MozReview-Commit-ID: KKKCybofksU

CLOSED TREE
2016-11-22 13:59:47 +11:00
JW Wang
a8b746d049 Bug 1318982 - Enable dormant for most media mochitests. r=jya
MozReview-Commit-ID: 7AXEhCmFUeR

--HG--
extra : rebase_source : fa42b09dda75c3385edc6f7decc240816195722b
extra : intermediate-source : 3376be75b913bbc3bd0920828f9e756982e9cac3
extra : source : ffee549ec036bc3ec1b9b1bccb26314c5adb5096
2016-11-02 16:56:38 +08:00
Conache Cristian
5d2a9d651a Bug 1315403-no whitespace between "!" and "important" in Declaration::AppendPropertyAndValueToString and Declaration::AppendVariableAndValueToStr, r=xidorn
MozReview-Commit-ID: BKGqEpn0utp

--HG--
extra : rebase_source : dab61f244d5ca7ec13603d55cbf091b9dd6400d7
2016-11-20 14:42:11 +02:00
Andrew Halberstadt
6adcf5b456 Bug 1317970 - Use manifestparser manifests for python unit tests, r=chmanchester
This deprecates PYTHON_UNIT_TESTS and replaces it with PYTHON_UNITTEST_MANIFESTS.
In the build system, this means python unittests will be treated the same as all
other test suites that use manifestparser. New manifests called 'python.ini' have
been created for all test directories containing python unittests.

MozReview-Commit-ID: IBHG7Thif2D

--HG--
extra : rebase_source : 11a92a2bc544d067946bbd774975140147458caa
2016-11-16 09:59:22 -05:00
Andrew Halberstadt
2d76b4f70d Bug 1317970 - Make mozbase tests use mozunit for consistent formatting, r=chmanchester
The mozbase unittests don't use mozunit, so their output is confusing in the log.
This makes mozbase output consistent with the rest of the python unittests.

MozReview-Commit-ID: AIs5mza8Rn6

--HG--
extra : rebase_source : 10f65e612f5b3cebb921c47699f5a8be7cd2ba5a
2016-11-17 16:36:18 -05:00
Andrew Halberstadt
f395e4d6dd Bug 1317970 - Move mozsystemmonitor tests to a consistent directory structure, r=chmanchester
The mozsystemmonitor test is under mozsystemmonitor/mozsystemmonitor/test instead of
mozsystemmonitor/tests like all the other mozbase modules.

MozReview-Commit-ID: AIs5mza8Rn6

--HG--
rename : testing/mozbase/mozsystemmonitor/mozsystemmonitor/test/test_resource_monitor.py => testing/mozbase/mozsystemmonitor/tests/test_resource_monitor.py
extra : rebase_source : dde714fb9212f19d1f8ba566f574bd7e9d7c4030
2016-11-17 16:36:13 -05:00
Hiroyuki Ikezoe
d9cefd6f9e Bug 1316050 - Wait for a single finish event itself instead of waiting two requestAnimationFrame and checking the event. r=birtles
Also we don't need to check the event time, it's out of scope of this test case.

MozReview-Commit-ID: JkbiiVPunGH

--HG--
extra : rebase_source : 4438091abfd7e55908ab15f543c6a4590acf45a6
2016-11-21 13:33:43 +09:00
Andreas Tolfsen
dbe6213d3f Bug 1317344 - Remove unused Marionette configs from mozharness; r=whimboo
This removes gaia_desktop, gaia_emulator, marionette_emulator,
webapi_desktop, and webapi_emulator test suite definitions.

MozReview-Commit-ID: Lf8slbzKNLz

--HG--
extra : rebase_source : 4a60c0cd0d05cabd0af74c15a85929d943c867f6
2016-11-14 16:16:44 +00:00
Wander Lairson Costa
b3d0305df8 Bug 1316077 part 3: Add in-tree config support to taskcluster_helper. r=jlund
If there is a property called 'installer_path', the job is from in-tree
config.

MozReview-Commit-ID: E5SIHyxp0dM

--HG--
extra : rebase_source : e0251636e8e55613d58e743d70469e6b1a2175a5
2016-11-18 16:52:16 -02:00
Wander Lairson Costa
f53e07fcc5 Bug 1316077 part 2: remove taskcluster scheduler from mozharness. r=jlund
taskcluster-scheduler is deprecated. mozharness uses it to get the task
graph in order to discover the parent of a task.

We now use queue to get the task definition, which contains the
'requires' field.

MozReview-Commit-ID: 8IivfxLvxVA

--HG--
extra : rebase_source : 76ad3993d50cb3dccca6b56652eec9568f5e5abb
2016-11-18 16:52:16 -02:00
Henrik Skupin
fdc0be20ab Bug 1318644 - Auto-detect application type if binary has been specified. r=automatedtester
MozReview-Commit-ID: 3ZLN4EyIujM

--HG--
extra : rebase_source : 5271e0b26b87c1dd4c0a0953412aa6aa06a1b52f
2016-11-21 16:28:46 +01:00
Andreas Tolfsen
45e80b0600 Bug 1317386 - Swap expectation of which button causes scroll; r=automatedtester
When we scroll the element into the bottom of the viewport, it is the
first button that does not cause a scroll.

MozReview-Commit-ID: 1zv3uyUcnRn

--HG--
extra : rebase_source : 1cc3835c5bbcba941bceb3be98fdaa9b6f91d6b9
2016-11-15 11:41:23 +00:00
Andreas Tolfsen
3c262bd4f4 Bug 1317386 - Test pointer interactability of first element in paint order; r=automatedtester
When returning the tree of interactable elemenets under the cursor, we
want to test the first one against the passed element, not that there
are _any_ interactable elements under the cursor.

MozReview-Commit-ID: AUvKAWKHgZk

--HG--
extra : rebase_source : 69563be46dbb18c4c814d6615b1bd2f97179b816
2016-11-15 11:21:32 +00:00
Andreas Tolfsen
5be6b803bf Bug 1317386 - Add test for overlay element after scroll; r=automatedtester
Add a test that checks that `scrollIntoView({block: "end", inline:
"nearest"})` works by placing the element at the bottom of the viewport,
where the overlay does not cover it.

MozReview-Commit-ID: Gzv9n17240G

--HG--
extra : rebase_source : 373c0da6c74bbf3953dc8b08e8b65929003b7d12
2016-11-14 21:12:00 +00:00
Andreas Tolfsen
3678abebb6 Bug 1317386 - Rewrite in-view centre point calcaulation; r=automatedtester
The old calcaulation to determine an element's in-view centre point was
wrong as pointed out in https://github.com/w3c/webdriver/issues/425,
and this is an implementation of the proposed algorithm which passes
real-world tests.

This also addresses https://github.com/w3c/webdriver/pull/441 which
checks if the `DOMRect` sequence returned from `getClientRects` is empty,
as it may be if the element's `display` style property is `none`.

MozReview-Commit-ID: 4uitUrviW2a

--HG--
extra : rebase_source : d9a3eefc9496500dffe74a28a117e29067a646f1
2016-11-14 21:10:08 +00:00
Andreas Tolfsen
be2dd10746 Bug 1317386 - Check pointer interactability upon interaction; r=automatedtester
Checking for general interactability will also consider keyboard
interactability, which has not yet been implemented.  On interacting with
an element by clicking, we should only test for pointer interactability.

MozReview-Commit-ID: BUCs7zHppRm

--HG--
extra : rebase_source : 2053a49ee4bcb291299568902e9ac25cc747bc5e
2016-11-14 21:07:42 +00:00
Andreas Tolfsen
cbe8e9b6dc Bug 1317386 - Scroll element into view at the bottom; r=automatedtester
When scrolling an element into view using `Element.scrollIntoView`,
use the `{block: "end", inline: "nearest"}` scroll position arguments,
which are equivalent to `Element.scrollIntoView(false)`.  This is what
other WebDriver implementations have used for a while, and we meant to
change to this sooner.

This ensures that the element appears at the bottom of the viewport
rather than the top, where overlaying menus with fixed style position
may more frequently appear.

In the future we might consider replacing this with `{block: "center"}`
which is specified in the CSSOM specification, but not yet implemented
in any browsers.

This implements https://github.com/w3c/webdriver/pull/440, which should
fix https://github.com/mozilla/geckodriver/issues/327.

MozReview-Commit-ID: BRMupP4fM89

--HG--
extra : rebase_source : 952edd6932b0f7e8b7d2694d428435508a4ffc8c
2016-11-14 21:06:50 +00:00
Carsten "Tomcat" Book
a75ebc8c52 Merge mozilla-central to autoland 2016-11-21 15:47:42 +01:00
Carsten "Tomcat" Book
59bb309e38 merge mozilla-inbound to mozilla-central a=merge 2016-11-21 15:44:20 +01:00
Boris Chiou
367d3ab4dd Bug 1286151 - Part 6: Move tests of spacing on transform into wpt. r=hiro
Only replace addDiv with createDiv in spacing-keyframes-transform.html.
Others are the same.

MozReview-Commit-ID: JNSpyc6WNtP

--HG--
extra : rebase_source : 05af4176e85234e1d89023f1e74012d0e1481230
2016-11-15 16:50:47 +08:00
Boris Chiou
eecc8c9ff7 Bug 1286151 - Part 5: Test. r=hiro
MozReview-Commit-ID: wORyuqtfj

--HG--
extra : rebase_source : d0e002c44ca54215f51129fdaf1ec93fa129ecab
2016-11-14 11:42:15 +08:00
Nicholas Hurley
ad0fdc81aa Bug 1310855 - Remove hasNode xpcshell.ini variable r=mcmanus
MozReview-Commit-ID: Hx2e1JYfUfy

--HG--
extra : rebase_source : 70ffa6b9e38e357d797ef34a547d921e7a609410
2016-10-18 10:54:33 -07:00
Boris Zbarsky
0b51e4d979 Bug 1318576. Remove entries from a form's past names map when an element is removed from the form, even if that element doesn't have a name or id anymore. r=baku 2016-11-21 12:34:02 -05:00
Sebastian Hengst
53e819cf3c Backed out changeset de975fd9cbf6 (bug 1318879) for mass mochitest failures. r=backout on a CLOSED TREE 2016-11-21 17:32:30 +01:00
Ehsan Akhgari
1f07859636 Bug 1318879 - Remove the app related code from mozprofile; r=ahal 2016-11-21 09:55:25 -05:00
Andreas Tolfsen
0be98ed1ef Bug 1150527 - Remove unusued InstallGeckoError type; r=automatedtester
It does not appear to be used in m-c.

MozReview-Commit-ID: EAr0g3VJNi4

--HG--
extra : rebase_source : 0881d56dad82ce39710934cf4fdd71c21b7d5ed6
2016-11-16 16:27:19 +00:00
Andreas Tolfsen
3cd5fa1d51 Bug 1150527 - Remove error numbers from Marionette Python client; r=automatedtester
MozReview-Commit-ID: IGAdxItviaz

--HG--
extra : rebase_source : 88016c33782f19bee602a69a24ee487e522895f3
2016-11-16 16:21:06 +00:00
Andreas Tolfsen
f716b437df Bug 1317733 - Simplify Marionette component file names; r=automatedtester
MozReview-Commit-ID: 3byVSqpkr9

--HG--
rename : testing/marionette/components/marionettecomponent.js => testing/marionette/components/marionette.js
extra : rebase_source : 5db9377612c52bc636d55215f5dd7852ce0650bb
2016-11-15 17:16:23 +00:00
Andreas Tolfsen
3fd41bd102 Bug 1317733 - Stop packaging specialpowers with Marionette; r=automatedtester
Marionette does not use specialpowers any more and it is pointless to
include it in the Marionette jar.

MozReview-Commit-ID: 8tzSO4VsMA7

--HG--
extra : rebase_source : a2a78e5a37a444b1d04dcae25551c8cbcc3aca61
2016-11-15 15:59:33 +00:00