From fe0d617191383e8389cfd4d989e2a3a85ac423b4 Mon Sep 17 00:00:00 2001 From: "ui.manish" <1991manish.kumar@gmail.com> Date: Fri, 31 Aug 2018 00:24:52 +0200 Subject: [PATCH] Bug 1347060 Remove marionette test for rotatable devices r=TYLin --- .../test_accessiblecaret_selection_mode.py | 27 ------------------- 1 file changed, 27 deletions(-) diff --git a/layout/base/tests/marionette/test_accessiblecaret_selection_mode.py b/layout/base/tests/marionette/test_accessiblecaret_selection_mode.py index 9ca391652270..973d7cd27bb6 100644 --- a/layout/base/tests/marionette/test_accessiblecaret_selection_mode.py +++ b/layout/base/tests/marionette/test_accessiblecaret_selection_mode.py @@ -495,33 +495,6 @@ class AccessibleCaretSelectionModeTestCase(MarionetteTestCase): self.assertEqual(self.to_unix_line_ending(sel.selected_content), 'select') - @skip_if_not_rotatable - def test_caret_position_after_changing_orientation_of_device(self): - '''Bug 1094072 - If positions of carets are updated correctly, they should be draggable. - ''' - self.open_test_html(self._longtext_html) - body = self.marionette.find_element(By.ID, 'bd') - longtext = self.marionette.find_element(By.ID, 'longtext') - - # Select word in portrait mode, then change to landscape mode - self.marionette.set_orientation('portrait') - self.long_press_on_word(longtext, 12) - sel = SelectionManager(body) - (p_start_caret_x, p_start_caret_y), (p_end_caret_x, p_end_caret_y) = sel.carets_location() - self.marionette.set_orientation('landscape') - (l_start_caret_x, l_start_caret_y), (l_end_caret_x, l_end_caret_y) = sel.carets_location() - - # Drag end caret to the start caret to change the selected content - self.actions.flick(body, l_end_caret_x, l_end_caret_y, - l_start_caret_x, l_start_caret_y).perform() - - # Change orientation back to portrait mode to prevent affecting - # other tests - self.marionette.set_orientation('portrait') - - self.assertEqual(self.to_unix_line_ending(sel.selected_content), 'o') - def test_select_word_inside_an_iframe(self): '''Bug 1088552 The scroll offset in iframe should be taken into consideration properly.