Bug 1255051 - Remove skip_under_xvfb from firefox-ui-tests; r=maja_zf

MozReview-Commit-ID: 5orLGNjaHtw

--HG--
extra : rebase_source : fb598e5bfc03fe64196176e0705fa00fe812face
This commit is contained in:
nagma 2016-03-15 20:49:37 -04:00
Родитель 7d02dd23e3
Коммит d854de1353
12 изменённых файлов: 0 добавлений и 42 удалений

Просмотреть файл

@ -1,14 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
from marionette import SkipTest
import os
def skip_under_xvfb(target):
def wrapper(self, *args, **kwargs):
if os.environ.get('MOZ_XVFB'):
raise SkipTest("Skipping due to running under xvfb")
return target(self, *args, **kwargs)
return wrapper

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -28,7 +27,6 @@ class TestAccessLocationBar(FirefoxTestCase):
self.autocomplete_results = self.locationbar.autocomplete_results self.autocomplete_results = self.locationbar.autocomplete_results
self.urlbar = self.locationbar.urlbar self.urlbar = self.locationbar.urlbar
@skip_under_xvfb
def test_access_locationbar_history(self): def test_access_locationbar_history(self):
# Open some local pages, then about:blank # Open some local pages, then about:blank

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -32,7 +31,6 @@ class TestEscapeAutocomplete(FirefoxTestCase):
self.autocomplete_results.close(force=True) self.autocomplete_results.close(force=True)
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_escape_autocomplete(self): def test_escape_autocomplete(self):
# Open some local pages # Open some local pages
def load_urls(): def load_urls():

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -35,7 +34,6 @@ class TestFaviconInAutocomplete(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_favicon_in_autocomplete(self): def test_favicon_in_autocomplete(self):
# Open the test page # Open the test page
def load_urls(): def load_urls():

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import By, Wait from marionette_driver import By, Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -43,7 +42,6 @@ class TestStarInAutocomplete(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_star_in_autocomplete(self): def test_star_in_autocomplete(self):
search_string = 'grants' search_string = 'grants'

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -26,7 +25,6 @@ class TestDVCertificate(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_dv_cert(self): def test_dv_cert(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -26,7 +25,6 @@ class TestEVCertificate(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_ev_certificate(self): def test_ev_certificate(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -23,7 +22,6 @@ class TestMixedContentPage(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_mixed_content(self): def test_mixed_content(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)

Просмотреть файл

@ -4,7 +4,6 @@
from marionette_driver import By, Wait from marionette_driver import By, Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -66,7 +65,6 @@ class TestMixedScriptContentBlocking(FirefoxTestCase):
def expect_protection_disabled(self): def expect_protection_disabled(self):
self._expect_protection_status(False) self._expect_protection_status(False)
@skip_under_xvfb
def test_mixed_content_page(self): def test_mixed_content_page(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)

Просмотреть файл

@ -6,7 +6,6 @@ from urlparse import urlparse
from marionette_driver import expected, Wait from marionette_driver import expected, Wait
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -28,7 +27,6 @@ class TestNoCertificate(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_no_certificate(self): def test_no_certificate(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)

Просмотреть файл

@ -5,7 +5,6 @@
from marionette_driver import Wait from marionette_driver import Wait
from marionette.marionette_test import skip_if_e10s from marionette.marionette_test import skip_if_e10s
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -48,7 +47,6 @@ class TestSSLStatusAfterRestart(FirefoxTestCase):
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_if_e10s @skip_if_e10s
@skip_under_xvfb
def test_ssl_status_after_restart(self): def test_ssl_status_after_restart(self):
for item in self.test_data: for item in self.test_data:
with self.marionette.using_context('content'): with self.marionette.using_context('content'):

Просмотреть файл

@ -5,7 +5,6 @@
from marionette_driver import expected, By, Wait from marionette_driver import expected, By, Wait
from marionette_driver.errors import NoSuchElementException from marionette_driver.errors import NoSuchElementException
from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_puppeteer.testcases import FirefoxTestCase from firefox_puppeteer.testcases import FirefoxTestCase
@ -152,7 +151,6 @@ class TestAutoCompleteResults(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_popup_elements(self): def test_popup_elements(self):
# TODO: This test is not very robust because it relies on the history # TODO: This test is not very robust because it relies on the history
# in the default profile. # in the default profile.
@ -165,7 +163,6 @@ class TestAutoCompleteResults(FirefoxTestCase):
self.assertEqual(visible_result_count, self.assertEqual(visible_result_count,
int(results.get_attribute('itemCount'))) int(results.get_attribute('itemCount')))
@skip_under_xvfb
def test_close(self): def test_close(self):
self.browser.navbar.locationbar.urlbar.send_keys('a') self.browser.navbar.locationbar.urlbar.send_keys('a')
Wait(self.marionette).until(lambda _: self.autocomplete_results.is_open) Wait(self.marionette).until(lambda _: self.autocomplete_results.is_open)
@ -173,7 +170,6 @@ class TestAutoCompleteResults(FirefoxTestCase):
# end up closing. # end up closing.
self.autocomplete_results.close() self.autocomplete_results.close()
@skip_under_xvfb
def test_force_close(self): def test_force_close(self):
self.browser.navbar.locationbar.urlbar.send_keys('a') self.browser.navbar.locationbar.urlbar.send_keys('a')
Wait(self.marionette).until(lambda _: self.autocomplete_results.is_open) Wait(self.marionette).until(lambda _: self.autocomplete_results.is_open)
@ -181,7 +177,6 @@ class TestAutoCompleteResults(FirefoxTestCase):
# end up closing. # end up closing.
self.autocomplete_results.close(force=True) self.autocomplete_results.close(force=True)
@skip_under_xvfb
def test_matching_text(self): def test_matching_text(self):
# The default profile always has links to mozilla.org. So multiple results # The default profile always has links to mozilla.org. So multiple results
# will be found with 'moz'. # will be found with 'moz'.
@ -222,7 +217,6 @@ class TestIdentityPopup(FirefoxTestCase):
finally: finally:
FirefoxTestCase.tearDown(self) FirefoxTestCase.tearDown(self)
@skip_under_xvfb
def test_elements(self): def test_elements(self):
self.locationbar.open_identity_popup() self.locationbar.open_identity_popup()
@ -262,7 +256,6 @@ class TestIdentityPopup(FirefoxTestCase):
self.assertEqual(security.more_info_button.get_attribute('localName'), 'button') self.assertEqual(security.more_info_button.get_attribute('localName'), 'button')
@skip_under_xvfb
def test_open_close(self): def test_open_close(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)
@ -274,7 +267,6 @@ class TestIdentityPopup(FirefoxTestCase):
self.identity_popup.close() self.identity_popup.close()
self.assertFalse(self.identity_popup.is_open) self.assertFalse(self.identity_popup.is_open)
@skip_under_xvfb
def test_force_close(self): def test_force_close(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
self.marionette.navigate(self.url) self.marionette.navigate(self.url)