Commit Graph

19136 Commits

Author SHA1 Message Date
Andreas Tolfsen
4b10cb69dd Bug 1410652 - Fix various API documentation in element module. r=whimboo
MozReview-Commit-ID: AaGnolglX5n

--HG--
extra : rebase_source : de1c338530fbbb68f695c2af8de53a9fe9c1c8e0
2017-10-24 17:38:55 +01:00
Andreas Tolfsen
999ba4ba27 Bug 1410652 - Fix API docs of assert functions. r=whimboo
MozReview-Commit-ID: HktgnHoCGZV

--HG--
extra : rebase_source : a7b5586dba2a18d325aac765a9db13de31696095
2017-10-24 17:32:26 +01:00
Tom Prince
007a87532f Bug 1412105: Don't hardcode objdir in build_resources_path; r=jlund
MozReview-Commit-ID: B82gmPToKFW

--HG--
extra : rebase_source : 4d4d5f7f1dedeab8972bb6d0fc9e3de6f649bc07
2017-10-26 14:38:12 -06:00
Andreas Tolfsen
128ae86a8c Bug 1412037 - Prevent geckodriver from being published. r=jgraham
This prevents the geckodriver crate from being published to a
package registry like crates.io by mistake.

MozReview-Commit-ID: 7Qc9vaPhdJh

--HG--
extra : rebase_source : ec1f470a69c14c240b2cb522eb4475b22ed4a9da
2017-10-30 16:07:06 +00:00
Andreas Tolfsen
0d1f521e56 Bug 1412037 - Release geckodriver 0.19.1. r=jgraham
MozReview-Commit-ID: 4G4Vk5D86Nm

--HG--
extra : rebase_source : 98fb1c61cb1d2714158a502187b892ec58ce7dee
2017-10-26 18:10:51 +01:00
Andreas Tolfsen
4f3f33c2ed Bug 1412037 - Update changelog. r=jgraham
MozReview-Commit-ID: E1Xku8qLcgt

--HG--
extra : rebase_source : fa9013fe5625c9fbfd9c8ea92343494e683ae8c1
2017-10-26 18:10:34 +01:00
Andreas Tolfsen
f056551b50 Bug 1412037 - Release webdriver crate 0.32.0. r=jgraham
A release of the webdriver crate is necessary for the release build
to pass on Travis, since testing/geckodriver/Cargo.toml cannot
depend on testing/webdriver as it is exported to the GitHub repository.

MozReview-Commit-ID: 1S2aAtg50t4

--HG--
extra : rebase_source : 53ef155537a44ef2bc141ea30a635e4144625118
2017-10-26 18:05:29 +01:00
Andreas Tolfsen
2529547a8f Bug 1411281 - Make assert_same_element accept webdriver.Element r=jgraham
Allow assert_same_element to compare web element references (JSON
Objects) with webdriver.Element and vice versa.

Tests will typically look up some element using traditional means
and use that as the trusted comparison when retrieving the same
element using the session.transport.send primitive that returns
the plain JSON Object.

MozReview-Commit-ID: 2DScnviOevb

--HG--
extra : rebase_source : d84fc331cdf2b2eb2bd36b71a184e5239b60bdff
2017-10-25 16:54:03 +01:00
Andreas Tolfsen
d8489ee74b Bug 1411281 - Unmarshal all responses in WPT WebDriver client r=jgraham
The WPT WebDriver client currently only unmarshals responses for some
commands (notably execute_script, execute_async_script, and find.css).
For the client API we want to unmarshal all response bodies automatically.

This patch moves all JSON serialisation/deserialisation to a new
webdriver.protocol package so that it is not scattered around
the client API.  It introduces specialisations of JSONEncoder and
JSONDecoder that allows web element references to be recognised
and converted to complex webdriver.Element objects.

This change means it is no longer necessary for callers to invoke
webdriver.Session._element to convert the response to a web element
as this will be done automatically on any request- and response
body to webdriver.Sesson.send_command.

An important thing to note is that HTTPWireProtocol.send does not  follow
this behaviour by default.  That is because session.transport.send
is used throughout WebDriver tests in WPT as a way to get the raw
JSON body without having to set up session state manually.

MozReview-Commit-ID: 5UyDAe43Hgf

--HG--
extra : rebase_source : b86495dd0dcd102e6dea87011caafad475b88723
2017-10-25 14:18:26 +01:00
Andreas Tolfsen
ca6428c47f Bug 1411281 - Swap webdriver.Element ctor arguments r=jgraham
It is more natural for the web element UUID to come first, followed
by the associated session state.

The patch also adds ctor documentation.

MozReview-Commit-ID: 5iV4SZzMeKS

