Commit Graph

983 Commits

Author SHA1 Message Date
Ting-Yu Lin
0da60bf935 Bug 1221459 - Remove TouchCaret and SelectionCarets from marionette tests. r=mtseng 2015-12-22 14:14:12 +08:00
Ting-Yu Lin
3934fbd299 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.
2015-12-22 14:14:12 +08:00
Nigel Babu
8dcb41c22e Backed out changeset b61190bd4069 (bug 1121459) 2015-12-22 14:03:19 +05:30
Nigel Babu
221e589e8b Backed out changeset 218b4db3e21a (bug 1121459) 2015-12-22 14:03:18 +05:30
Ting-Yu Lin
f27bd7dc64 Bug 1121459 - Remove TouchCaret and SelectionCarets from marionette tests. r=mtseng 2015-12-22 14:14:12 +08:00
Ting-Yu Lin
7f00ca43d6 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.
2015-12-22 14:14:12 +08:00
Botond Ballo
13225b9da8 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.
2015-12-08 16:49:46 -05:00
Ting-Yu Lin
9f3a3f949d Bug 1206545 - Add a marionette test case. r=roc
Test AccessibleCaretEventHub is properly initialized if <html> has
"display: none" initially.
2015-11-16 18:16:43 +08:00
Xidorn Quan
b6cc9f8428 Bug 1213710 part 3 - Remove enableTestPlugin.js files and make the tests reference plugin-utils.js directly. r=bsmedberg 2015-11-17 09:54:12 +11:00
Simon Montagu
432859415f Bug 1216096: restore previous RTL caret behaviour by backout of bug 1164963, bug 1177505, and bug 1180417. r=jfkthame 2015-11-10 04:42:23 -08:00
Nicholas Nethercote
0b41983875 Bug 1059014 (part 1) - Remove support for max line box width. r=dbaron.
This basically reverts bug 780258.
2015-11-04 20:25:01 -08:00
Andrew McCreight
ddd8d67f2c Bug 1219842 - Enable a bunch of mochitest-plain tests under e10s. r=mrbkap 2015-10-31 06:26:44 -07:00
Jeremy Chen
beb624417d Bug 1210341 - (v3) Reduce accessiblecaret size. r=TYLin 2015-10-19 01:53:00 +02:00
Ting-Yu Lin
31c8df0652 Bug 1199625 - Test focus not being changed by long-pressing on non-selectable. r=mtseng
We already had focus changing tests covered by
_test_focus_obtained_by_long_press(). This patch adds tests for focus
not being changed from an editable element after long-pressing on a
non-selectable element.

These tests will fail after reverting this change.
"Bug 1197739 - Do not change focus too early unless the frame is selectable"
https://hg.mozilla.org/mozilla-central/rev/4f2822bbbdb2
2015-10-13 17:26:29 +08:00
Ting-Yu Lin
eb9bcbd089 Bug 1200364 - Fix AccessibleCaret jumps when dragging. r=roc
TouchCaret does not have this issue since it clamps the dragging point
to the editable content boundary.

Fix this bug by porting TouchCaret::GetContentBoundary() to
AccessibleCaret. I apply the clamp logic to both cursor mode and
selection mode if the focus node is on an editable content, which makes
carets dragging in selection mode smoother than SelectionCarets.
2015-10-07 18:09:04 +08:00
Ting-Yu Lin
406201deca Bug 1207934 - Add marionette test for appearance changing. r=automatedtester
Test the second carets can still be dragging after its appearance
changing from Normal to NormalNotShown then back to Normal again. This
test is only for AccessibleCaret, not for SelectionCarets.
2015-10-07 18:09:03 +08:00
Ting-Yu Lin
fa7f5dd509 Bug 1207934 - Fix word_location(). r=automatedtester
word_location() did not work if there are multiple spaces between words.
We split by \S+ which is non-spaces, so tokens[0] is an space token.
Test cases are added to ensure the correctness.
2015-10-07 18:09:03 +08:00
Ting-Yu Lin
cc5c64417f Bug 1212186 - Disable 'layout.word_select.eat_space_to_next_word' in carets tests. r=mtseng
To get the same behavior across all platforms for carets test, disable
'layout.word_select.eat_space_to_next_word'. In this way, we don't need
to worry about the spaces being selected on Windows, and those strip()
in individual tests can be eliminated.
2015-10-07 18:09:03 +08:00
Ting-Yu Lin
210bd9d0c7 Bug 1210315 - Disable long tap injector in marionette tests. r=automatedtester
We send synthesized long tap events in marionette tests in bug 1209841.
No need to use long tap injector.
2015-10-02 23:10:30 +08:00
Ting-Yu Lin
9acf4865cf Bug 1210315 - Use pref utilities in test_selectioncarets.py. r=automatedtester
Use the preferences utilities introduced in bug 1164124.
2015-10-02 23:10:30 +08:00
Ting-Yu Lin
8591f5f559 Bug 1210315 - Use pref utilities in test_touchcaret.py. r=automatedtester
Use the preferences utilities introduced in bug 1164124.
2015-10-02 23:10:30 +08:00
Ting-Yu Lin
1ca66f4f15 Bug 1210315 - Inline selectors in carets tests. r=automatedtester
All of them are used only once. It reads better to inline them.
2015-10-02 23:10:30 +08:00
Ting-Yu Lin
c667b3b35e Bug 1209841 - Send synthesized mouse long tap to gecko. r=automatedtester
Instead of using long_press_without_contextmenu() with built-in long tap
injector in AccessibleCaretEventHub to select a word, we can use
DOMWindowUtis to send synthesized mouse long tap events to gecko. This
triggers the code path which is closer to the real events fired by APZ
on B2G.

