Closed Bug 1022217 Opened 10 years ago Closed 10 years ago

Intermittent test_touchcaret.py test_touchcaret.TouchCaretTest.test_contenteditable_move_caret_to_the_right_by_one_character | AssertionError: u'A!BCDEFGHI' != u'ABCDEFGHI!'

Categories

(Remote Protocol :: Marionette, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 960897

People

(Reporter: RyanVM, Unassigned)

Details

https://tbpl.mozilla.org/php/getParsedLog.php?id=41240742&tree=Mozilla-Inbound Ubuntu VM 12.04 x64 mozilla-inbound debug test marionette on 2014-06-06 14:42:37 PDT for push cfd4978a9a37 slave: tst-linux64-spot-872 14:50:49 INFO - TEST-START test_touchcaret.py 14:50:52 INFO - test_contenteditable_move_caret_to_end_by_dragging_touch_caret_to_bottom_right_corner (test_touchcaret.TouchCaretTest) ... ok 14:50:54 INFO - test_contenteditable_move_caret_to_front_by_dragging_touch_caret_to_top_left_corner (test_touchcaret.TouchCaretTest) ... ok 14:50:57 INFO - test_contenteditable_move_caret_to_front_by_dragging_touch_caret_to_top_left_corner_disabled (test_touchcaret.TouchCaretTest) ... ok 14:51:01 INFO - test_contenteditable_move_caret_to_the_right_by_one_character (test_touchcaret.TouchCaretTest) ... FAIL 14:51:03 INFO - test_contenteditable_move_caret_to_the_right_by_one_character_disabled (test_touchcaret.TouchCaretTest) ... ok 14:51:05 INFO - test_contenteditable_scroll_by_dragging_touch_caret_to_bottom_right_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:11 INFO - test_contenteditable_touch_caret_timeout (test_touchcaret.TouchCaretTest) ... ok 14:51:14 INFO - test_input_move_caret_to_end_by_dragging_touch_caret_to_bottom_right_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:16 INFO - test_input_move_caret_to_front_by_dragging_touch_caret_to_top_left_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:18 INFO - test_input_move_caret_to_front_by_dragging_touch_caret_to_top_left_corner_disabled (test_touchcaret.TouchCaretTest) ... ok 14:51:21 INFO - test_input_move_caret_to_the_right_by_one_character (test_touchcaret.TouchCaretTest) ... ok 14:51:22 INFO - test_input_move_caret_to_the_right_by_one_character_disabled (test_touchcaret.TouchCaretTest) ... ok 14:51:24 INFO - test_input_scroll_by_dragging_touch_caret_to_bottom_right_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:31 INFO - test_input_touch_caret_timeout (test_touchcaret.TouchCaretTest) ... ok 14:51:33 INFO - test_textarea_move_caret_to_end_by_dragging_touch_caret_to_bottom_right_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:36 INFO - test_textarea_move_caret_to_front_by_dragging_touch_caret_to_top_left_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:38 INFO - test_textarea_move_caret_to_front_by_dragging_touch_caret_to_top_left_corner_disabled (test_touchcaret.TouchCaretTest) ... ok 14:51:40 INFO - test_textarea_move_caret_to_the_right_by_one_character (test_touchcaret.TouchCaretTest) ... ok 14:51:43 INFO - test_textarea_move_caret_to_the_right_by_one_character_disabled (test_touchcaret.TouchCaretTest) ... ok 14:51:44 INFO - test_textarea_scroll_by_dragging_touch_caret_to_bottom_right_corner (test_touchcaret.TouchCaretTest) ... ok 14:51:49 INFO - test_textarea_touch_caret_timeout (test_touchcaret.TouchCaretTest) ... ok 14:51:49 INFO - ====================================================================== 14:51:49 INFO - FAIL: None 14:51:49 INFO - ---------------------------------------------------------------------- 14:51:49 INFO - Traceback (most recent call last): 14:51:49 INFO - File "/builds/slave/test/build/tests/marionette/marionette/marionette_test.py", line 170, in run 14:51:49 INFO - testMethod() 14:51:49 INFO - File "/builds/slave/test/build/tests/marionette/tests/layout/base/tests/marionette/test_touchcaret.py", line 312, in test_contenteditable_move_caret_to_the_right_by_one_character 14:51:49 INFO - self._test_move_caret_to_the_right_by_one_character(self._contenteditable, self.assertEqual) 14:51:49 INFO - File "/builds/slave/test/build/tests/marionette/tests/layout/base/tests/marionette/test_touchcaret.py", line 157, in _test_move_caret_to_the_right_by_one_character 14:51:49 INFO - assertFunc(target_content, self.get_content(el)) 14:51:49 INFO - AssertionError: u'A!BCDEFGHI' != u'ABCDEFGHI!' 14:51:49 INFO - - A!BCDEFGHI 14:51:49 INFO - ? - 14:51:49 INFO - + ABCDEFGHI! 14:51:49 ERROR - TEST-UNEXPECTED-FAIL | test_touchcaret.py test_touchcaret.TouchCaretTest.test_contenteditable_move_caret_to_the_right_by_one_character | AssertionError: u'A!BCDEFGHI' != u'ABCDEFGHI!' 14:51:49 INFO - ---------------------------------------------------------------------- 14:51:49 INFO - Ran 21 tests in 60.039s 14:51:49 INFO - FAILED (failures=1)
hey tlin, Since you were working in this area, can you please have a look at this?
Flags: needinfo?(tlin)
Since I only added an assert at the end of the test, I could only tell that the caret failed to move to the correct position. Two possible reasons that might make the caret position wrong: 1) The element somehow loses its focus so subsequent instruction to move caret might not have the desire effect. 2) The "touch caret" will disappear after 3 seconds by current design. If we failed to move it within 3 seconds, the caret will not be move to the correct position. If this intermittent failure continue to show, we should consider add more asserts during the middle of the test to find the root cause.
Flags: needinfo?(tlin)
Bug 960897 backed out again for this and another failure mode.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Testing → Remote Protocol
You need to log in before you can comment on or make changes to this bug.