Closed Bug 1130951 Opened 11 years ago Closed 11 years ago

(CopyPasteTest) Marionette test for selection carets' tilt function

Categories

(Core :: DOM: Selection, defect)

x86_64
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: chenpighead, Assigned: chenpighead)

References

Details

Attachments

(2 files, 3 obsolete files)

Marionette test for bug 1096169
Assignee: nobody → jeremychen
Attachment #8561952 - Flags: review?(dburns)
Attachment #8561952 - Attachment is obsolete: true
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+
Attachment #8561968 - Flags: review?(dburns) → review+
Remove debugging print, and put spaces around the operator.
Attachment #8561955 - Attachment is obsolete: true
Attachment #8562544 - Flags: review+
Attachment #8561968 - Attachment description: Part1: v2 A little refactoring for test_selectioncarets.py → Part1: v2 A little refactoring for test_selectioncarets.py. r=automatedtester
Change patch format from git to hg.
Attachment #8562544 - Attachment is obsolete: true
Attachment #8562546 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: