Commit Graph

983 Commits

Author SHA1 Message Date
Mats Palmgren
19185a7450 Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-21 04:27:59 +00:00
Mats Palmgren
3c53804677 Bug 1129078 - part 5, Test suite for multi-range selections involving user-select:none. 2015-02-21 04:27:59 +00:00
Wes Kocher
3097a8a409 Backed out 8 changesets (bug 1129078, bug 1128722) for mochitest-5 failures
Backed out changeset f7eff607655a (bug 1128722)
Backed out changeset 801b3abc0de8 (bug 1128722)
Backed out changeset 275d27c2dba0 (bug 1129078)
Backed out changeset 9830ab1a2028 (bug 1129078)
Backed out changeset ce5cb876af9a (bug 1129078)
Backed out changeset c199ff86c77f (bug 1129078)
Backed out changeset 38b1b039f14d (bug 1129078)
Backed out changeset c8a99ee97313 (bug 1129078)
2015-02-20 12:24:25 -08:00
Mats Palmgren
ecfd3b2762 Bug 1128722 - part 2, tests. 2015-02-20 17:34:21 +00:00
Mats Palmgren
cd2d691dae Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-20 17:34:21 +00:00
Mats Palmgren
c65585a5f7 Bug 1129078 - part 5, Test suite for multi-range selections involving user-select:none. 2015-02-20 17:34:21 +00:00
Jeremy Chen
fcb4643350 Bug 1131948 - Part 3: Test caret visibility in multi-range text. r=dburns 2015-02-19 07:18:00 -05:00
Jeremy Chen
03027e51c8 Bug 1131948 - Part 2: Separate multiple line test cases from test_selectioncarets.html. r=dburns 2015-02-19 07:14:00 -05:00
Jeremy Chen
dd0a58cf04 Bug 1131948 - Part 1: Add content non-editable marionette tests. r=dburns 2015-02-19 07:06:00 -05:00
Masayuki Nakano
a9f75d8942 Bug 1119609 part.14 Reimplement/redesign EventUtils.synthesizeKey() with nsITextInputProcessor r=smaug 2015-02-19 15:50:20 +09:00
Ting-Yu Lin
1415e7aad6 Bug 1096185 - Part 3 - Fix function redefinition in test_selectioncarets.py. r=automatedtester 2015-02-11 23:33:00 +01:00
Ting-Yu Lin
8b72408849 Bug 1096185 - Part 2 - Change hit test in tilt mode. r=automatedtester
Due to the caret images changed, we need to change this test
accordingly.

It's sufficient to perform hit tests only targeting the left edge of the
left tilted caret and the right edge of the right tilted caret. It also
reduces the running time of the tests.

It's sad that we cannot retrieve the CSS style of the carets from ua.css
directly. We need to copy them to the test file by hand.
2015-02-12 01:05:00 +01:00
Ryan VanderMeulen
740e3af8e4 Backed out 12 changesets (bug 1107336) for Marionette harness bustage on a CLOSED TREE.
Backed out changeset 5075f0063d70 (bug 1107336)
Backed out changeset 9ef91d4fcf3b (bug 1107336)
Backed out changeset 995911340bf7 (bug 1107336)
Backed out changeset 4817d3cd3810 (bug 1107336)
Backed out changeset dad798a5e595 (bug 1107336)
Backed out changeset 4f60c437140c (bug 1107336)
Backed out changeset f92a5c6256fa (bug 1107336)
Backed out changeset 399a436c6e5f (bug 1107336)
Backed out changeset 0d04801bb2f0 (bug 1107336)
Backed out changeset 60d9d4d20971 (bug 1107336)
Backed out changeset 9c4b171c23be (bug 1107336)
Backed out changeset a07bb95eb209 (bug 1107336)
2015-02-11 12:15:22 -05:00
David Burns
2142308e86 Bug 1107336: selection tests imports for marionette; r=jgriffin 2015-01-09 21:42:06 +00:00
David Burns
07cc3aca45 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin 2014-12-09 20:21:32 +00:00
Jeremy Chen
6a379507b5 Bug 1130951 - Part2: v2 Add test case for selection carets' tilt handling. r=automatedtester 2015-02-10 22:03:00 +01:00
Jeremy Chen
20de03dceb Bug 1130951 - Part1: v2 a little refactoring for test_selectioncarets.py. r=Automatedtester 2015-02-10 00:46:00 +01:00
Kaustabh Datta Choudhury
222fc8ab39 Bug 1056851 - [layout] Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher 2015-02-06 11:50:00 +01:00
Mats Palmgren
33bbecace3 Bug 1123067 - part 2, tests. 2015-02-03 23:54:32 +00:00
Wes Kocher
9f3156cea6 Backed out 2 changesets (bug 1123067) for mochitest-1 bustage on a CLOSED TREE
Backed out changeset d35d83e9c9f2 (bug 1123067)
Backed out changeset ea4ea5299409 (bug 1123067)
2015-02-02 17:32:28 -08:00
Mats Palmgren
e4c01f1432 Bug 1123067 - part 2, tests. 2015-02-02 22:34:17 +00:00
Masayuki Nakano
095859574c Bug 917322 part.16 Rename COMPOSITION_ATTR_* in EventUtils.js with new constants of nsITextInputProcessor r=smaug 2015-01-28 15:27:33 +09:00
Masayuki Nakano
bf48bd2fa7 Bug 917322 part.10 Remove unnecessary synthesizeComposition(compositionstart) from all tests r=smaug 2015-01-28 15:27:32 +09:00
Ehsan Akhgari
7d51a91018 Bug 989012 - Part 2: Don't get stuck when seeing an image without a src or alt attribute; r=roc
We do not want to traverse inside native anonymous elements, but we
should still be able to skip over generated content, to avoid getting
stuck on such images.
2015-01-27 23:11:29 -05:00
Ehsan Akhgari
a916924d05 Bug 989012 - Part 1: Stop after passing over a non-selectable frame if one is found during the frame traversal; r=roc
The caret movement code already handles unselectable text frames if we
happen to land in the middle of one in nsTextFrame::PeekOffsetCharacter/Word.
However, when performing frame traversal to find the next frame to jump
to, we don't remember if we skipped over an unselectable frame, which causes
us to jump one offset too much when the caret is on the boundary of
selectable and unselectable content.  The test cases demonstrate the
scenario.  Note that an <img alt=foo> is implemented by adding a
generated content to the inline frame representing it, so as far as
the caret movement code is concerned, both test cases are treated similarly.

