Commit Graph

697 Commits

Author SHA1 Message Date
Jeremy Chen
cf31e9da1a Bug 1138839 - Part1 - Marionette test for selecting text inside an iframe. r=automatedtester 2015-03-03 01:58:00 +01:00
Chris Manchester
2633d459e9 Bug 1109183 - Fix imports of the marionette client and remove spurious entry from sys.path provided by mach. r=ahal 2015-03-03 17:37:19 -08:00
Anish
6fbd7796a6 Bug 1135091 - convert remaining SpecialPowers.setBoolPref to pushPrefEnv, p=anishchandran94@gmail.com, r=jmaher, mwargers 2015-03-03 08:46:35 -05:00
Jeremy Chen
c2f2fbd948 Bug 1136567 - Marionette test for selection carets' positions after changing orientation of device. r=Automatedtester 2015-03-01 22:45:00 +01:00
Ehsan Akhgari
70135c9c76 Attempt to fix bug 1137717 by focusing the test frame 2015-03-02 16:06:08 -05:00
Ehsan Akhgari
0e39582252 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
Anish Chandran
215f8ebc47 Bug 1135383 - Convert Marionette unit tests to use SpecialPowers.pushPrefEnv. r=jmaher, r=mwargers 2015-02-25 19:31:36 +01:00
Carsten "Tomcat" Book
eebd298d8c Backed out changeset ed12a3822cb9 (bug 1132768) for mochitest-oop-1 test failures 2015-02-25 15:49:55 +01:00
Ehsan Akhgari
c86a381d66 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
David Burns
94b3e98f97 Bug 1107336: Update layout tests to use new Marionette Driver; r=jgriffin 2015-02-23 14:43:37 +00:00
Mats Palmgren
8f45132918 Bug 1128722 - part 2, tests. 2015-02-21 04:27:59 +00:00
Mats Palmgren
c253df4a40 Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-21 04:27:59 +00:00
Mats Palmgren
13bec80f8e 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
b1abeb037e 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
a5c2f23aa1 Bug 1128722 - part 2, tests. 2015-02-20 17:34:21 +00:00
Mats Palmgren
14190e8f0f Bug 1129078 - part 6, Test suite for ordinary multi-range selections (non-generated ranges). 2015-02-20 17:34:21 +00:00
Mats Palmgren
cc10780c4c 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
Jeremy Chen
339fcab73b Bug 1131948 - Part 3: Test caret visibility in multi-range text. r=dburns 2015-02-19 07:18:00 -05:00
Jeremy Chen
50eff0b0a4 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
fd91937296 Bug 1131948 - Part 1: Add content non-editable marionette tests. r=dburns 2015-02-19 07:06:00 -05:00
Masayuki Nakano
f1fce37659 Bug 1119609 part.14 Reimplement/redesign EventUtils.synthesizeKey() with nsITextInputProcessor r=smaug 2015-02-19 15:50:20 +09:00
Ting-Yu Lin
4f4b4eec1a Bug 1096185 - Part 3 - Fix function redefinition in test_selectioncarets.py. r=automatedtester 2015-02-11 23:33:00 +01:00
Ting-Yu Lin
3ea3b61c67 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
a502827c68 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)

