Commit graph

924 commits

Author SHA1 Message Date
Ryan VanderMeulen
3b7fc0b68e No bug - Enable some e10s that pass and add some more annotations to ones that don't. 2016-05-09 17:01:16 -04:00
Mats Palmgren
7364d9ac57 Bug 842853 - Follow-up to fix a test typo. r=me 2016-05-01 00:38:32 +02:00
Kartikaya Gupta
0858e31ab6 Bug 1268195 - When restoring a scroll position outside of incremental load, don't keep trying in a loop - just do it once and stop. r=tnikkel
It may be that when the frame is reconstructed after load, the frame gets shorter,
and the old scroll position cannot be restored, because it is out of bounds. In
such a case, we don't want to keep mRestorePos tracking the old scroll position,
because it can get incorrectly applied on a future frame reconstruction. Instead,
for scroll position restorations during frame reconstructions, we just try the
restore once and then clear mRestorePos.

MozReview-Commit-ID: BHoJHz0mGmf
2016-04-29 23:06:18 -04:00
Daniel Holbert
c5c19672a7 Bug 1255180 part 3: Update test_bug370436.html to use SpecialPowers for privileged "rangeParent" access, & drop now-obsolete checks for SOWs in chrome. r=bholley
This patch also enables the test by uncommenting it in mochitest.ini, since it should now run successfully.

MozReview-Commit-ID: 36ZvUYA7sDi
2016-04-18 20:26:36 -07:00
Daniel Holbert
2ea3c08df4 Bug 1255180 part 2: Update script/style paths in test_bug370436.html to point to mochitest-plain resources. r=bholley
MozReview-Commit-ID: ElBfZMQOjSl
2016-04-18 20:26:35 -07:00
Daniel Holbert
3780efe576 Bug 1255180 part 1: Move test_bug370436.html out of its mochitest-chrome subdirectory. r=bholley
This patch also temporarily disables the test by commenting it out in mochitest.ini, its new home. (I'm disabling it temporarily because it won't pass until later patches in this queue have landed.)

MozReview-Commit-ID: 2CixMWUin8W

