Closed
Bug 1130951
Opened 9 years ago
Closed 9 years ago
(CopyPasteTest) Marionette test for selection carets' tilt function
Categories
(Core :: DOM: Selection, defect)
Tracking
()
RESOLVED
FIXED
mozilla38
Tracking | Status | |
---|---|---|
firefox38 | --- | fixed |
People
(Reporter: chenpighead, Assigned: chenpighead)
References
Details
Attachments
(2 files, 3 obsolete files)
2.76 KB,
patch
|
automatedtester
:
review+
|
Details | Diff | Splinter Review |
5.30 KB,
patch
|
chenpighead
:
review+
|
Details | Diff | Splinter Review |
Marionette test for bug 1096169
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jeremychen
Blocks: CopyPasteTest
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8561952 -
Flags: review?(dburns)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8561955 -
Flags: review?(dburns)
Assignee | ||
Updated•9 years ago
|
Attachment #8561952 -
Flags: review?(dburns)
Assignee | ||
Updated•9 years ago
|
Attachment #8561952 -
Attachment is obsolete: true
Comment 4•9 years ago
|
||
Comment on attachment 8561955 [details] [diff] [review] Part2: v1 Add test case for selection carets' tilt handling Review of attachment 8561955 [details] [diff] [review]: ----------------------------------------------------------------- r+ only with the nit's fixed ::: layout/base/tests/marionette/test_selectioncarets.py @@ +170,5 @@ > + selection to be collapsed and the carets should be draggable. > + ''' > + > + sel = SelectionManager(el) > + print(sel.selected_content) This looks like it was left for debugging, can you remove it please @@ +189,5 @@ > + # Caret width is 29px, so we make a series of hit tests for the two > + # tilted carets. If any of the hits is missed, selection would be > + # collapsed and both two carets should not be draggable. > + (caret3_x, caret3_y), (caret4_x, caret4_y) = sel.selection_carets_location() > + right_x = int(caret4_x+0.5) please put spaces around the operator @@ +190,5 @@ > + # tilted carets. If any of the hits is missed, selection would be > + # collapsed and both two carets should not be draggable. > + (caret3_x, caret3_y), (caret4_x, caret4_y) = sel.selection_carets_location() > + right_x = int(caret4_x+0.5) > + for i in range (right_x, right_x+29, +1): please put spaces around the operator @@ +193,5 @@ > + right_x = int(caret4_x+0.5) > + for i in range (right_x, right_x+29, +1): > + self.actions.press(el, i, caret4_y).release().perform() > + > + left_x = int(caret3_x-0.5) please put spaces around the operator @@ +194,5 @@ > + for i in range (right_x, right_x+29, +1): > + self.actions.press(el, i, caret4_y).release().perform() > + > + left_x = int(caret3_x-0.5) > + for i in range (left_x, left_x-29, -1): please put spaces around the operator
Attachment #8561955 -
Flags: review?(dburns) → review+
Updated•9 years ago
|
Attachment #8561968 -
Flags: review?(dburns) → review+
Assignee | ||
Comment 5•9 years ago
|
||
Remove debugging print, and put spaces around the operator.
Attachment #8561955 -
Attachment is obsolete: true
Attachment #8562544 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8561968 -
Attachment description: Part1: v2 A little refactoring for test_selectioncarets.py → Part1: v2 A little refactoring for test_selectioncarets.py. r=automatedtester
Assignee | ||
Comment 6•9 years ago
|
||
try result: https://treeherder.mozilla.org/#/jobs?repo=try&revision=722725cc29c4
Assignee | ||
Comment 7•9 years ago
|
||
Change patch format from git to hg.
Attachment #8562544 -
Attachment is obsolete: true
Attachment #8562546 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 8•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/7c8d49762b13 https://hg.mozilla.org/integration/mozilla-inbound/rev/b3990dda83f8
Keywords: checkin-needed
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7c8d49762b13 https://hg.mozilla.org/mozilla-central/rev/b3990dda83f8
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox38:
--- → fixed
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in
before you can comment on or make changes to this bug.
Description
•