Commit Graph

17152 Commits

Author SHA1 Message Date
Maja Frydrychowicz
3b8342dbea Bug 1353895 - Add wait with timeout to test click with navigation; r=jgraham
MozReview-Commit-ID: 1sV2cfXitaB

--HG--
extra : rebase_source : f74c9eacc3f5862c35da80a76bde01f3dbead8ee
2017-06-22 17:04:48 -04:00
Maja Frydrychowicz
07f670d5b8 Bug 1353895 - Move all wdspec tests into a package; r=jgraham
We need a top-level package for tests and support files so that
support modules are importable from subpackages. For example,
previously webdriver/support/inline.py could not be imported from
webdriver/actions/mouse.py.

I'm creating the package in a subdirectory under webdriver in
order to avoid a name-clash with webdriver, the WebDriver client
library. Part of the motivation for adding the subdirectory rather
than renaming the client library is that it's a relatively
isolated change.

MozReview-Commit-ID: BihAKcNLbXK

--HG--
rename : testing/web-platform/meta/webdriver/contexts.py.ini => testing/web-platform/meta/webdriver/tests/contexts.py.ini
rename : testing/web-platform/meta/webdriver/navigation.py.ini => testing/web-platform/meta/webdriver/tests/navigation.py.ini
rename : testing/web-platform/tests/webdriver/actions/__init__.py => testing/web-platform/tests/webdriver/tests/actions/__init__.py
rename : testing/web-platform/tests/webdriver/actions/conftest.py => testing/web-platform/tests/webdriver/tests/actions/conftest.py
rename : testing/web-platform/tests/webdriver/actions/key.py => testing/web-platform/tests/webdriver/tests/actions/key.py
rename : testing/web-platform/tests/webdriver/actions/mouse.py => testing/web-platform/tests/webdriver/tests/actions/mouse.py
rename : testing/web-platform/tests/webdriver/actions/sequence.py => testing/web-platform/tests/webdriver/tests/actions/sequence.py
rename : testing/web-platform/tests/webdriver/actions/special_keys.py => testing/web-platform/tests/webdriver/tests/actions/special_keys.py
rename : testing/web-platform/tests/webdriver/actions/support/__init__.py => testing/web-platform/tests/webdriver/tests/actions/support/__init__.py
rename : testing/web-platform/tests/webdriver/actions/support/keys.py => testing/web-platform/tests/webdriver/tests/actions/support/keys.py
rename : testing/web-platform/tests/webdriver/actions/support/refine.py => testing/web-platform/tests/webdriver/tests/actions/support/refine.py
rename : testing/web-platform/tests/webdriver/actions/support/test_actions_wdspec.html => testing/web-platform/tests/webdriver/tests/actions/support/test_actions_wdspec.html
rename : testing/web-platform/tests/webdriver/conftest.py => testing/web-platform/tests/webdriver/tests/conftest.py
rename : testing/web-platform/tests/webdriver/contexts.py => testing/web-platform/tests/webdriver/tests/contexts.py
rename : testing/web-platform/tests/webdriver/cookies.py => testing/web-platform/tests/webdriver/tests/cookies.py
rename : testing/web-platform/tests/webdriver/navigation.py => testing/web-platform/tests/webdriver/tests/navigation.py
rename : testing/web-platform/tests/webdriver/support/__init__.py => testing/web-platform/tests/webdriver/tests/support/__init__.py
rename : testing/web-platform/tests/webdriver/support/asserts.py => testing/web-platform/tests/webdriver/tests/support/asserts.py
rename : testing/web-platform/tests/webdriver/support/fixtures.py => testing/web-platform/tests/webdriver/tests/support/fixtures.py
rename : testing/web-platform/tests/webdriver/support/http_request.py => testing/web-platform/tests/webdriver/tests/support/http_request.py
rename : testing/web-platform/tests/webdriver/support/inline.py => testing/web-platform/tests/webdriver/tests/support/inline.py
rename : testing/web-platform/tests/webdriver/support/merge_dictionaries.py => testing/web-platform/tests/webdriver/tests/support/merge_dictionaries.py
rename : testing/web-platform/tests/webdriver/window_maximizing.py => testing/web-platform/tests/webdriver/tests/window_maximizing.py
extra : rebase_source : cb2aed22a39fc5b720c70e4b9864ebe20ee8ce40
2017-06-22 16:45:57 -04:00
Henrik Skupin
3aa7fa87be Bug 1368439 - Retrieve content browser title via parent process. r=automatedtester
To retrieve the title of the currently selected content browser
it is not necessary to call into the frame script. Instead just
take the value from the parent process directly.

MozReview-Commit-ID: KEpYKLIydrJ

--HG--
extra : rebase_source : 8b179de7057f8655a81656bd4d95b1562edb9f54
2017-07-02 04:31:18 -07:00
Henrik Skupin
2af21d96fe Bug 1368439 - Remove unused GetAppCacheStatus command. r=automatedtester
MozReview-Commit-ID: ARETprd7n8t

--HG--
extra : rebase_source : cacb5051de689f73156f4460bcd47de0f09f2df1
2017-07-02 13:55:12 +02:00
Henrik Skupin
f059a7e6ea Bug 1360687 - Synchronize webextension from Puppeteer with Marionette harness. r=davehunt
The current webextension in Marionette harness tests doesn't have an
addon id and as such will not be able to be installed outside of
about:debugging. This patch synchronizes the updated webextension
from Puppeteer with Marionette harness.

MozReview-Commit-ID: AjdDQpySnBl

--HG--
extra : rebase_source : c9a498aee2f9ade6dee31971a3b4889d63b19ec6
2017-06-28 13:54:13 -07:00
Henrik Skupin
ec26b7c6ea Bug 1360687 - Update puppeteer notification class for webextensions. r=davehunt
To support webextensions in Puppeteer the current restartless
extension gets replaced by a webextension. It allow us to test
at least the permission notification. This patch only adds basic
support.

MozReview-Commit-ID: FKq76qcOxKu

--HG--
extra : rebase_source : 1dc81e80c43d3ec61f3ff405fa7807a08ab1d45e
2017-06-29 15:46:45 -07:00
James Graham
50eabaa44d Bug 1377886 - Improve handling of reftests in mach wpt-create, r=automatedtester
Create an emmpty reference file if one doesn't exist, and open it in
the editor.

MozReview-Commit-ID: 5aBLp2AdnzY

--HG--
extra : rebase_source : bae3df50689895e6ac02cc740acea57be5c24b2e
2017-07-03 15:39:20 +01:00
James Graham
04a7d622fd Bug 1377886 - Don't start Firefox with mach wpt-create, r=automatedtester
This confuses people and isn't needed to update the manifest these days.

MozReview-Commit-ID: 4t4zdXLMob5

--HG--
extra : rebase_source : 9c43570073b15d11b3a52c830f9f3fd1f9f063c7
2017-07-03 15:38:10 +01:00
Emilio Cobos Álvarez
685504c886 Bug 1372041: Further update test expectations. r=heycam
These were reviewed on the bug, but I accidentally filtered them out when
splitting patches.

