Bug 1164233 - Enlarge the timeout margin from 1.5x to 3x. r=mtseng
authorTing-Yu Lin <tlin@mozilla.com>
Wed, 13 May 2015 19:36:00 +0800
changeset 244149 5d771cfcda4275f6ce74052c300f3fc2ad62146a
parent 244148 38d40bcd0c4632f96ee34541448591a9a7b439ec
child 244150 7c2f391a7fdd07ee59928b0f8278db74dea70ecc
child 244167 e00b8970afbde62ce61f5bc69872d955128283dd
push id59853
push usertlin@mozilla.com
push dateSat, 16 May 2015 04:21:59 +0000
treeherdermozilla-inbound@5d771cfcda42 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmtseng
bugs1164233
milestone41.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1164233 - Enlarge the timeout margin from 1.5x to 3x. r=mtseng
layout/base/tests/marionette/test_touchcaret.py
--- a/layout/base/tests/marionette/test_touchcaret.py
+++ b/layout/base/tests/marionette/test_touchcaret.py
@@ -146,18 +146,18 @@ class CommonCaretTestCase(object):
     def _test_touch_caret_timeout_by_dragging_it_to_top_left_corner_after_timout(self, el, assertFunc):
         sel = SelectionManager(el)
         content_to_add = '!'
         non_target_content = content_to_add + sel.content
 
         # Get touch caret expiration time in millisecond, and convert it to second.
         timeout = self.timeout_ms() / 1000.0
 
-        # Set a 1.5x timeout margin to prevent intermittent test failures.
-        timeout *= 1.5
+        # Set a 3x timeout margin to prevent intermittent test failures.
+        timeout *= 3
 
         # Tap to make touch caret appear. Note: it's strange that when the caret
         # is at the end, the rect of the caret in <textarea> cannot be obtained.
         # A bug perhaps.
         el.tap()
         sel.move_caret_to_end()
         sel.move_caret_by_offset(1, backward=True)
         el.tap(*sel.caret_location())