This change also makes marionette tests cover the focus-changing code by
long tap in AccessibleCaretManager. This is subtle but significant since
it's possible to write focus changing tests via long tap now.
2015-09-30 18:29:35 +08:00
Ting-Yu Lin
6bd1935b37 Bug 1209841 - Strip prefix underscore in to_unix_line_ending(). r=automatedtester 2015-09-30 18:29:35 +08:00
Ting-Yu Lin
e145156ef3 Bug 1209841 - Simplify functions related to select word. r=automatedtester
* Use word_location() and long_press_on_location() to implement
  long_press_on_word.
* Use long_press_on_location() instead of
  long_press_without_contextmenu().
2015-09-30 18:29:35 +08:00
Ting-Yu Lin
fdd91c0259 Bug 1209841 - Delete test_selectioncarets2.py. r=automatedtester 2015-09-30 18:29:34 +08:00
Ting-Yu Lin
e9280d2e00 Bug 1209841 - Merge test_selectioncarets2.py into test_selectioncarets.py. r=automatedtester
* Eliminate the duplicated code for setting the preferences.
* Rename open_test_html() in test_selectioncarets2.py to
  open_test_html_multirange() to avoid name collision.
2015-09-30 18:29:34 +08:00
Tooru Fujisawa
96be33d277 Bug 1207495 - Remove use of expression closure from layout/. r=bz 2015-09-23 18:40:36 +09:00
Gijs Kruitbosch
474fb97911 Bug 636905 - part 4: add tests for interactivity requirement for onbeforeunload, r=bz 2015-09-24 12:10:19 +01:00
Gijs Kruitbosch
ee5e92720f Bug 636905 - part 3: flip prefs in tests to keep them working, r=jaws 2015-09-26 15:01:51 +01:00
Arpad Borsos
436f27889c Bug 1208985 - Use height for scroll-snap-points-y percentage values; r=kip
The CSS scroll snapping specification defines percentages to be
`relative to same axis of the padding-box of the scroll container`,
which means that y-axis should be based no height, not width.
2015-09-28 14:58:56 +02:00
Andreas Tolfsen
a40972ac73 Bug 1203074: Move caret to end of textual input field before sending keys
When a TEXTAREA element is focused it returns the cursor to the last
position was at, or places it last.  INPUT @type="text" (or any other
textual input element) places the caret at the beginning.  Because of
this we move the caret to the end of the input field.  The next time
the element is focussed, the cursor should move to the end.

The layout touch caret tests relied on the caret being left in its
previous position.  This patch addresses that by using the advanced user
interaction API for these test cases.

r=jgriffin
2015-09-09 14:53:53 +01:00
Xidorn Quan
b7c23417fa Bug 1202908 part 1 - Remove pref layout.css.will-change.enabled. r=dbaron 2015-09-11 16:00:10 +10:00
Ting-Yu Lin
fece1697ea Bug 1200194 - Remove unneeded AccessibleCaretManager::OnScrolling(). r=roc
This functions is for hiding caret in cursor mode on desktop browser
when receiving NS_WHEEL_WHEEL, which is never used on B2G in production.

On desktop browser, a proper wheel scroll cycle begins by NS_WHEEL_START
and ends by NS_WHEEL_STOP, which was covered by gtest. Move the three
marionette test for TouchCaret only.
2015-09-09 16:47:21 +08:00
Ting-Yu Lin
ef4300479e Bug 1200194 - Add UpdateCaretsHint to guide appearance changing. r=roc
This is the patch which fixed the bug.

When calling OnScrollPositionChanged in cursor mode, we want the
appearance of the caret to be preserved since the caret might be hidden
due to timeout. We should respect the old appearance of the caret.