MozReview-Commit-ID: 2Db8cUneO3M
2017-07-02 19:22:36 +02:00
Phil Ringnalda
915412e692 Merge m-i to m-c, a=merge
MozReview-Commit-ID: HINQtggBLDr
2017-07-01 17:36:09 -07:00
Christoph Kerschbaumer
9a421201d1 Bug 1377467 - Set pref data_uri.unique_opaque_origin for web platform tests. r=jgraham 2017-06-30 10:13:08 -07:00
Shawn Huang
4cab29da52 Bug 1345457 - Part 2: Assert upload.abort and upload.loadend events before abort, r=annevk
Per https://xhr.spec.whatwg.org/#request-error-steps xhr.upload.onabort fires before xhr.onabort
2017-06-30 10:48:36 -07:00
Beekill95
2c51be9561 Bug 1331937 - Extend session restore Talos test with many windows. r=mikedeboer,jmaher
MozReview-Commit-ID: LjaSszpTLOe
2017-06-28 09:42:34 +07:00
Carsten "Tomcat" Book
daa67cc9e3 merge mozilla-inbound to mozilla-central a=merge 2017-06-30 12:59:45 +02:00
Carsten "Tomcat" Book
f6130d3fe8 Backed out changeset feedcde68c2a (bug 1338651) for bustage 2017-06-30 09:41:23 +02:00
Sebastian Hengst
badadd5e0a Backed out changeset 15cc8dd66362 (bug 1331937) for eslint failure at testing/talos/talos/startup_test/sessionrestore/profile-manywindows/sessionstore.js:2: Unexpected token ':'. r=backout 2017-06-29 23:53:17 +02:00
Beekill95
80cf974a9f Bug 1331937 - Extend session restore Talos test with many windows. r=mikedeboer, r=jmaher
MozReview-Commit-ID: LjaSszpTLOe
2017-06-28 09:42:34 +07:00
Wander Lairson Costa
ad280021a7 Bug 1338651: Change docker image home dir to /build. r=dustin,mshal
Using /home/worker is the build directory has a 30% talos performance
loss, because test machines has a /home mount directory.

MozReview-Commit-ID: zehcGJrUQX

--HG--
extra : rebase_source : e9ce75ecf18e7d4c829e369f5fbd1df8d6449edf
2017-06-29 15:45:01 -07:00
Carsten "Tomcat" Book
1367c473cd Merge mozilla-central to mozilla-inbound 2017-06-29 15:49:39 +02:00
Carsten "Tomcat" Book
5f00ae3a8b merge mozilla-inbound to mozilla-central a=merge 2017-06-29 15:47:04 +02:00
Bob Owen
9e3ea29587 Bug 1369670 Part 1: Resolve to the real path names when comparing the profile paths in test_capabilities.py. r=whimboo
Unlike python 3, python 2 doesn't have a proper implementation of realpath or
samefile for Windows. However there is a function convert_path in FixTk.py that
was added to python 2 to fix an issue with tcl installations and symlinks, so
we use that as this is just for testing.
2017-06-23 16:29:15 +01:00
James Graham
6035ebf6c6 Bug 1376977 - Update mozlog version number for release, r=whimboo
MozReview-Commit-ID: 6NPCSOXnSAI
2017-06-28 20:06:18 -07:00
Sebastian Hengst
ef391e8a9f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-06-29 03:22:24 +02:00
Paolo Amadini
06de7cf6bf Bug 1374242 - Remove obsolete whitelisting of unhandled rejections. r=Mossop
The whitelisting function thisTestLeaksUncaughtRejectionsAndShouldBeFixed was replaced by expectUncaughtRejection, and existing calls did not take effect anymore.

MozReview-Commit-ID: 3uOxkgWYWEz

--HG--
extra : rebase_source : 6b27b77da78743880529adae7adf4ec2aa64dfea
extra : intermediate-source : 5809a30a0c4817509beb1078cf336d8367b8107a
extra : source : 6f0394b523a66dab444b8551deb8f3c6c81d8f31
2017-06-29 00:13:06 +01:00
Paolo Amadini
be3f9ed657 Bug 1374241 - Add self-tests for unhandled rejection handling in browser-chrome tests. r=Mossop
MozReview-Commit-ID: 9gloXfhfZ3x

--HG--
rename : testing/mochitest/tests/browser/browser_fail_add_task.js => testing/mochitest/tests/browser/browser_fail_add_task_uncaught_rejection.js
extra : rebase_source : e4ce3389715d144711f23d10e2779ccd7fece134
extra : intermediate-source : 971751d97bb4c13a565f35db82cd411d68fa36e7
extra : source : c9c01c06908add6e1631121bed3d0cfaa8feeefa
2017-06-29 00:12:58 +01:00
Sebastian Hengst
5b82b79d9c Backed out changeset 1cd9e27f0fa1 (bug 1351608) 2017-06-29 01:01:15 +02:00
Justin Wood
0142e0f146 Bug 1376550 - Make OSX complete.mar's generated via ./mach repackage mozharness configs r=aki
Support OSX Signed nightlies (in the complete.mar too)

