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

1649 Коммитов

Автор SHA1 Сообщение Дата
Ryan VanderMeulen 197d146e63 Bug 1239552 - Disable some tests that are permafail in e10s mode with RELEASE_BUILD set. a=test-only 2016-01-20 16:35:27 -05:00
Andreas Tolfsen f6bfff23ab Bug 1257523 - Remove unused imports; r=automatedtester
MozReview-Commit-ID: K12laAg8zLy

--HG--
extra : rebase_source : 01f495019e69ac859b3f7eb7653a14653477bb93
2016-03-17 14:29:41 +00:00
Andreas Tolfsen 71f87b0569 Bug 1257523 - Remove GeckoDriver#deleteFile; r=automatedtester
MozReview-Commit-ID: 7kOZ5hVC5He

--HG--
extra : rebase_source : 514de7eeaaf0fb41cf1e8d3ae0999c01af052956
2016-03-17 14:26:57 +00:00
Maja Frydrychowicz 36c162588b Bug 1253618 - Support |skip-if = asan| manifest annotations in Marionette runner; r=automatedtester
Obtain build info, including asan status, by looking up mozinfo.json.

MozReview-Commit-ID: 8XWMGtBEbKL

--HG--
extra : rebase_source : f474341433510bd659b4c1d2bc035eec73b603fc
2016-03-14 11:24:58 -04:00
Maja Frydrychowicz 26904d7e8c Bug 1253618 - Add support for |skip-if = e10s| manifest annotations in Marionette runner; r=automatedtester
MozReview-Commit-ID: ApTPQNa2R1c

--HG--
extra : rebase_source : 599b8f976355cc21e5e5aa4707381f68d21b867e
2016-03-09 16:04:02 -05:00
Nathalie Rud 6b7f8633e5 Bug 1256973. Simplify assignment to result_callbacks; r=maja_zf
MozReview-Commit-ID: GXkUNhpI6Wf

--HG--
extra : rebase_source : bbfeab3f8b9fcbb909955ce1c99e8463f5f83c82
2016-03-16 00:10:49 +02:00
Andreas Tolfsen 820971ad9f Bug 1257153 - Cancel implicit wait timers on rejection; r=automatedtester
This fixes a leak where timers were not cancelled upon promise rejection.
When the function passed to implicitlyWaitFor is rejected for not finding
elements after the timeout has elapsed, the elementSearch callback is
no longer called because the timer is cancelled when it calls reject().

MozReview-Commit-ID: FR2iA8s1NjX

--HG--
extra : rebase_source : 80f4b13d15cf3497a8d4b20bca98450ad3bc1b5e
2016-03-16 12:27:36 +00:00
Nathalie Rud cd8babe14e Bug 1256978. Use self.capabilities instead of self._capabilities in BaseMarionetteTestRunner; r=maja_zf
MozReview-Commit-ID: 9ZCOLKae6rt

--HG--
extra : rebase_source : e7604a220aac20b24dfd4dc3f7b3d9e234a47d79
2016-03-16 01:40:21 +02:00
Kim Brown 14a79b2058 Bug 1130979 - Added ANON constant to By class and changed hard-coded values in test file; r=maja_zf
MozReview-Commit-ID: AOsb6l9UpVR

--HG--
extra : rebase_source : b5f41a4e42a3aa76eaf8a2fb5e27882090e8fb19
2016-03-12 13:32:46 -05:00
Kim Brown 922993e071 Bug 1130979 - Changed hard-coded values to constants from By; r=maja_zf
MozReview-Commit-ID: IqVyYQSCT3J

--HG--
extra : rebase_source : d21d156ff640b6bdb5d442073b65692f1534421c
2016-03-11 22:22:36 -05:00
Henrik Skupin 4438ee04e1 Bug 1256439 - Run implicit wait callback once before start polling. r=automatedtester
By using a timer the first invocation of the callback is happening after the specified interval.
That means by a default of 100ms we loose that time on every call of implicit wait, and it will
slow-down the test execution drastically. To prevent this lets manually invoke the callback
before starting the timer.

