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

17 Коммитов

Автор SHA1 Сообщение Дата
Andreas Tolfsen 8096c7c75d Bug 1319237 - Calculate correct window position; r=automatedtester
The testing/marionette/browser.js window getter does not return the
same window as `GeckoDriver#getCurrentWindow`.  This is a problem,
but for now we can rely on `getCurrentWindow`.

MozReview-Commit-ID: PT9M7boPM7

--HG--
extra : rebase_source : bf61c18b9a3ab7865cdc3aa063875313823ff295
2016-11-21 23:33:03 +01:00
Wes Kocher 10665c1427 Backed out 14 changesets (bug 1319237) for android xpcshell failures a=backout
Backed out changeset c85849b790c5 (bug 1319237)
Backed out changeset 9746878e5fc7 (bug 1319237)
Backed out changeset 1f7f75c57c59 (bug 1319237)
Backed out changeset 4dc796bbcfaa (bug 1319237)
Backed out changeset f8449c471b8f (bug 1319237)
Backed out changeset f2bdf078f39a (bug 1319237)
Backed out changeset 8df8cda56942 (bug 1319237)
Backed out changeset f651a9e54a57 (bug 1319237)
Backed out changeset 76c8aafbd933 (bug 1319237)
Backed out changeset a2096fa29cd7 (bug 1319237)
Backed out changeset af71a9376bef (bug 1319237)
Backed out changeset 778721edd8b9 (bug 1319237)
Backed out changeset feaf6ba3bd9a (bug 1319237)
Backed out changeset f5f206ed675b (bug 1319237)

MozReview-Commit-ID: EpmToL8Xqfz
2017-02-06 11:28:28 -08:00
Andreas Tolfsen a4ab722fe8 Bug 1319237 - Calculate correct window position; r=automatedtester
The testing/marionette/browser.js window getter does not return the
same window as `GeckoDriver#getCurrentWindow`.  This is a problem,
but for now we can rely on `getCurrentWindow`.

MozReview-Commit-ID: PT9M7boPM7

--HG--
extra : rebase_source : 065b16b3801c002ac379a7beefcd66bea2c20bfb
2016-11-21 23:33:03 +01:00
Henrik Skupin 67f7bcffac Bug 1124604 - Add `focus` parameter to switch_to_window(). r=ato
To be able to run tests for backgrounds tabs, and to stay in compatibility
with switch_to_frame(), switch_to_window() has to support the `focus` parameter.

MozReview-Commit-ID: YGPJisiI2i

--HG--
rename : testing/marionette/harness/marionette_harness/tests/unit/test_window_switching.py => testing/marionette/harness/marionette_harness/tests/unit/test_switch_window_content.py
extra : rebase_source : 3f7ce9d926e5f862c39a20646fb7cf8575fe233a
2017-01-30 15:35:16 +01:00
Henrik Skupin 2ae40d84a9 Bug 1323185 - Add window (tab) handling support for Fennec. r=ato
So far Marionette did support Fennec but not any of its tab handling
features. As such most of the commands fail because they do not take
BrowserApp into account.

This patch adds support for retrieving window handles, switching
between windows, and closing tabs.

Additionally to those changes a couple of unit tests are getting
updated, and added.

MozReview-Commit-ID: 7sbVIblm0Hw

--HG--
rename : testing/marionette/harness/marionette_harness/tests/unit/test_window_handles.py => testing/marionette/harness/marionette_harness/tests/unit/test_window_handles_content.py
extra : rebase_source : 34bfcd680162d4296d524f72f7d6190ef64682b8
2017-01-26 16:42:35 +01:00
Wes Kocher f4f02100c8 Backed out 3 changesets (bug 1323185) for Mn bustage a=backout CLOSED TREE
Backed out changeset 2aa7604fbaaf (bug 1323185)
Backed out changeset 5b6ffae33504 (bug 1323185)
Backed out changeset ae6657776fe0 (bug 1323185)

MozReview-Commit-ID: 44EXnjm4RPt

--HG--
rename : testing/marionette/harness/marionette_harness/tests/unit/test_window_handles_content.py => testing/marionette/harness/marionette_harness/tests/unit/test_window_handles.py
2017-01-24 12:51:08 -08:00
Henrik Skupin fa96c2f9f9 Bug 1323185 - Add window (tab) handling support for Fennec. r=ato
So far Marionette did support Fennec but not any of its tab handling
features. As such most of the commands fail because they do not take
BrowserApp into account.