MozReview-Commit-ID: 6iPrPhjj34g

--HG--
extra : rebase_source : 55a6bcf1910f1cae084cf32f6cf47ecf44b500aa
2017-06-27 14:26:16 -07:00
Carsten "Tomcat" Book
7918eeee02 merge mozilla-inbound to mozilla-central a=merge 2017-06-28 13:23:29 +02:00
Ryan VanderMeulen
2edcd80e00 Merge m-c to autoland. a=merge 2017-06-27 20:07:08 -04:00
Ryan VanderMeulen
309d4a291b Backed out 3 changesets (bug 1364896) for causing bug 1376466.
Backed out changeset 5c870a786e94 (bug 1364896)
Backed out changeset 134d9ee1e545 (bug 1364896)
Backed out changeset 8f52f28a9eaa (bug 1364896)
2017-06-27 14:32:07 -04:00
Carsten "Tomcat" Book
4e00eff077 merge mozilla-inbound to mozilla-central a=merge 2017-06-27 10:56:41 +02:00
Andrew Halberstadt
95c0561603 Bug 1372567 - Fix problems with mochitest structured logging, r=jgraham
The mochitest harness uses testEnd multiple times to log various failures. This can result
in several testEnd messages, which will soon cause mozlog to spit out an error. Instead,
these should be testStatus.

This also starts using mozlog's assertion_count log action to log test assertions (again,
instead of testEnd).

MozReview-Commit-ID: FFsyicSso5Y

--HG--
extra : rebase_source : 5e8d02714fcf24f2b86a9867b0403bbda0d00f91
2017-06-21 08:40:19 -04:00
Sebastian Hengst
d787a096f5 merge mozilla-central to autoland. r=merge a=merge 2017-06-29 03:21:05 +02:00
Ryan VanderMeulen
a8806a9105 Merge m-c to inbound. a=merge 2017-06-27 20:06:39 -04:00
Geoff Brown
14713f207c Bug 1365636 - Wait for geckoview crash directory to be created; r=jmaher 2017-06-28 16:58:24 -06:00
Geoff Brown
39b260e512 Bug 1365636 - Cause geckoview job to fail when no crash directory found; r=jmaher
"Automation Error" is not sufficient to turn a mozharness job orange.
mochitest-plain failures of this type normally cause job failure by not
printing out the test suite summary. This patch uses the same technique
for geckoview tests: If a crash is detected, do not print a test summary,
so that mozharness will subsequently fail the job.
2017-06-28 16:58:22 -06:00
Tom Prince
ff4fac84e1 Bug 1371734 - Fix tooltool cache on thunderbird's buildbot. r=jlund
--HG--
extra : amend_source : 96cff8c535bb92c53be79a2fdef12aaaaf3f6610
2017-06-09 10:06:00 -04:00
David Burns
ba70f4f34a Bug 1370223: Add Window Maximize wdspec tests r=ato
This adds tests for section 10.7.3 of the WebDriver
specification as detailed in
https://w3c.github.io/webdriver/webdriver-spec.html#resizing-and-positioning-windows

MozReview-Commit-ID: 96Ls86ONve0

--HG--
extra : rebase_source : d03e13e7d6a8527fb215cf7d0540088583e72263
2017-06-16 09:39:05 +01:00
Henrik Skupin
200da78a40 Bug 1223277 - Return immediately when click command closes tab or window. r=ato
In some cases the click command can trigger the closing of the
currently selected tab or window. To not cause a hang when waiting
for a response from the removed framescript, the tab and window
closing events have to be observed. Also the command has to return
immediately.

MozReview-Commit-ID: 9WeXryrKEJr

--HG--
extra : rebase_source : a7a23cf19e55eecbf957d48c2182a601d63d0909
2017-06-26 16:55:02 -07:00
Henrik Skupin
d96b3fb2bc Bug 1223277 - TcpTransport.close() should't care about errno 107. r=ato
Beside Errno 57 there is also Errno 107 (Transport endpoint is not
connected) which can happen in case of an unexpected crash/shutdown
of Firefox. Then calling shutdown() on the socket to stop the
communication will fail.