MozReview-Commit-ID: Ayy1GPEaY92

--HG--
extra : rebase_source : 2fac7b5578ec42af5050fad21ca9c3d5cfdca3e1
2016-03-15 14:38:32 +01:00
Sebastian Hengst 0cf93a0e57 Backed out changeset 936703b9e4cd (bug 1253618) for timeout in Linux Ld tests. r=backout on a CLOSED TREE 2016-03-15 18:50:27 +01:00
Sebastian Hengst 4b384cc448 Backed out changeset 595815f1f12a (bug 1253618) 2016-03-15 18:47:29 +01:00
Decky Coss 6fc233572d Bug 1142212 - import skip_if_b2g from marionette instead of marionette.marionette_test; r=maja_zf
MozReview-Commit-ID: D2mW2A8cViA

--HG--
extra : rebase_source : 1f7a43847f77c6b1556607694a0fc37dd1c43e4a
2016-03-11 15:35:44 -07:00
Maja Frydrychowicz 410b10925a Bug 1253618 - Support |skip-if = asan| manifest annotations in Marionette runner; r=automatedtester
Obtain build info, including asan status, by looking up mozinfo.json.

MozReview-Commit-ID: 8XWMGtBEbKL

--HG--
extra : rebase_source : f474341433510bd659b4c1d2bc035eec73b603fc
2016-03-14 11:24:58 -04:00
Maja Frydrychowicz 8264d4e801 Bug 1253618 - Add support for |skip-if = e10s| manifest annotations in Marionette runner; r=automatedtester
MozReview-Commit-ID: ApTPQNa2R1c

--HG--
extra : rebase_source : 599b8f976355cc21e5e5aa4707381f68d21b867e
2016-03-09 16:04:02 -05:00
Ting-Yu Lin 14b8c376fa Bug 1251519 Part 4 - Add tests for dragging caret to content boundary. r=mats
These tests should fail without Part 5.

MozReview-Commit-ID: 2FAW02tusCg

--HG--
extra : rebase_source : 8634f1e76a172b8c602743692b50376ddda04ebd
2016-03-10 17:38:32 +08:00
Ting-Yu Lin 970a0bf203 Bug 1251519 Part 3 - Add regression tests for caret dragging. r=mats
These tests are added per bug 1251519 comment 10.

test_move_cursor_to_front_by_dragging_caret_to_front_br_element() covers
example 1, and test_drag_caret_from_front_to_end_across_columns() covers
example 3. Example 4 is not easy to write in marionette test since it's
difficult to know whether an image is selected.

Both tests will fail if we clamp the dragging point by using only the
text frame rects as the patch attached in bug 1251519 comment 7.

MozReview-Commit-ID: CKZQKGI6YUw

--HG--
extra : rebase_source : 72f5c2a960c2659fe5015a3ab488d4baa1918059
2016-03-10 17:38:32 +08:00
Andreas Tolfsen 164e45069d Bug 1254523 - Convert modal.Dialog to a class; r=automatedtester
MozReview-Commit-ID: DmC472jSsdi

--HG--
extra : rebase_source : d41cac5c5840bb2bc78061dfd04d75f7d9a6894a
2016-03-08 14:10:32 +00:00
Andreas Tolfsen 526ca1dccc Bug 1254523 - Use constants for Cu and isFirefox; r=automatedtester
MozReview-Commit-ID: IegkoO86uWP

--HG--
extra : rebase_source : 2e7844e88e759586e1d45c4baad45511bfe8a469
2016-03-08 13:59:54 +00:00
Andreas Tolfsen e41745c1c8 Bug 1245064 - Run click tests with new interactability algorithm; r=automatedtester
MozReview-Commit-ID: FR7yucKZ7XT

--HG--
extra : rebase_source : 9ea4991525ff8a7133dbf7ab834454a2fdf57f00
2016-03-04 18:04:16 +00:00
Andreas Tolfsen 176f8137f9 Bug 1245064 - Lint GeckoDriver#setSessionCapabilities; r=automatedtester
MozReview-Commit-ID: GXLGqjKCfVA