This patch adds support for retrieving window handles, switching
between windows, and closing tabs.

Additionally to those changes a couple of unit tests are getting
updated, and added.

MozReview-Commit-ID: 7sbVIblm0Hw

--HG--
rename : testing/marionette/harness/marionette_harness/tests/unit/test_window_handles.py => testing/marionette/harness/marionette_harness/tests/unit/test_window_handles_content.py
extra : rebase_source : 475dd6bee446f58208192202cd4c483e2fd929dc
2017-01-23 08:46:50 +01:00
Henrik Skupin 547a6ff1fa Bug 1311350 - Make close window commands synchronous and return remaining window handles. r=ato
To avoid a race condition for the close() commands Marionette has to wait until the current
window/tab has actually been closed. To make this work we have to wait for the appropriate
events to occur. Also the methods have to return the list of remaining window handles.

MozReview-Commit-ID: DegcTJyKXCx

--HG--
extra : rebase_source : a6bd46d2d721f56fcc07a0722f2155ea29dc6fbc
2017-01-10 16:36:49 +01:00
Andreas Tolfsen 2efb1a7465 Bug 1328676 - Document some particulars of browser.Context; r=automatedtester
browser.Context has an awful API and this is a small step in the direction
of mitigating some common misconceptions about its internal state.

MozReview-Commit-ID: Bl5197GiSEL

--HG--
extra : rebase_source : 8dfb5a38e51eaa0721053d9f77d15429ccd94051
2017-01-04 19:37:13 +00: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
Mike Conley b5e760d22d Bug 1294456 - Stop Marionette from being confused about which tab it currently cares about in each window. r=automatedtester
MozReview-Commit-ID: CW0bWILbIuC

--HG--
extra : rebase_source : ca7a20f7a187dc57857297b59a1a6152cb7f5ad8
2016-08-25 15:06:56 -04:00
Maja Frydrychowicz 07464f6507 Bug 787203 - Get Marionette working in Fennec; r=automatedtester
MozReview-Commit-ID: LAymLrmFBSC

--HG--
extra : rebase_source : 30bb2753c161f60eff7293e963fbe206449373b5
2016-06-30 17:03:41 -04:00
Andreas Tolfsen 6686a00fd4 Bug 1274274 - Rename element manager; r=automatedtester
Renames instances of `elementManager' to `seenEls' for brevity.  Also the
word "manager" does not really explain what purpose it fulfills.

MozReview-Commit-ID: 4EUN9utPoZS

--HG--
extra : rebase_source : 52bda0d83c50ffb96e72145ee54827c115596462
2016-05-20 16:49:19 +01:00
Andreas Tolfsen 0f872f6301 Bug 1274274 - Refactor seen element store; r=automatedtester
Renames ElementManager to element.Store, exposing it on the
testing/marionette/element.js module.  Shortens getKnownElement(uuid)
to get(uuid).  Introduces new method has(uuid) to replace some unnecessary
checks in testing/marionette/driver.js and testing/marionette/listener.js.

MozReview-Commit-ID: D5qAlqrIxi

--HG--
extra : rebase_source : 22fda922e4c5f7bfcd1a5bcbcec6ae1003411535
2016-05-20 15:07:21 +01:00
Andreas Tolfsen b6a9cf2e30 Bug 1274638 - Store weak refs to windows outside of element store; r=automatedtester
Windows do not naturally belong in the seen element store, and it is
not naturally related to the scope as that of a browser.

MozReview-Commit-ID: JbQh5kDLDw

--HG--
extra : rebase_source : 075826f59a4fffc15dbbfa869eeb04b117a136da
2016-05-23 10:21:15 +01:00
Andreas Tolfsen fd683c7b4d Bug 1272639 - Remove debug logging; r=jgriffin
MozReview-Commit-ID: 95bQjH6FNnD

--HG--
extra : rebase_source : 0e7039ccb7d02636effdf1850ea162335a979734
2016-05-13 13:12:46 +01:00
Andreas Tolfsen 86048a7b26 Bug 1271616 - Make BrowserObj into a module; r=automatedtester
No changes to the functionality of BrowserObj whatsoever.

MozReview-Commit-ID: JGg7eqil0qd

--HG--
extra : rebase_source : 89e2f535ec9ae17c9174e996445006e0a77111fe
2016-05-10 13:29:21 +01:00