--HG--
rename : testing/marionette/driver/marionette_driver/application_cache.py => testing/marionette/client/marionette/application_cache.py
rename : testing/marionette/driver/marionette_driver/by.py => testing/marionette/client/marionette/by.py
rename : testing/marionette/driver/marionette_driver/date_time_value.py => testing/marionette/client/marionette/date_time_value.py
rename : testing/marionette/driver/marionette_driver/decorators.py => testing/marionette/client/marionette/decorators.py
rename : testing/marionette/driver/marionette_driver/errors.py => testing/marionette/client/marionette/errors.py
rename : testing/marionette/driver/marionette_driver/expected.py => testing/marionette/client/marionette/expected.py
rename : testing/marionette/driver/marionette_driver/geckoinstance.py => testing/marionette/client/marionette/geckoinstance.py
rename : testing/marionette/driver/marionette_driver/gestures.py => testing/marionette/client/marionette/gestures.py
rename : testing/marionette/driver/marionette_driver/keys.py => testing/marionette/client/marionette/keys.py
rename : testing/marionette/driver/marionette_driver/marionette.py => testing/marionette/client/marionette/marionette.py
rename : testing/marionette/driver/marionette_driver/selection.py => testing/marionette/client/marionette/selection.py
rename : testing/marionette/driver/marionette_driver/wait.py => testing/marionette/client/marionette/wait.py
2015-02-11 12:15:22 -05:00
David Burns
990a203501 Bug 1107336: selection tests imports for marionette; r=jgriffin
--HG--
extra : rebase_source : b8d709390daaf3027e0ba6a933a915110cf299ca
extra : source : 5a2e085824ae4e61687730c89575c259fdaa9468
2015-01-09 21:42:06 +00:00
David Burns
1c4a656160 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
--HG--
extra : rebase_source : e1b821760481477805968de7f6910fca949f4e0c
extra : source : d1847f46d2934a8e73aa71cc9c463b04dd3c1be9
2014-12-09 20:21:32 +00:00
Jeremy Chen
0ae4728f5a Bug 1130951 - Part2: v2 Add test case for selection carets' tilt handling. r=automatedtester 2015-02-10 22:03:00 +01:00
Jeremy Chen
5c06ff40ff Bug 1130951 - Part1: v2 a little refactoring for test_selectioncarets.py. r=Automatedtester 2015-02-10 00:46:00 +01:00
Kaustabh Datta Choudhury
ca6b7c2deb 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
c3ceff3238 Bug 1123067 - part 2, tests. 2015-02-03 23:54:32 +00:00
Wes Kocher
c558648fb7 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
a945bab440 Bug 1123067 - part 2, tests. 2015-02-02 22:34:17 +00:00
Masayuki Nakano
c2b3803f80 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
9569996b4b Bug 917322 part.10 Remove unnecessary synthesizeComposition(compositionstart) from all tests r=smaug 2015-01-28 15:27:32 +09:00
Ehsan Akhgari
87b3431373 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
8746c1322e 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
b0b88d5c7e 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
d6a4111b08 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
57ce560b0f 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
d89db8b324 Bug 1121335 - Add the testing of selectioncarets drag with multiple selection ranges, r=roc 2015-01-25 19:36:00 +01:00
Ehsan Akhgari
7615233029 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
eded800b4f Backed out changeset 2b79bd646942 (bug 1109968) for b2g ics m9 test failures 2015-01-23 11:33:31 +01:00
Ehsan Akhgari
ad6e9a36cc 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
11e2274a1b Backed out changeset d1847f46d293 (bug 1107336) 2015-01-21 16:12:28 +01:00
Carsten "Tomcat" Book
c5ccb9cfdb Backed out changeset 5a2e085824ae (bug 1107336) 2015-01-21 16:10:57 +01:00
David Burns
5a1e19cfcb Bug 1107336: selection tests imports for marionette; r=jgriffin
--HG--
extra : rebase_source : 807b6f129b932445da3355b11bd3c7ff569c852e
2015-01-09 21:42:06 +00:00
David Burns
07e00018b8 Bug 1107336: Update layout tests that use marionette to use new Marionette Driver module; r=jgriffin
--HG--
extra : rebase_source : 645d09af73a9072a8c39a4f85cf741fb945a52d1
2014-12-09 20:21:32 +00:00
Jeremy Chen
8056e734b5 Bug 1110917 - Part 1 - Add test cases for selectioncaret changes. r=dburns 2014-12-31 14:40:39 +08:00
Ehsan Akhgari
c6e91735d0 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
ac58623238 Backout bug 1110917 for Gij red. 2015-01-14 11:25:15 -08:00