Note that we need to do this only when moving the selection, and not
when extending it.  We are adding an aExtend argument to
nsPeekOffsetStruct's constructor in order to be able to special case
that.
2015-01-27 23:11:26 -05:00
Ehsan Akhgari
d4c6d2cd2e Backed out 2 changesets (bug 989012) because of test failure on Linux32 opt mochitest-a11y on a CLOSED TREE
Backed out changeset 9698f6f3f72e (bug 989012)
Backed out changeset 22fb05349a10 (bug 989012)
2015-01-27 16:40:30 -05:00
Ehsan Akhgari
fdec2351fe Bug 989012 - Part 2: Don't get stuck when seeing an image without a src or alt attribute; r=roc
We do not want to traverse inside native anonymous elements, but we
should still be able to skip over generated content, to avoid getting
stuck on such images.
2015-01-27 15:35:48 -05:00
Ehsan Akhgari
59c2df2758 Bug 989012 - Part 1: Stop after passing over a non-selectable frame if one is found during the frame traversal; r=roc
The caret movement code already handles unselectable text frames if we
happen to land in the middle of one in nsTextFrame::PeekOffsetCharacter/Word.
However, when performing frame traversal to find the next frame to jump
to, we don't remember if we skipped over an unselectable frame, which causes
us to jump one offset too much when the caret is on the boundary of
selectable and unselectable content.  The test cases demonstrate the
scenario.  Note that an <img alt=foo> is implemented by adding a
generated content to the inline frame representing it, so as far as
the caret movement code is concerned, both test cases are treated similarly.