--HG--
rename : layout/base/tests/chrome/test_bug370436.html => layout/base/tests/test_bug370436.html
2016-04-18 20:26:33 -07:00
Markus Stange
2e917fb8fa Bug 1236043 - Adjust reftests and reftest annotations for new invalid region simplification. r=jrmuizel
Make the test_transformed_scrolling_repaints* tests taller so that the top and the bottom of the scrolled area don't share the same tile.
Fuzz layout/reftests/text/wordwrap-03.html on Linux because the native textbox gradient is painted in a slightly different position depending on the invalid area.
Mark layout/reftests/forms/select/out-of-bounds-selectedindex.html as fuzzy on Android because some listbox rounded corner pixel differs with the new invalidation behavior.
Mark layout/reftests/bugs/456219-1c.html as fuzzy on Linux, reasons unknown. :-(
Disable flexbox-widget-flex-items-3.html because of bad file input drawing on Linux, see bug 1260965.

MozReview-Commit-ID: B5c1a8D0G8F

--HG--
extra : rebase_source : 3e281d035831c77246d0e439246fdab9395dc884
2016-04-18 14:18:44 -04:00
Ting-Yu Lin
152cf5d714 Bug 1168891 Part 2 - Allow one caret to be dragged across the other caret. r=mats
This behavior matches the Android convension and the built-in selection
on all desktop platforms.

MozReview-Commit-ID: 2kNm8UZnqH0

--HG--
extra : rebase_source : 097918c7c49e7cd545af52e9b3f3c540475ec589
2016-04-11 17:57:29 +08:00
Daniel Holbert
cfd458ff95 (no bug) whitespace cleanup in test_bug370436.html. (no review & DONTBUILD because whitespace-only)
MozReview-Commit-ID: ipuEKve7PF
2016-04-11 09:52:12 -07:00
Kartikaya Gupta
2dccededc8 Bug 1255022 - Make the test_transformed_scrolling_repaints* tests mochitest-plain instead of mochitest-chrome. r=mstange
MozReview-Commit-ID: F0CiZlIrWuk

--HG--
rename : layout/base/tests/chrome/test_transformed_scrolling_repaints.html => layout/base/tests/test_transformed_scrolling_repaints.html
rename : layout/base/tests/chrome/test_transformed_scrolling_repaints_2.html => layout/base/tests/test_transformed_scrolling_repaints_2.html
rename : layout/base/tests/chrome/test_transformed_scrolling_repaints_3.html => layout/base/tests/test_transformed_scrolling_repaints_3.html
rename : layout/base/tests/chrome/transformed_scrolling_repaints_3_window.html => layout/base/tests/transformed_scrolling_repaints_3_window.html
2016-03-31 23:55:06 -04:00
Mats Palmgren
de075da893 Bug 1259949 - Caret reftests. 2016-04-01 02:08:15 +02:00
Ehsan Akhgari
3c28741897 Bug 1259025 - Enable test_reftests_with_caret.html on e10s; r=mrbkap 2016-03-23 19:42:59 -04:00
Mats Palmgren
28c2af15f6 Bug 1258308 - Reftests. 2016-03-22 22:49:57 +01:00
Mats Palmgren
734065f500 Bug 1237236 - Reftests to check caret position after collapsing a selection to the end of a line. 2016-03-17 17:27:56 +01: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
Ehsan Akhgari
aeb1803db1 Bug 1254985 - Port test_scroll_selection_into_view.html to mochitest-plain so that it runs under e10s; r=mrbkap
--HG--
rename : layout/base/tests/chrome/scroll_selection_into_view_window.html => layout/base/tests/scroll_selection_into_view_window.html
2016-03-09 16:41:51 -05:00
Ting-Yu Lin
cc904bb3cc Bug 1253989 Part 6 - Refactor open_test_html(). r=mtseng
MozReview-Commit-ID: 2VY1GnVF7Jx

--HG--
extra : rebase_source : 679d21e1fad9227cb89a62ee0d3d593948affcc0
2016-03-08 22:45:47 +08: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
Ting-Yu Lin
b40db974b8 Bug 1253989 Part 2 - Use @parameterized to rewrite cursor mode tests. r=mtseng
Remove _test_touch_caret_hides_after_receiving_wheel_event() completely
since it was a test only for touch caret, which is a leftover in bug
1221459.

MozReview-Commit-ID: 4szwuG6t5SF

--HG--
extra : rebase_source : 85a201d76016da65f14cd2cc0a641c342e266904
2016-03-08 22:21:31 +08:00
Ting-Yu Lin
33799d733f Bug 1253989 Part 1 - Remove tests for accessiblecaret preference off. r=mtseng
I don't feel these tests are helpful. It's unlikely that someone will
accidentally turn on AccessibleCaret on desktop platforms without being
noticed. Remove these tests also reduces the test running time.

MozReview-Commit-ID: 33RQQSy77gZ

--HG--
extra : rebase_source : 5cd7fd77a48f07ee137d8140481ea6210070d139
2016-03-08 22:21:30 +08:00
Neil Deakin
b4405ac04b Bug 1246669 - Enable test_bug749186.html and test_bug345267.html for e10s. r=dao 2016-03-04 08:49:09 +01:00
Robert O'Callahan
e0d9d3c032 Bug 1250143. Account for border/padding on outer <svg> elements in GeometryUtils. r=mats
MozReview-Commit-ID: KwEwnukNgeF

--HG--
extra : rebase_source : d0ba2e4cd3e45280d8d030517c515caa04cb0b66
2016-02-25 23:54:09 +13:00
Kartikaya Gupta
1139f832a4 Bug 1198223 - Remove conditions that are always false. r=jmaher
MozReview-Commit-ID: DVI6R6MH0bo

--HG--
extra : rebase_source : 14edc0dd3f3920a856c51a9460d20a6eba77a13e
2016-02-19 11:34:47 -05:00
Matt Woodrow
c12916f2fc Bug 1246622 - Handle nested preserve-3d contexts when hit testing. r=roc 2016-02-15 09:47:57 +13:00
Kartikaya Gupta
6de82d82fb Bug 1243589 - Use SingleTiledContentClient even for scrollable layers if the layer is smaller than a single tile. r=mattwoodrow
MozReview-Commit-ID: 6eYFmoOVL6b
2016-02-12 08:29:25 -05:00
Robert O'Callahan
ffe62188d9 Bug 1194466. Use the table-outer frame's margin when requesting the margin for table element with getBoxQuads. r=mats
--HG--
extra : commitid : B0oDQPEJLRh
extra : rebase_source : 8ac8d10d9dae01b9c44b8b531c56d065e1a54d50
2016-02-02 22:47:15 +13:00
Kartikaya Gupta
8f1c0e2548 Bug 990916 - Disable synth mousemove events during pointer event testing, since the test doesn't expect them and fails. r=smaug
--HG--
extra : commitid : 7lD2aVM9K2g
2016-02-03 19:13:34 -05:00
Phil Ringnalda
afc2abda51 Bug 992311 - skip test_leaf_layers_partition_browser_window.xul on Linux for frequent timeouts, and adjust the comment to reflect that it's disabled on OS X for timing out, not because of a fixed bug
--HG--
extra : rebase_source : b20a0df199fb60a15615366a58570b0207a632ee
2016-01-31 00:45:03 -08:00
Matt Woodrow
1fdff5dabf Bug 1241394 - Hit testing with 3d transforms should use fuzzy when comparing depths. r=thinker 2016-01-25 13:37:50 +13:00
Tracy Walker
7c1847b3e9 Bug 1240750 - Put add button in ContentTask and modernize the rest of the test case and remove relevant skip-if in layout/base/tests/browser.ini. r=mconley 2016-01-20 13:34:07 -06:00
Jonathan Kew
e4d24adfd3 Bug 1235970 - Disable resizing of textarea in mochitest test_bug582181-2 to work around unreliable Gtk3 rendering of the resize grabber. r=dholbert 2016-01-12 09:20:13 +00:00
Jonathan Kew
103b7d0991 Bug 1237355 - patch 2 - Use -moz-appearance:none on textarea in mochitest test_bug644768 to work around unreliable Gtk3 theming. r=dholbert 2016-01-12 09:20:13 +00:00
Jonathan Kew
faf247edaf Bug 1237355 - patch 1 - Use -moz-appearance:none on input widget in mochitest test_bug499538-1 to work around unreliable Gtk3 theming. r=dholbert 2016-01-12 09:20:13 +00:00
Kartikaya Gupta
e8354f3515 Bug 1190541 - Update some tests to deal with fluffing that correctly accounts for presShell resolution. r=domivinc
--HG--
extra : commitid : AC2n8EbRl6w
2016-01-05 23:08:07 -05:00
Daniel Holbert
76ad1e932a Bug 1234659: Attempt to work around randomorange in test_bug332655-2.html by using an unthemed <input> widget. rs=jfkthame 2016-01-05 11:57:18 -08:00
Daniel Holbert
656cb779c3 Bug 1221919: Disable resizing of textarea in test_bug582181-1.html, since we don't use it and it causes intermittent orange due to inconsistent rendering. r=jfkthame 2015-12-30 10:38:40 -08:00
Daniel Holbert
a1e28f28c1 Bug 1204897: Attempt to work around randomorange in test_bug332655-1.html by using an unthemed <input> widget. r=jfkthame 2015-12-24 13:08:32 -08:00
Thinker K.F. Li
7022b0f440 Bug 1226904 - Fix boundary checking for leaves collecting. r=roc
--HG--
extra : rebase_source : 6338083654b2ad0de0ef7aa4987de1323f44c4b5
2015-12-22 19:17:00 -05:00
Ting-Yu Lin
4f08edc623 Bug 1221459 - Remove TouchCaret and SelectionCarets from marionette tests. r=mtseng
--HG--
extra : amend_source : 1252c855015cf8413fe2ba51ce2211f6b73a8aa6
2015-12-22 14:14:12 +08:00
Ting-Yu Lin
097bf2b9b7 Bug 1221459 - Remove TouchCaret and SelectionCarets prefs in test files. r=mtseng, r=roc
For test_bug648573.html and test_bug644768.html, we no longer need to
create an iframe to turn off the preferences. I move the content of
iframe.src back to the test files.

--HG--
extra : amend_source : eec926c474be934b99faeb604493c01c471066e7
2015-12-22 14:14:12 +08:00
Nigel Babu
ca777970e8 Backed out changeset b61190bd4069 (bug 1121459) 2015-12-22 14:03:19 +05:30
Nigel Babu
27e07fcae4 Backed out changeset 218b4db3e21a (bug 1121459)
--HG--
rename : layout/base/tests/marionette/test_accessiblecaret_selection_mode.py => layout/base/tests/marionette/test_selectioncarets.py
rename : layout/base/tests/marionette/test_accessiblecaret_cursor_mode.py => layout/base/tests/marionette/test_touchcaret.py
2015-12-22 14:03:18 +05:30
Ting-Yu Lin
749adb0ce3 Bug 1121459 - Remove TouchCaret and SelectionCarets from marionette tests. r=mtseng
--HG--
rename : layout/base/tests/marionette/test_touchcaret.py => layout/base/tests/marionette/test_accessiblecaret_cursor_mode.py
rename : layout/base/tests/marionette/test_selectioncarets.py => layout/base/tests/marionette/test_accessiblecaret_selection_mode.py
extra : rebase_source : 5d30a91c32a95fca4c1857fba57ef582b2fd2c06
2015-12-22 14:14:12 +08:00
Ting-Yu Lin
010e08ad0b Bug 1121459 - Remove TouchCaret and SelectionCarets prefs in test files. r=mtseng,roc
For test_bug648573.html and test_bug644768.html, we no longer need to
create an iframe to turn off the preferences. I move the content of
iframe.src back to the test files.

--HG--
extra : rebase_source : 5cf321bf3280e032cc6645810e3e7faa7a6ff615
2015-12-22 14:14:12 +08:00
Botond Ballo
17da85114e Bug 1228597 - Disable a test that uses context menus on b2g. r=tn
Getting the test to pass would involve changing code that deals with
context menus to be aware of pres shell resolutions.

--HG--
extra : source : 1162028cf78db4749fb3672dd6555bbb1a6cfe4b
2015-12-08 16:49:46 -05:00
Ting-Yu Lin
2322e84c59 Bug 1206545 - Add a marionette test case. r=roc
Test AccessibleCaretEventHub is properly initialized if <html> has
"display: none" initially.

--HG--
extra : commitid : 4D5733d5Xr8
extra : rebase_source : 9c767b200a63777b3f20e85ebc3f83272e979bc9
2015-11-16 18:16:43 +08:00
Xidorn Quan
ba639e3e07 Bug 1213710 part 3 - Remove enableTestPlugin.js files and make the tests reference plugin-utils.js directly. r=bsmedberg
--HG--
extra : source : 985fc6ba41c30914969940c30dd5a07c3f19f157
2015-11-17 09:54:12 +11:00