Add a marionette test to ensure the caret does not appear due to
ScrollPositionChanged.
2015-09-09 16:47:20 +08:00
Bobby Holley
ae062ee0a1 Bug 1196638 - Infer the proper button for synthesized mouse clicks on all callsites. r=jmaher 2015-08-22 09:51:51 -07:00
Kartikaya Gupta
f4a9ec4466 Bug 1191277 - Ensure that we don't find clusters of clickable elements when there is no possible way for the heuristic to actually target those elements. r=domivinc 2015-08-15 11:15:29 -04:00
Drew Willcoxon
9a7dc12fb4 Bug 1188665 - Make nsIDOMWindowUtils.disableDialogs() disable onbeforeunload dialogs. r=bz 2015-07-31 16:13:01 -07:00
Ting-Yu Lin
12dd37df77 Bug 1172382 - Disable AccessibleCaret on some tests. r=roc
All the tests disabled for AccessibleCaret had already being disabled
for either TouchCaret or SelectionCarets.
2015-07-27 03:00:00 -04:00
Carsten "Tomcat" Book
fe05a4ca58 Backed out changeset c5e6edadb0d1 (bug 1172382) for mulet R6 Reftest Failures 2015-07-27 08:47:23 +02:00
Ting-Yu Lin
fed1c22abe Bug 1172382 - Disable AccessibleCaret on some tests. r=roc
All the tests disabled for AccessibleCaret had already being disabled
for either TouchCaret or SelectionCarets.
2015-07-27 11:56:04 +08:00
Kartikaya Gupta
2412800de8 Bug 1181763 - Allow the target fluffing code to fluff even when directly hitting something clickable. r=roc
There is a common pattern on the web where a click listener is registered on a
container element high up in the DOM tree, and based on the target of the click
events, it performs the appropriate action. In such cases, our existing fluffing
code was not getting activated anywhere inside the container, because the entire
container was considered clickable. However, this is not user-friendly because
often the actual targets inside the container are small and hard to hit. Also,
the fluffing code will often take the container element itself as the target,
even if the user actually hit something inside the container.

This patch changes this behaviour so when an event hits inside a clickable
container, fluffing still occurs, but is restricted to DOM descendants of the
container. This allows fluffing to work in the above scenarios, and since the
events will bubble up to the container, the listeners on the container are
guaranteed to still trigger.
2015-07-17 08:36:00 -04:00
Ryan VanderMeulen
381da51d6d Backed out changeset ec3acc5237a8 (bug 1181763) for WinXP test_event_target_radius.html failures.
CLOSED TREE
2015-07-17 10:46:31 -04:00
Kartikaya Gupta
e06fd6228c Bug 1181763 - Allow the target fluffing code to fluff even when directly hitting something clickable. r=roc
There is a common pattern on the web where a click listener is registered on a
container element high up in the DOM tree, and based on the target of the click
events, it performs the appropriate action. In such cases, our existing fluffing
code was not getting activated anywhere inside the container, because the entire
container was considered clickable. However, this is not user-friendly because
often the actual targets inside the container are small and hard to hit. Also,
the fluffing code will often take the container element itself as the target,
even if the user actually hit something inside the container.

This patch changes this behaviour so when an event hits inside a clickable
container, fluffing still occurs, but is restricted to DOM descendants of the
container. This allows fluffing to work in the above scenarios, and since the
events will bubble up to the container, the listeners on the container are
guaranteed to still trigger.
2015-07-17 08:36:00 -04:00
Boris Zbarsky
85cee4719f Bug 1181765. Remove uses of mozRequestAnimationFrame from layout tests. r=bkelly 2015-07-14 15:28:58 -04:00
Geoff Brown
e7ae18404c Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Ted Clancy
983dbf2ce8 Bug 1164693 - Part 1: Directional caret should point in caret direction in bidi paragraphs. r=smontagu 2015-06-05 21:44:54 -04:00
Ms2ger
8f57c31089 Bug 1172536 - Stop using for each loops in layout; r=roc
These are SpiderMonkey-proprietary legacy feature which has been deprecated
and is expected to be removed in due course.

This commit also fixes a number of bugs in test_bug708874.xul. In particular,
because of the semicolon after the for head, the (alleged) loop body was only
executed for the final element of the array ({}), and because each of the
functions under test threw an exception, only the first call was executed.

I do not know of a way to test the changes in frame-verify.js, so I can't
guarantee they actually work.
2015-06-20 09:16:51 +02:00
Maksim Lebedev
ab7cb1313d Bug 1162990 - Add test for check pointerleave event behavior. r=smaug 2015-06-17 01:54:00 -04:00
Andrew Comminos
a4b62a6656 Bug 1171972 - Don't expect scrollbar buttons on GTK themes. r=karlt 2015-06-05 09:34:00 -04:00