--HG--
extra : rebase_source : 8a58e5df7e1bf097b26597d6632bab6742a26bc2
2016-03-04 18:03:28 +00:00
Andreas Tolfsen 158557f87b Bug 1245064 - Pass all capabilities to listener; r=automatedtester
MozReview-Commit-ID: 2UgKKAUowM4

--HG--
extra : rebase_source : 5ffd21c06fb98ac908d5118f55736b5f4271ff95
2016-03-04 18:02:56 +00:00
Andreas Tolfsen 1e70da6b17 Bug 1245064 - Lower specificationLevel to 0; r=automatedtester
Marionette is not yet compatible with the WebDriver specification, and
we indicate this by lowering the specificationLevel capability to 0.
This lets us "gate" specification-compatible features, such as the new
element interactability algorithm.

The new interactability algorithm can be enabled by requesting the
capability specificationLevel 1.

MozReview-Commit-ID: 6wsEAsBtR6P

--HG--
extra : rebase_source : f37444470987bb782f32e190e3b5476eb139f142
2016-03-04 18:00:17 +00:00
Andreas Tolfsen e3854ffb41 Bug 1245064 - Implement element pointer-interactability; r=automatedtester
Implements the WebDriver pointer-interactability algorithm described in
http://w3c.github.io/webdriver/webdriver-spec.html#dfn-interactable-element.

The specification compatible behaviour is enabled only when the client
requests the capability specificationLevel >= 0.

MozReview-Commit-ID: BP60SGj49OW

--HG--
extra : rebase_source : d84d38510e28ab5e0debce2051e336e1fd3f0f86
2016-03-04 16:44:38 +00:00
Andreas Tolfsen 71b94d4505 Bug 1245064 - Refactor interaction- and accessibility API; r=automatedtester
MozReview-Commit-ID: LblRZz8KqPx

--HG--
extra : rebase_source : fbb7995924c7e2707e2aaa2293b8a5c51fc563bc
2016-03-03 13:58:13 +00:00
Carsten "Tomcat" Book 84efe80138 Backed out changeset 4dec8d87c105 (bug 1245064) for marionette bustage 2016-03-09 14:03:28 +01:00
Carsten "Tomcat" Book 38c337c81b Backed out changeset 1dd0bcc1c45e (bug 1245064) 2016-03-09 14:03:07 +01:00
Carsten "Tomcat" Book b622474229 Backed out changeset cb92135b84d1 (bug 1245064) 2016-03-09 14:03:06 +01:00
Carsten "Tomcat" Book b685a90a5e Backed out changeset 2483596f62ef (bug 1245064) 2016-03-09 14:03:04 +01:00
Carsten "Tomcat" Book f06c52d3e1 Backed out changeset 9c4589c2cf47 (bug 1245064) 2016-03-09 14:03:03 +01:00
Carsten "Tomcat" Book 763127bbc7 Backed out changeset 20d915f9df91 (bug 1245064) 2016-03-09 14:03:01 +01:00
Andreas Tolfsen b19085f378 Bug 1245064 - Run click tests with new interactability algorithm; r=automatedtester
MozReview-Commit-ID: FR7yucKZ7XT

--HG--
extra : rebase_source : a409d766a6853bdad6fb9c27ec62cd3f0e83b6c4
2016-03-04 18:04:16 +00:00
Andreas Tolfsen 608b6681f2 Bug 1245064 - Lint GeckoDriver#setSessionCapabilities; r=automatedtester
MozReview-Commit-ID: GXLGqjKCfVA

--HG--
extra : rebase_source : 1c0e879f11c6ec0bed455a083fe208d8cb6fb14f
2016-03-04 18:03:28 +00:00
Andreas Tolfsen 64ff8c0c0e Bug 1245064 - Pass all capabilities to listener; r=automatedtester
MozReview-Commit-ID: 2UgKKAUowM4