--HG--
extra : rebase_source : e9f68a2a934b2c13a9d1d913204e7e3d9bce6b42
2017-10-25 10:13:18 +01:00
Andreas Tolfsen
ffe20afd29 Bug 1411281 - Add equality test for webdriver.Element r=jgraham
When comparing two instances of webdriver.Element we want to first
check the type, to make sure the "id" attribute is present, then
compare the web element reference UUIDs.  These are supposed to be
unique across all browsing contexts.

MozReview-Commit-ID: 68PUBQxPdQ5

--HG--
extra : rebase_source : f0c52efd0db3a13ea1b90dc6c058ebee2de76e1d
2017-10-25 09:59:52 +01:00
Andreas Tolfsen
b0cfd27758 Bug 1411281 - Add equality test for webdriver.Session r=jgraham
When comparing two instances of webdriver.Session we want to first
check that there is a current session, then the type of the object
to compare with to make sure the "session_id" attribute is present,
then finally we compare the session IDs.

MozReview-Commit-ID: 6Ch4Uy2MEhB

--HG--
extra : rebase_source : 252fe31680c57831b122d2bb53fe133b32c322eb
2017-10-26 17:15:16 +01:00
Andreas Tolfsen
54e90b00f1 Bug 1411281 - Associate web element identifier with webdriver.Element r=jgraham
MozReview-Commit-ID: Fqw3EJnJCsD

--HG--
extra : rebase_source : c9437244567d54614e37f076642440d527ef75dd
2017-10-25 09:57:13 +01:00
Masayuki Nakano
68626e182f Bug 1411687 - part 3: Add webplatform-test for testing "insertParagraph" command when user-defined element is the editing host r=m_kato
MozReview-Commit-ID: 4h53PBCGlU2

--HG--
extra : rebase_source : 1fc5ac1e41008f43956fea3840cdc89da7985df5
2017-10-27 16:01:59 +09:00
btian
4ca4fdd5ff Bug 1404842 - P4: Revise expected test results under other folders, r=smaug
MozReview-Commit-ID: 4SSW3ZLKHMy

--HG--
extra : rebase_source : ea01062b2757f76dab29dd9b0b26644a1d07bfd8
2017-10-27 16:08:05 +08:00
Ben Tian
78f8319b33 Bug 1404842 - P3: Revise expected test results under css, r=smaug
MozReview-Commit-ID: 2hhPCLgDULy

--HG--
extra : rebase_source : 744b7fca73ef67633d6994d4bf2fd7af4a1f5e3c
2017-10-19 17:21:46 +08:00
Ben Tian
1c93de35e9 Bug 1404842 - P2: Revise expected test results under shadow-dom, r=smaug
MozReview-Commit-ID: IYfyAa7h4JN

--HG--
extra : rebase_source : 95837a286a77514901257d906c6d4a355b1e92e9
2017-10-19 18:06:12 +08:00
Hiroyuki Ikezoe
2fa9a3a408 Bug 1379515 - Add another variant of sendWheelAndPaint but without flushing layout for obtaining target element position before sending the wheel event. r=smaug
MozReview-Commit-ID: 6jyYjVhHXjM

--HG--
extra : rebase_source : f924e0060b2a397b00a827d8f3a8365903982f9b
2017-10-30 09:43:20 +09:00
Makoto Kato
b86c27bcaa Bug 748315 - Part 4. Update web-platform-tests result. r=masayuki
By this changes, many queryCommandValue("justify*") return correct value.

But since we don't support mixed state of queryCommandState("justify*")
(Bug 1412167), when queryCommandValue returns correct value, queryCommandState
will return incorrectly value instead.

MozReview-Commit-ID: S6IAK8xdW2

--HG--
extra : rebase_source : d33def1ab178375266d38bc38aa1a28fa4b90919
2017-10-25 16:13:10 +09:00
Henrik Skupin
7a65183aea Bug 1411197 - Quit/Restart without a callable callback shouldn't perform a shutdown. r=maja_zf
MozReview-Commit-ID: 9qCdmGKFocB

--HG--
extra : rebase_source : 46dcf7d8091c47b05d08959b270953fa63ed7aed
2017-10-27 15:42:31 +02:00
Sebastian Hengst
831f2ed98f merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: oIdBL7fmlE
2017-10-28 10:31:58 +02:00
Sebastian Hengst
3792a177e6 merge autoland to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IZImXBBcbVQ
2017-10-28 10:25:57 +02:00
Phil Ringnalda
7f6c31afa5 Merge m-c to m-i
MozReview-Commit-ID: 2FUpmxEyNnH
2017-10-27 21:43:24 -07:00
Phil Ringnalda
4bc2b1615d Backed out 4 changesets (bug 1408433, bug 1406391, bug 1408512) for crashing tests by touching the network contacting incoming.telemetry.mozilla.org on nightly builds
Backed out changeset 9bfd4b0927dc (bug 1408433)
Backed out changeset 555850d5107e (bug 1408512)
Backed out changeset 15d959b9123e (bug 1406391)
Backed out changeset e1f34ba9cecc (bug 1406391)