This is most likely a race and can happen after receiving a reply
from the server, and before sending another command.

MozReview-Commit-ID: 3S5Ko4XVUAJ

--HG--
extra : rebase_source : 59d79ab5da2c4e67b64bc90501660a7603a993c8
2017-06-22 21:10:44 +02:00
Henrik Skupin
4840d12a94 Bug 1223277 - Disable Marionette unit tests for ASAN builds. r=ato
Tests are causing issues for us due to slow running builds and
delayed creation of minidump files. Also we don't see a value
yet to have those tests running for ASAN. Once bug 1348961 is
fixed we could re-evaluate.

MozReview-Commit-ID: BZHa1O5F6ep

--HG--
extra : rebase_source : 28e1977607eb803c4167315cf32f56e5b2e0ba31
2017-06-27 11:05:48 -07:00
Henrik Skupin
505f86c3ab Bug 1223277 - Improve Marionette unit tests for delayed crashes. r=ato
In case of delayed shutdowns of Firefox we currently miss to detect the
created minidump files because the mozcrash mock gets removed right after
the crash causing command has been executed. To prevent this the mock
has to be active from setUp until tearDown.

Also we should not silently ignore the case that the minidump folder
cannot be deleted. Because it means no crash happened, or the folder
has not been created.

MozReview-Commit-ID: KncJ5BHi7M5

--HG--
extra : rebase_source : 63c947b0a7fe16de0eed19a8e0359721d9f4051d
2017-06-22 11:45:10 +02:00
Johann Hofmann
acba8482a8 Bug 1364896 - Part 3 - Add a test for contextmenu touchmode. r=dao,jmaher
This also adds a utility function for synthesizing native touch
events to Eventutils.js.

I did not add a test for searchbar because of intermittent issues
with showing the contextmenu (that are not reproducible manually).
I believe this is rather related to searchbar functionality than
my patches.

MozReview-Commit-ID: Dqm92Saosxz

--HG--
extra : rebase_source : d5c4333609b68773e62447bd3158cadfa89b803b
2017-06-23 11:48:35 +02:00
Rob Wood
952a93452f Bug 1375073 - Modify talos startup test framework to support receiving multiple values from a single iteration; r=jmaher
MozReview-Commit-ID: EUGt71dB6f6

--HG--
extra : rebase_source : 81e1139a7556f17dc5e26f649305a1ede9a976bf
2017-06-23 15:01:08 -04:00
Carsten "Tomcat" Book
259377b6ab merge mozilla-inbound to mozilla-central a=merge 2017-06-26 13:25:51 +02:00
Tooru Fujisawa
4735d8aaac Bug 1375938 - Fix documentation comment about synthesizeNativeOSXClick. r=smaug DONTBUILD 2017-06-25 23:57:56 +09:00
Geoff Brown
3115836c5c Bug 1375678 - Enable eslint on testing/modules - additional changes; r=standard8 2017-06-23 15:08:04 -06:00
Geoff Brown
03ec89d132 Bug 1375678 - Enable lint on testing/modules - mechanical changes; r=standard8 2017-06-23 15:08:02 -06:00
Wes Kocher
4fe21d372c Backed out 2 changesets (bug 1369670) for Mn failures in test_capabilities.py on Windows 8 a=backout
Backed out changeset 46db8ae423f2 (bug 1369670)
Backed out changeset e9b7d6dbc698 (bug 1369670)

MozReview-Commit-ID: GL05REhJM2k
2017-06-23 11:48:12 -07:00
Cameron McCormack
902f16605c Bug 1291515 - Part 2: Disable pref for <style scoped>. r=dbaron
MozReview-Commit-ID: 8rBHsSTK9SG

--HG--
extra : rebase_source : db36cfa8139ceb53811239b8ddd800f3d08d6698
2017-06-21 09:30:52 +08:00