--HG--
extra : rebase_source : aae2e03f133b21ab1e65b51aebdec155a2990beb
2016-03-04 18:02:56 +00:00
Andreas Tolfsen 01b20214ee Bug 1245064 - Lower specificationLevel to 0; r=automatedtester
Marionette is not yet compatible with the WebDriver specification, and
we indicate this by lowering the specificationLevel capability to 0.
This lets us "gate" specification-compatible features, such as the new
element interactability algorithm.

The new interactability algorithm can be enabled by requesting the
capability specificationLevel 1.

MozReview-Commit-ID: 6wsEAsBtR6P

--HG--
extra : rebase_source : 3109e0925178ffca5d807a56feabfe66783b38f6
2016-03-04 18:00:17 +00:00
Andreas Tolfsen ed18a3de7d Bug 1245064 - Implement element pointer-interactability; r=automatedtester
Implements the WebDriver pointer-interactability algorithm described in
http://w3c.github.io/webdriver/webdriver-spec.html#dfn-interactable-element.

The specification compatible behaviour is enabled only when the client
requests the capability specificationLevel >= 0.

MozReview-Commit-ID: BP60SGj49OW

--HG--
extra : rebase_source : 357accaa38b44704fcaf839aa50e1e29af0b3f99
2016-03-04 16:44:38 +00:00
Andreas Tolfsen fcdf164815 Bug 1245064 - Refactor interaction- and accessibility API; r=automatedtester
MozReview-Commit-ID: LblRZz8KqPx

--HG--
extra : rebase_source : 347210842fae698acde760c2733dd8d882a09c25
2016-03-03 13:58:13 +00:00
Ting-Yu Lin 337ddd8206 Bug 1253989 Part 5 - Remove touch caret and selection carets naming. r=mtseng
- To avoid confusion, call the blinking cursor (nsCaret) "cursor" so that
  AccessibleCaret can be called caret for short.
- Add second_caret_location() as a helper function, and use it in
  selection mode tests.

MozReview-Commit-ID: IKN6KuR92HE

--HG--
extra : rebase_source : c247ad6b61bc1b1cc3c4d8784584e19d9ef5c1ea
2016-03-08 22:45:47 +08:00
Ting-Yu Lin 22302ef765 Bug 1253989 Part 4 - Rename AccessibleCaret test files. r=mtseng
Remove "touch caret" and "selection carets" from file names and titles.

MozReview-Commit-ID: KqjYE7tiqXd

--HG--
rename : testing/marionette/harness/marionette/www/test_touchcaret.html => testing/marionette/harness/marionette/www/test_carets_cursor.html
rename : testing/marionette/harness/marionette/www/test_selectioncarets_iframe.html => testing/marionette/harness/marionette/www/test_carets_iframe.html
rename : testing/marionette/harness/marionette/www/test_selectioncarets_longtext.html => testing/marionette/harness/marionette/www/test_carets_longtext.html
rename : testing/marionette/harness/marionette/www/test_selectioncarets_multipleline.html => testing/marionette/harness/marionette/www/test_carets_multipleline.html
rename : testing/marionette/harness/marionette/www/test_selectioncarets_multiplerange.html => testing/marionette/harness/marionette/www/test_carets_multiplerange.html
rename : testing/marionette/harness/marionette/www/test_selectioncarets.html => testing/marionette/harness/marionette/www/test_carets_selection.html
extra : rebase_source : 1af82b4e59c409109025684553aa0ff780eec947
2016-03-08 22:45:47 +08:00
Ting-Yu Lin 732119fb5b Bug 1253989 Part 3 - Use @parameterized to rewrite selection mode tests. r=mtseng
* Inline some of the open_*_html methods since they're called only once.
* Save test running time by finding the elements needed in tests instead
  of find all of the elements in open_*_html methods.
* Remove test_long_press_to_select_non_selectable_word() since it's
  covered by test_focus_not_changed_by_long_press_on_non_selectable().
* Use hyphen for element ids.
* Replace "left" and "right" caret by "first" and "second" caret,
  respectively.

