Bug 1330560 - [marionette] Temporarily skip TestScreenCaptureContent.test_capture_flags on Windows. r=webdriver-reviewers,jgraham
authorHenrik Skupin <mail@hskupin.info>
Fri, 16 Aug 2019 15:50:11 +0000
changeset 488541 3b0c482b4235237d0ac8e8ea87e423ddcebc801e
parent 488540 773f75efd74530e39c0fff817d54c23b75425faa
child 488542 ca0ba0ca619ffdc48faf768aba4e5febb0c1d169
push id36446
push usermalexandru@mozilla.com
push dateFri, 16 Aug 2019 21:53:14 +0000
treeherdermozilla-central@1d4db40e38dd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerswebdriver-reviewers, jgraham
bugs1330560
milestone70.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 1330560 - [marionette] Temporarily skip TestScreenCaptureContent.test_capture_flags on Windows. r=webdriver-reviewers,jgraham Temporarily skip on Windows to get the new screenshot API landed. Given that this change makes this failure permanent it should be easier for investigation after its landing. Differential Revision: https://phabricator.services.mozilla.com/D42322
testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_screenshot.py
@@ -3,17 +3,19 @@
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from __future__ import absolute_import
 
 import base64
 import hashlib
 import imghdr
 import struct
+import sys
 import tempfile
+import unittest
 import urllib
 
 from marionette_driver import By
 from marionette_driver.errors import NoSuchElementException, NoSuchWindowException
 from marionette_harness import (
     MarionetteTestCase,
     skip,
     skip_if_mobile,
@@ -298,16 +300,17 @@ class TestScreenCaptureContent(WindowMan
         self.marionette.navigate(long)
         el = self.marionette.find_element(By.TAG_NAME, "p")
         screenshot = self.marionette.screenshot(element=el)
         self.assert_png(screenshot)
         self.assertEqual(self.scale(self.get_element_dimensions(el)),
                          self.get_image_dimensions(screenshot))
         self.assertGreater(self.page_y_offset, 0)
 
+    @unittest.skipIf(sys.platform.startswith("win"), "Bug 1330560")
     def test_capture_flags(self):
         self.marionette.navigate(input)
 
         textbox = self.marionette.find_element(By.ID, "text-input")
         textbox.send_keys("")
         screenshot_focus = self.marionette.screenshot()
 
         self.marionette.execute_script("arguments[0].blur();", script_args=[textbox])