MozReview-Commit-ID: BVoGRsD73Hf
2017-10-27 21:08:27 -07:00
Sebastian Hengst
28b1c813ea merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: DasxLYlgq0N
2017-10-27 23:30:52 +02:00
Chris H-C
8e6dd31d55 bug 1406391 - Remove toolkit.telemetry.enabled manipulation from tests r=Dexter
Minor note:
reftests should've turned off uploadEnabled in the first place.

MozReview-Commit-ID: 9spzuUAXwwP
2017-10-27 10:59:43 -04:00
Sebastian Hengst
2e7f384b52 merge autoland to mozilla-central. r=merge a=merge 2017-10-27 23:21:20 +02:00
Ben Kelly
1d874e8c70 Bug 1411528 Clear the intercept listening when synthesizing a redirect in HttpChannelChild. r=asuth 2017-10-27 16:11:57 -04:00
Sebastian Hengst
7e5658f95b Backed out 2 changesets (bug 1411804) for failing eslint in testing/talos/talos/tests/layout/benchmarks/displaylist_mutate.html. r=backout
Backed out changeset 39ad112131fe (bug 1411804)
Backed out changeset 9421a340f682 (bug 1411804)
2017-10-27 21:42:19 +02:00
Sebastian Hengst
ee86c85e9b Add a Talos test for displaylist mutation. (bug 1411804). Follow-up: Add empty line to fix linting issue. r=me DONTBUILD
--HG--
extra : amend_source : b28a5efa400ba377e3ac5e75c09a8611d0e2f5ad
2017-10-27 21:25:52 +02:00
David Anderson
a645a01ee6 Add a Talos test for displaylist mutation. (bug 1411804, r=jmaher, r=mattwoodrow) 2017-10-27 11:59:39 -07:00
Sebastian Hengst
841ee307e6 merge mozilla-central to autoland. r=merge a=merge 2017-10-27 23:32:15 +02:00
Rob Wood
9c5217776e Bug 1410206 - Remove non-e10s support from talos; r=jmaher
MozReview-Commit-ID: 2iCM35XAXJM

--HG--
extra : rebase_source : 831728acfff84ee49297f906a20dad98ca054ca5
2017-10-26 15:16:40 -04:00
Mark Banner
60e4a05b0d Bug 1411368 - Automatically fix spaced-comment issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: AOFFadV3JrV

--HG--
extra : rebase_source : e06da861796c79f118ac734ceebee22253c0485f
2017-10-26 12:00:05 +01:00
Mark Banner
4de6bf22b1 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo

--HG--
extra : rebase_source : 5b45b6c0df834131812d094e975047eaad374e06
2017-10-26 11:47:01 +01:00
Øyvind Strømmen
ccff751e52 Bug 1407695 - Cover non session cookies in web platform tests; r=ato
MozReview-Commit-ID: 8cR5kiRxBV6

--HG--
extra : rebase_source : 5fad8989d6812d3e2e7b0fa2a6d106d4d671edf7
2017-10-19 21:12:21 +02:00
Øyvind Strømmen
a02bde8488 Bug 1407695 - Allows cookie 'expiry' to be optional; r=ato
When getting a session cookie we expect 'expiry' to be either null, or
to be missing.

MozReview-Commit-ID: JmSfrR0ypya

--HG--
extra : rebase_source : e24948efec8013b9b4c02ab9573f9c317130cd89
2017-10-23 22:23:10 +02:00
Øyvind Strømmen
42bc75f55d Bug 1407695 - Clear all cookies from session before running test; r=ato
MozReview-Commit-ID: 5nTN1BzEIOC

--HG--
extra : rebase_source : a2216192767f3aed4aefd084d5363c3d0bdd6486
2017-10-24 08:05:54 +02:00
Øyvind Strømmen
4c2fdeab8b Bug 1407695 - Do not return expiry key for session cookies; r=ato
MozReview-Commit-ID: H1CctBpOOdM

--HG--
extra : rebase_source : 148e2189e46713161f696d6b09c0b854d513f979
2017-10-16 22:42:48 +02:00
Andrew Halberstadt
ddfe7fc78a Bug 1412012 - [mozdebug] Add a basic test for get_default_debugger_name, r=jmaher
MozReview-Commit-ID: CwkXKJWd55M