Note that we need to do this only when moving the selection, and not
when extending it.  We are adding an aExtend argument to
nsPeekOffsetStruct's constructor in order to be able to special case
that.
2015-01-27 15:35:32 -05:00
Peter Chang
c7a36a68f0 Bug 1121335 - Add the testing of selectioncarets drag with multiple selection ranges, r=roc 2015-01-25 19:36:00 +01:00
Ehsan Akhgari
5ba926b1a8 Bug 1109968 - Make all links in editable regions unfocusable; r=roc
The content inside an editable region is either editable itself, or
is inside a contenteditable="false" subtree.  In the first case,
it should not be focusable since it is editable.  In the second
case, it should not be focusable since the entire non-editable
region is treated as a special single entity for the purposes of
selection and caret movement, and having something focusable in
the middle of such a subtree breaks that model.
2015-01-23 08:49:28 -05:00
Carsten "Tomcat" Book
9cff548a30 Backed out changeset 2b79bd646942 (bug 1109968) for b2g ics m9 test failures 2015-01-23 11:33:31 +01:00
Ehsan Akhgari
3ccb23bc60 Bug 1109968 - Make all links in editable regions unfocusable; r=roc
The content inside an editable region is either editable itself, or
is inside a contenteditable="false" subtree.  In the first case,
it should not be focusable since it is editable.  In the second
case, it should not be focusable since the entire non-editable
region is treated as a special single entity for the purposes of
selection and caret movement, and having something focusable in
the middle of such a subtree breaks that model.
2015-01-23 00:55:12 -05:00
Carsten "Tomcat" Book
6bc7bee0e1 Backed out changeset d1847f46d293 (bug 1107336) 2015-01-21 16:12:28 +01:00
Carsten "Tomcat" Book
760d25825a Backed out changeset 5a2e085824ae (bug 1107336) 2015-01-21 16:10:57 +01:00
David Burns
470788fde5 Bug 1107336: selection tests imports for marionette; r=jgriffin 2015-01-09 21:42:06 +00:00
David Burns
7a05e0c7b7 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin 2014-12-09 20:21:32 +00:00
Jeremy Chen
f4321c616c Bug 1110917 - Part 1 - Add test cases for selectioncaret changes. r=dburns 2014-12-31 14:40:39 +08:00
Ehsan Akhgari
44a36312e0 Bug 1121499 - Make the textarea in the test case for bug 664087 three rows tall so that we don't get a scrollbar on OSX 10.10; r=roc 2015-01-15 08:04:02 -05:00
Gregor Wagner
56c852dc82 Backout bug 1110917 for Gij red. 2015-01-14 11:25:15 -08:00
Jeremy Chen
0c8db6c59e Bug 1110917 - Add test cases for selectioncaret changes. r=automatedtester 2014-12-31 14:40:39 +08:00
L. David Baron
f06d6f0b98 Bug 1110277 patch 3 - Look for the GenConPseudos() property on the first continuation/ib-split so that we can find it when looking for the ::after frame. r=bzbarsky
The change to GetAfterFrameForContent prevents the reframe that is part
of the chain of events leading to this bug, and thus fixes the bug on
its own.  The change to GetBeforeFrameForContent seems desirable for
symmetry.

Note that patch 6 also independently fixes the reported bug.

This probably needs somewhat careful review.  We should examine:

 (1) what the rules for calling nsLayoutUtils::GetBeforeFrame and
     nsLayoutUtils::GetAfterFrame are, and whether both (or neither)
     need to be patched.

 (2) What the rules are for which frame the GenConProperty() lives on,
     and whether we should adjust nsIFrame::GetGenConPseudos() to either
     do something more intelligent, or assert about callers.

(We should probably clean up some of these things in a followup bug.)

Since the symptom of this bug is (once patch 4 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).

This patch fixes the assertion on layout/generic/crashtests/600100.xhtml,
though I haven't investigated why.
2015-01-11 15:43:11 -08:00
L. David Baron
f7d86f7966 Bug 1110277 patch 1 - Consider the ib-split chain when checking for ::before and ::after in order to reframe when they're missing. r=bzbarsky
This patch is not needed to fix the bug, but it seems like it's probably
desirable.  It's not needed for this bug because
MaybeReframeForBeforePseudo and MaybeReframeForAfterPseudo are already
called (by ElementRestyler::RestyleChildren) on only the first and last
continuation or ib-split sibling with the same style.  So this patch
should only actually change anything for cases like a block-in-inline
split whose initial inline part is inside of a ::first-line (where
different parts of the block-in-inline split chain have different style).

Since the symptom of this bug is (once patch 6 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).
2015-01-11 15:43:10 -08:00
L. David Baron
92b6cc0421 Bug 1110277 patch 0 - Add mochitest for patch 1 and patch 3. r=heycam
Patch 1 and patch 3 will change the todo status of the first and second
tests, respectively, since they are what fix the tests.
2015-01-11 15:43:10 -08:00
Ryan VanderMeulen
896dbd815d Merge inbound to m-c. a=merge 2015-01-09 14:45:50 -05:00
Carsten "Tomcat" Book
58e541fefa Merge mozilla-central to b2g-inbound 2015-01-09 15:54:18 +01:00
Fernando Jimenez Moreno
26e15ff398 Bug 1101029 - Overlay iframe on top of front-most app. r=roc, sicking 2015-01-09 09:55:18 +01:00
Makoto Kato
21e5f7656c Bug 966157 - Part 3. Ignore assertion of test_bug558663.html for Linux e10s. r=masayuki 2015-01-09 16:40:25 +09:00
Joel Maher
3a14863b07 Bug 1114710 - test_leaf_layers_partition_browser_window.xul fails when run as a standalone directory. r=tn 2014-12-31 12:02:00 +01:00
Ryan VanderMeulen
4fafa9f3a2 Bug 1112988 - Skip layout/base on Mulet due to its inability to run the tests without blowing up in some way or another. 2014-12-17 22:39:14 -05:00
Ryan VanderMeulen
af424087b3 Bug 1087611 - Disable test_bug968148.html on Mulet. 2014-12-17 20:39:08 -05:00