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

117 Коммитов

Автор SHA1 Сообщение Дата
Jorg K 4bb58198d9 Bug 1263357 - When the caret is placed after visible line break, associate caret with frame on the next line instead. r=mats
--HG--
extra : amend_source : a0068b0c841189204e07cc6c0a19f83d5dac8da3
2016-10-14 14:21:00 -04:00
Thomas Wisniewski fe6139c017 Bug 932755 - Add support for input/textarea minLength and tooShort. r=mrbkap
--HG--
extra : rebase_source : 064985cbb241ef8705dcec28f60db9f4caf65ae4
2016-08-17 00:11:24 -04:00
firefox@hindlemail.co.uk 94f266f4ff Bug 1263288 - Make GetFrameForNodeOffset return a sibling frame for frameless content. r=mats
This fixes missing caret problems.

Also changed GetFrameForNodeOffset to be non recursive to prevent possibly of
large stack frame.
2016-05-11 15:28:45 -06:00
Mats Palmgren de075da893 Bug 1259949 - Caret reftests. 2016-04-01 02:08:15 +02: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 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
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
Ting-Yu Lin 3698f6f915 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 ac10f60e11 Backed out changeset c5e6edadb0d1 (bug 1172382) for mulet R6 Reftest Failures
--HG--
extra : rebase_source : f592d5f7b3785548007033e9946cea5af9ebc7c9
2015-07-27 08:47:23 +02:00
Ting-Yu Lin c106f27e4d Bug 1172382 - Disable AccessibleCaret on some tests. r=roc
All the tests disabled for AccessibleCaret had already being disabled
for either TouchCaret or SelectionCarets.

--HG--
extra : commitid : H2bSIbLfEXs
2015-07-27 11:56:04 +08:00
Ted Clancy bc4f5395cc Bug 1067788 - part 3: Fix timeouts in test_reftests_with_caret.html. r=ehsan
--HG--
extra : rebase_source : 069657ec018e913fc4c16506d6c7b7500b4978cf
2015-05-28 10:56:59 -04:00
Ehsan Akhgari 51fd5c3de1 Bug 956530 - Clear the delayed caret data when clicking on a selected part of a text control if the focus event handler selects the control; r=roc 2015-04-14 08:29:11 -04:00
Ehsan Akhgari a4099ba4c5 Bug 922977 - Request a longer timeout when running test_reftests_with_caret.html 2015-03-10 12:55:30 -04:00
Ehsan Akhgari 49cd9f3da4 Bug 1097242 - Make sure contenteditable -moz-user-select styles can be overridden by web pages; r=dbaron 2015-03-05 09:55:37 -05:00
Ehsan Akhgari 49c4a9f564 Bug 1127140 - Run the tests for bug 989012 with the touch caret disabled 2015-03-05 09:53:22 -05:00
Ehsan Akhgari f5032448f3 Bug 1132768 - Consider non-editable regions in contenteditable elements as user-select:all even if the editable region doesn't have the focus; r=roc 2015-02-26 09:18:27 -05:00
Carsten "Tomcat" Book fac9e15494 Backed out changeset ed12a3822cb9 (bug 1132768) for mochitest-oop-1 test failures
--HG--
extra : rebase_source : 25acbb70ac1aadeeaef466974c2a0f16de7a5fb1
2015-02-25 15:49:55 +01:00
Ehsan Akhgari 2f1041889b Bug 1132768 - Consider non-editable regions in contenteditable elements as user-select:all even if the editable region doesn't have the focus; r=roc 2015-02-25 07:35:33 -05:00
Mats Palmgren d73b668aa4 Bug 1128722 - part 2, tests. 2015-02-21 04:27:59 +00:00
Mats Palmgren ff536e5a24 Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-21 04:27:59 +00:00
Mats Palmgren 20b80ccdae Bug 1129078 - part 5, Test suite for multi-range selections involving user-select:none.
--HG--
rename : layout/reftests/fonts/Ahem.ttf => layout/base/tests/Ahem.ttf
2015-02-21 04:27:59 +00:00
Wes Kocher 88f34ca973 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 7ffa9baa18 Bug 1128722 - part 2, tests. 2015-02-20 17:34:21 +00:00
Mats Palmgren 96e5bf231f Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-20 17:34:21 +00:00
Mats Palmgren 0a533f22ed Bug 1129078 - part 5, Test suite for multi-range selections involving user-select:none.
--HG--
rename : layout/reftests/fonts/Ahem.ttf => layout/base/tests/Ahem.ttf
2015-02-20 17:34:21 +00:00
Kaustabh Datta Choudhury 2abf21620d Bug 1056851 - [layout] Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher
--HG--
extra : rebase_source : a4fdccae34cdbb27d9e1f03f2a758f26651abb1b
2015-02-06 11:50:00 +01:00
Mats Palmgren 4ec43c85d5 Bug 1123067 - part 2, tests. 2015-02-03 23:54:32 +00:00
Wes Kocher 249a7cc50c 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 08e3b95bdb Bug 1123067 - part 2, tests. 2015-02-02 22:34:17 +00:00
Ehsan Akhgari cdf636c674 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 4d42b88e0b 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 fa44e7387c 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 e8b3ff1eb5 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 084e7e0b3c 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
Ehsan Akhgari 5600f01996 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 b85d910517 Backed out changeset 2b79bd646942 (bug 1109968) for b2g ics m9 test failures 2015-01-23 11:33:31 +01:00
Ehsan Akhgari 4b7d675119 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
Ehsan Akhgari 09a262787c Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Xidorn Quan 9a699374b5 Bug 1063857 - Fix reftests for new justification algorithm.
--HG--
rename : layout/reftests/bugs/503399-ref.html => layout/base/tests/bug503399-ref.html
rename : layout/reftests/bugs/503399.html => layout/base/tests/bug503399.html
2014-11-10 12:24:51 +11:00
Ting-Yu Lin 8df0e30d32 Bug 1059165 - Part 5 - Fix existing test failures. r=ehsan
These tests all involving focusing on an empty element. Touch caret will
not show under the new touch caret UI spec. Therefore, I fix them by
disabling touch caret when running those tests.
2014-10-28 06:04:00 +01:00
Jonathan Watt 916e8d8c23 Bug 1087224 - Allow compareSnapshots and assertSnapshots to be passed fuzz values. r=smontagu 2014-10-22 12:29:06 +01:00
Jonathan Watt 3d17c3f208 Bug 1084650, part 2 - Change test_reftests_with_caret.html's log output so that it can be used with reftest-analyzer.xhtml. r=dholbert 2014-10-22 10:48:36 +01:00
Jonathan Watt e0b4c6a967 Bug 1084650, part 1 - Change test_reftests_with_caret.html's references to 'canvas' to 'iframe' to make the test less confusing. r=dholbert 2014-10-22 10:48:36 +01:00
Ting-Yu Lin bb554f2bb4 Bug 1082486 - Part 6 - Add tests to test_reftests_with_caret.html. r=roc
Touch caret should not be show in the two test cases since caret does
not show in the scroll frame.
2014-10-19 02:59:00 +02:00
Mats Palmgren 09253aa79a Bug 1061468 - Test that the caret is not rendered after a focused contenteditable element is removed from the document. 2014-09-09 23:27:56 +00:00
Ting-Yu Lin 9f95e11b8f Bug 1016184 - Part 3i: Fix test_reftests_with_caret.html on Mulet. r=ehsan
bug512295-1.html and bug512295-2.html are sending key events which hides
touch caret. Turn off the touch caret preference to fix test cases that
ought to be failed by definition of the touch caret behavior.
2014-08-18 00:02:00 -04:00
Ting-Yu Lin 38a105b052 Bug 1016184 - Part 3e: Fix test_reftests_with_caret.html. r=ehsan
Turn off the touch caret preference to fix test cases that ought to be
failed by definition of the touch caret behavior.

Thank Steven Lee <slee@mozilla.com> for the original WIP patch.
2014-07-27 00:19:00 +02:00
Ryan VanderMeulen 908eceaa30 Backed out 9 changesets (bug 1016184) for frequent OSX Gip timeouts.
Backed out changeset 0893f2ef4b9a (bug 1016184)
Backed out changeset 93587ce1162b (bug 1016184)
Backed out changeset a52c9d674927 (bug 1016184)
Backed out changeset ca2fd0f41a12 (bug 1016184)
Backed out changeset 84dacf014e39 (bug 1016184)
Backed out changeset 16854e321f23 (bug 1016184)
Backed out changeset 8acd5e707c83 (bug 1016184)
Backed out changeset d0513eae0c97 (bug 1016184)
Backed out changeset 0d03cd217c64 (bug 1016184)
2014-07-31 13:29:30 -04:00