--HG--
extra : rebase_source : e933232fff154d933953f238da14318d7ed2d0fe
2017-10-26 10:14:33 -04:00
Henrik Skupin
d70feae0c1 Bug 1412222 - start_session should not ignore the result of connection attempts. r=ato
By silently ignoring the result from 'wait_for_port' results in a
delayed socket error, which sometimes can cause strange results
as seen on bug 1410366.

MozReview-Commit-ID: 2ptIwX6upBG

--HG--
extra : rebase_source : 9f25afacf2ce65811c51af2cf4b234c8dd1f3587
2017-10-27 10:06:18 +02:00
Sebastian Hengst
a92de1bfc3 merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
extra : amend_source : 5afba38563fd825a1d36aaee0debd5844aca3432
2017-10-27 12:54:29 +03:00
Sebastian Hengst
5c15da1f08 merge mozilla-inbound to mozilla-central. r=merge a=merge
--HG--
rename : testing/talos/tests/__init__.py => testing/talos/talos/unittests/__init__.py
rename : testing/talos/tests/browser_output.ts.txt => testing/talos/talos/unittests/browser_output.ts.txt
rename : testing/talos/tests/browser_output.tsvg.txt => testing/talos/talos/unittests/browser_output.tsvg.txt
rename : testing/talos/tests/profile.tgz => testing/talos/talos/unittests/profile.tgz
rename : testing/talos/tests/ps-Acj.out => testing/talos/talos/unittests/ps-Acj.out
rename : testing/talos/tests/test_talosconfig_browser_config.json => testing/talos/talos/unittests/test_talosconfig_browser_config.json
rename : testing/talos/tests/test_talosconfig_test_config.json => testing/talos/talos/unittests/test_talosconfig_test_config.json
rename : testing/talos/tests/xrestop_output.txt => testing/talos/talos/unittests/xrestop_output.txt
2017-10-27 12:45:34 +03:00
Brian Birtles
69e5bc02d2 Bug 1411806 - Add test for AnimationPlaybackEvent constructor; r=hiro
MozReview-Commit-ID: 846UoXnQ8dn

--HG--
extra : rebase_source : a3d67e5e032b27bb7b77e471a3f7ce9321617089
2017-10-27 13:41:08 +09:00
Brian Birtles
0cfaed9e4f Bug 1411806 - Add idlharness test for AnimationPlaybackEvent; r=hiro
MozReview-Commit-ID: BfMeHktpHpZ

--HG--
extra : rebase_source : 5fd819d340f27edd43c2ea9de1c59903f4dc4ad3
2017-10-27 13:40:41 +09:00
Brian Birtles
a324ffd50a Bug 1411806 - Add idlharness test for AnimationEffectTimingReadOnly; r=hiro
MozReview-Commit-ID: FoKMYXdbNfu

--HG--
extra : rebase_source : 0c16fff9b069cd937fc3fe7a48b3cce8eb6aaf70
2017-10-27 13:40:11 +09:00
Brian Birtles
b42910d57f Bug 1411806 - Drop references to no-longer-existent 'spacing' property in KeyframeEffect(ReadOny) constructor tests; r=hiro
MozReview-Commit-ID: XN1pQRvPJg

--HG--
extra : rebase_source : d2e9d5352dbcda0c74798f54e934ba8130e76582
2017-10-27 13:39:45 +09:00
Brian Birtles
b539049664 Bug 1411806 - Tidy up KeyframeEffect(ReadOnly) constructor tests; r=hiro
These are non-functional changes to:

* Use ES6 const/let
* Use ES6 template strings in various places
* Capitalize/fix test descriptions

MozReview-Commit-ID: CcEl42yVIQx

--HG--
extra : rebase_source : 77479514734c19535fdbcc758f6a5f6ab66b5ffc
2017-10-27 13:39:41 +09:00
Brian Birtles
c235ed5dd4 Bug 1411806 - Combine copy constructor tests for KeyframeEffect and KeyframeEffectReadOnly into one file; r=hiro
All other tests for KeyframeEffectReadOnly live in the KeyframeEffect folder so
we should do the same for the copy constructor tests.

MozReview-Commit-ID: 3UWfCKgyUCZ

--HG--
extra : rebase_source : 5c077d1f12eca6f830e5d67779dd0dedd376576c
2017-10-27 13:39:38 +09:00
Brian Birtles
e1466c75f2 Bug 1411806 - Drop unnecessary test for KeyframeEffect.timing now that idlharness.html covers the same content; r=hiro
MozReview-Commit-ID: LZRx0mU48Id

--HG--
extra : rebase_source : 952a5f1d357966a31da7520cd78737daedf141e3
2017-10-27 13:39:09 +09:00