Closed
Bug 1253989
Opened 9 years ago
Closed 9 years ago
Refactor marionette tests for AccessibleCaret
Categories
(Core :: DOM: Selection, defect)
Core
DOM: Selection
Tracking
()
RESOLVED
FIXED
mozilla48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: TYLin, Assigned: TYLin)
References
(Blocks 1 open bug)
Details
Attachments
(6 files, 1 obsolete file)
58 bytes,
text/x-review-board-request
|
mtseng
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mtseng
:
review+
|
Details |
MozReview Request: Bug 1253989 Part 3 - Use @parameterized to rewrite selection mode tests. r?mtseng
58 bytes,
text/x-review-board-request
|
mtseng
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mtseng
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mtseng
:
review+
|
Details |
58 bytes,
text/x-review-board-request
|
mtseng
:
review+
|
Details |
I would like to add new marionette tests for AccessibleCaret in bug 1251519. But before that, I would like to clean up test_accessiblecaret_cursor_mode.py and test_accessiblecaret_selection_mode.py.
Some ideas in my mind:
1. Use @parameterized to generate tests for different elements.
2. Remove all the naming referencing "Touchcaret" and "SelectionCarets" since they were removed.
3. Remove some of the tests which are not used or might be covered by other tests to reduce test running time.
Assignee | ||
Comment 1•9 years ago
|
||
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.
Review commit: https://reviewboard.mozilla.org/r/38433/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38433/
Attachment #8727321 -
Flags: review?(mtseng)
Assignee | ||
Comment 2•9 years ago
|
||
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.
Review commit: https://reviewboard.mozilla.org/r/38435/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38435/
Attachment #8727322 -
Flags: review?(mtseng)
Assignee | ||
Comment 3•9 years ago
|
||
* 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.
Review commit: https://reviewboard.mozilla.org/r/38437/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38437/
Attachment #8727323 -
Flags: review?(mtseng)
Assignee | ||
Comment 4•9 years ago
|
||
- Remove "touch caret" and "selection carets" from file names and titles.
- test_selectioncarets_multipleline.html are untouched since I'm going to
merge it into test_carets_selection.html in next patch.
Review commit: https://reviewboard.mozilla.org/r/38439/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38439/
Attachment #8727324 -
Flags: review?(mtseng)
Assignee | ||
Comment 5•9 years ago
|
||
We now make test_minimum_select_one_character() cover multiple line
tests.
Review commit: https://reviewboard.mozilla.org/r/38441/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38441/
Attachment #8727325 -
Flags: review?(mtseng)
Assignee | ||
Comment 6•9 years ago
|
||
- 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.
Review commit: https://reviewboard.mozilla.org/r/38443/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38443/
Attachment #8727326 -
Flags: review?(mtseng)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8727321 [details]
MozReview Request: Bug 1253989 Part 1 - Remove tests for accessiblecaret preference off. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38433/diff/1-2/
Assignee | ||
Comment 8•9 years ago
|
||
Comment on attachment 8727322 [details]
MozReview Request: Bug 1253989 Part 2 - Use @parameterized to rewrite cursor mode tests. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38435/diff/1-2/
Assignee | ||
Comment 9•9 years ago
|
||
Comment on attachment 8727323 [details]
MozReview Request: Bug 1253989 Part 3 - Use @parameterized to rewrite selection mode tests. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38437/diff/1-2/
Assignee | ||
Comment 10•9 years ago
|
||
Comment on attachment 8727324 [details]
MozReview Request: Bug 1253989 Part 4 - Rename AccessibleCaret test files. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38439/diff/1-2/
Assignee | ||
Comment 11•9 years ago
|
||
Comment on attachment 8727325 [details]
MozReview Request: Bug 1253989 Part 5 - Make contents become multiple lines in test_selectioncarets.html. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38441/diff/1-2/
Assignee | ||
Comment 12•9 years ago
|
||
Comment on attachment 8727326 [details]
MozReview Request: Bug 1253989 Part 5 - Remove touch caret and selection carets naming. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38443/diff/1-2/
Assignee | ||
Comment 13•9 years ago
|
||
Review commit: https://reviewboard.mozilla.org/r/38489/diff/#index_header
See other reviews: https://reviewboard.mozilla.org/r/38489/
Attachment #8727486 -
Flags: review?(mtseng)
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → tlin
Status: NEW → ASSIGNED
Assignee | ||
Comment 14•9 years ago
|
||
Comment on attachment 8727486 [details]
MozReview Request: Bug 1253989 Part 6 - Refactor open_test_html(). r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38489/diff/1-2/
Assignee | ||
Comment 15•9 years ago
|
||
Comment on attachment 8727321 [details]
MozReview Request: Bug 1253989 Part 1 - Remove tests for accessiblecaret preference off. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38433/diff/2-3/
Assignee | ||
Comment 16•9 years ago
|
||
Comment on attachment 8727322 [details]
MozReview Request: Bug 1253989 Part 2 - Use @parameterized to rewrite cursor mode tests. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38435/diff/2-3/
Assignee | ||
Comment 17•9 years ago
|
||
Comment on attachment 8727323 [details]
MozReview Request: Bug 1253989 Part 3 - Use @parameterized to rewrite selection mode tests. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38437/diff/2-3/
Assignee | ||
Comment 18•9 years ago
|
||
Comment on attachment 8727324 [details]
MozReview Request: Bug 1253989 Part 4 - Rename AccessibleCaret test files. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38439/diff/2-3/
Assignee | ||
Comment 19•9 years ago
|
||
Comment on attachment 8727326 [details]
MozReview Request: Bug 1253989 Part 5 - Remove touch caret and selection carets naming. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38443/diff/2-3/
Attachment #8727326 -
Attachment description: MozReview Request: Bug 1253989 Part 6 - Remove touch caret and selection carets naming. r?mtseng → MozReview Request: Bug 1253989 Part 5 - Remove touch caret and selection carets naming. r?mtseng
Assignee | ||
Comment 20•9 years ago
|
||
Comment on attachment 8727486 [details]
MozReview Request: Bug 1253989 Part 6 - Refactor open_test_html(). r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38489/diff/2-3/
Attachment #8727486 -
Attachment description: MozReview Request: Bug 1253989 Part 7 - Refactor open_test_html(). r?mtseng → MozReview Request: Bug 1253989 Part 6 - Refactor open_test_html(). r?mtseng
Assignee | ||
Updated•9 years ago
|
Attachment #8727325 -
Attachment is obsolete: true
Attachment #8727325 -
Flags: review?(mtseng)
Assignee | ||
Comment 21•9 years ago
|
||
Comment on attachment 8727324 [details]
MozReview Request: Bug 1253989 Part 4 - Rename AccessibleCaret test files. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38439/diff/3-4/
Assignee | ||
Comment 22•9 years ago
|
||
Comment on attachment 8727326 [details]
MozReview Request: Bug 1253989 Part 5 - Remove touch caret and selection carets naming. r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38443/diff/3-4/
Assignee | ||
Comment 23•9 years ago
|
||
Comment on attachment 8727486 [details]
MozReview Request: Bug 1253989 Part 6 - Refactor open_test_html(). r?mtseng
Review request updated; see interdiff: https://reviewboard.mozilla.org/r/38489/diff/3-4/
Updated•9 years ago
|
Attachment #8727321 -
Flags: review?(mtseng) → review+
Comment 24•9 years ago
|
||
Comment on attachment 8727321 [details]
MozReview Request: Bug 1253989 Part 1 - Remove tests for accessiblecaret preference off. r?mtseng
https://reviewboard.mozilla.org/r/38433/#review35495
Comment 25•9 years ago
|
||
Comment on attachment 8727324 [details]
MozReview Request: Bug 1253989 Part 4 - Rename AccessibleCaret test files. r?mtseng
https://reviewboard.mozilla.org/r/38439/#review35503
Attachment #8727324 -
Flags: review?(mtseng) → review+
Comment 26•9 years ago
|
||
Comment on attachment 8727326 [details]
MozReview Request: Bug 1253989 Part 5 - Remove touch caret and selection carets naming. r?mtseng
https://reviewboard.mozilla.org/r/38443/#review35505
Attachment #8727326 -
Flags: review?(mtseng) → review+
Comment 27•9 years ago
|
||
Comment on attachment 8727486 [details]
MozReview Request: Bug 1253989 Part 6 - Refactor open_test_html(). r?mtseng
https://reviewboard.mozilla.org/r/38489/#review35507
Attachment #8727486 -
Flags: review?(mtseng) → review+
Comment 28•9 years ago
|
||
Comment on attachment 8727322 [details]
MozReview Request: Bug 1253989 Part 2 - Use @parameterized to rewrite cursor mode tests. r?mtseng
https://reviewboard.mozilla.org/r/38435/#review35509
Attachment #8727322 -
Flags: review?(mtseng) → review+
Updated•9 years ago
|
Attachment #8727323 -
Flags: review?(mtseng) → review+
Comment 29•9 years ago
|
||
Comment on attachment 8727323 [details]
MozReview Request: Bug 1253989 Part 3 - Use @parameterized to rewrite selection mode tests. r?mtseng
https://reviewboard.mozilla.org/r/38437/#review35511
Comment 30•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/864342da6536
https://hg.mozilla.org/integration/mozilla-inbound/rev/dc451d25f123
https://hg.mozilla.org/integration/mozilla-inbound/rev/2693625a55e0
https://hg.mozilla.org/integration/mozilla-inbound/rev/c0fdb08d2254
https://hg.mozilla.org/integration/mozilla-inbound/rev/ba096724ac7c
https://hg.mozilla.org/integration/mozilla-inbound/rev/c575320f1d60
Comment 31•9 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/864342da6536
https://hg.mozilla.org/mozilla-central/rev/dc451d25f123
https://hg.mozilla.org/mozilla-central/rev/2693625a55e0
https://hg.mozilla.org/mozilla-central/rev/c0fdb08d2254
https://hg.mozilla.org/mozilla-central/rev/ba096724ac7c
https://hg.mozilla.org/mozilla-central/rev/c575320f1d60
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
Assignee | ||
Comment 32•9 years ago
|
||
This is a refactor bug, which not affect firefox 47.
status-firefox47:
affected → ---
You need to log in
before you can comment on or make changes to this bug.
Description
•