MozReview-Commit-ID: Ey5m5zO3HYc

--HG--
extra : rebase_source : c94b84ced75560ce1167cda35ee94dd4cc81ee4d
2016-03-08 22:21:31 +08:00
Andreas Tolfsen 42c25b995a Bug 1254521 - Add return type docs for element.inViewport; r=automatedtester
MozReview-Commit-ID: Budv7EapTfo

--HG--
extra : rebase_source : 98d9684610b3f594a66a01228473b1a8d602024a
2016-03-08 13:53:00 +00:00
Andreas Tolfsen 26578b425f Bug 1254521 - Add return type docs for element.isVisible; r=automatedtester
MozReview-Commit-ID: 9tjnHPmYSdq

--HG--
extra : rebase_source : d51af3dd9760149f0b0a175b6daaf562bddb582d
2016-03-08 13:52:38 +00:00
Andreas Tolfsen fedd17bd6b Bug 1251763 - Reduce repetition in test_findelement.py; r=automatedtester
MozReview-Commit-ID: utpbgMlajl

--HG--
extra : rebase_source : 6ad9ca035943b3165ae01d1a4acdb8cfe9cabbe7
2016-03-08 16:44:41 +00:00
Andreas Tolfsen a9b5a85fc1 Bug 1251763 - Correct type check on singular returned elements; r=automatedtester
The return values from the different element search functions in searchFn
have inconsistent return types, and a null check is usually not what
we want.  In order to have findElement consistently return a no such
element error, we need to do a loose false test.

This bug has affected the findElement command when using the tag
name, name, class name, link text, and partial link text selectors.
Other selectors were unaffected.

MozReview-Commit-ID: C26R3YrqKyf

--HG--
extra : rebase_source : dc723ae147b9208b4274ffc4a5338f0107ddd0ed
2016-03-08 16:23:50 +00:00
Andreas Tolfsen 05e86fe521 Bug 1253244 - Correct x,y offset type checks and add tests; r=automatedtester
The xOffset and yOffset arguments to element.coordinates previously
checked loose falsiness.  If a number <= 0 would be given as an argument,
they would not be used and it would return the centre of the element.

This change adds more checks, documentation, and tests.

MozReview-Commit-ID: KmsiVFipzWx

--HG--
extra : rebase_source : 96e6c8c127071356fec029f5eaa4254ae60930b3
2016-03-04 15:34:28 +00:00
Andreas Tolfsen fadb4f79f3 Bug 1253244 - Use element.coordinates in action module; r=automatedtester
MozReview-Commit-ID: 2FJJImg4NsI

--HG--
extra : rebase_source : 6038343d9b8104c8f5b8b51f42794a42b6e8c752
2016-03-03 14:29:53 +00:00
Andreas Tolfsen 1a08c44699 Bug 1253244 - Use element.coordinates in listener; r=automatedtester
MozReview-Commit-ID: 4sWZNXrenqZ

--HG--
extra : rebase_source : 8a212826ff0dbe4a2555a9712f7fd7039f7ad5ff
2016-03-03 14:28:40 +00:00
Andreas Tolfsen 772f8fbb0b Bug 1253248 - Use element.Strategy enum consistently; r=automatedtester
Removes the exported constants from testing/marionette/element.js and
introduces the migrates to using the element.Strategy enum consistently
throughout Marionette.

The supported strategies array passed into ElementManager's ctor has
also received some much needed attention and now actually works.

MozReview-Commit-ID: LPuDX0aishM

--HG--
extra : rebase_source : bb06ea5a25d9a0dbcd6f3e1311d31df95cd4e26d
2016-03-04 12:01:09 +00:00
Andreas Tolfsen ea6b2b1f06 Bug 1253236 - Reuse element.isXULElement; r=automatedtester
MozReview-Commit-ID: 7P02xsSLuCl

--HG--
extra : rebase_source : 6801299b05fe7fdbceebdf1e0a84e4544863e111
2016-03-03 14:21:45 +00:00