mirror of
https://github.com/servo/servo.git
synced 2025-08-29 17:18:23 +01:00
Update web-platform-tests to revision 50ff4f970fd8592a9f436d4e86e7d572de143260
This commit is contained in:
parent
82bbf3ad45
commit
8ea5658199
150 changed files with 4737 additions and 998 deletions
|
@ -22,7 +22,6 @@ from localpaths import repo_root
|
|||
from six.moves import reload_module
|
||||
|
||||
from manifest.sourcefile import read_script_metadata, js_meta_re, parse_variants
|
||||
from mozlog.structuredlog import StructuredLogger
|
||||
from wptserve import server as wptserve, handlers
|
||||
from wptserve import stash
|
||||
from wptserve import config
|
||||
|
@ -630,14 +629,22 @@ class WebSocketDaemon(object):
|
|||
self.server = None
|
||||
|
||||
|
||||
def release_mozlog_lock():
|
||||
try:
|
||||
from mozlog.structuredlog import StructuredLogger
|
||||
try:
|
||||
StructuredLogger._lock.release()
|
||||
except threading.ThreadError:
|
||||
pass
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
|
||||
def start_ws_server(host, port, paths, routes, bind_address, config, **kwargs):
|
||||
# Ensure that when we start this in a new process we have the global lock
|
||||
# in the logging module unlocked
|
||||
reload_module(logging)
|
||||
try:
|
||||
StructuredLogger._lock.release()
|
||||
except threading.ThreadError:
|
||||
pass
|
||||
release_mozlog_lock()
|
||||
return WebSocketDaemon(host,
|
||||
str(port),
|
||||
repo_root,
|
||||
|
@ -651,10 +658,7 @@ def start_wss_server(host, port, paths, routes, bind_address, config, **kwargs):
|
|||
# Ensure that when we start this in a new process we have the global lock
|
||||
# in the logging module unlocked
|
||||
reload_module(logging)
|
||||
try:
|
||||
StructuredLogger._lock.release()
|
||||
except threading.ThreadError:
|
||||
pass
|
||||
release_mozlog_lock()
|
||||
return WebSocketDaemon(host,
|
||||
str(port),
|
||||
repo_root,
|
||||
|
|
|
@ -221,6 +221,9 @@ Consider installing certutil via your OS package manager or directly.""")
|
|||
channel=kwargs["browser_channel"])
|
||||
kwargs["prefs_root"] = prefs_root
|
||||
|
||||
# Allow WebRTC tests to call getUserMedia.
|
||||
kwargs["extra_prefs"].append("media.navigator.streams.fake=true")
|
||||
|
||||
|
||||
class Fennec(BrowserSetup):
|
||||
name = "fennec"
|
||||
|
@ -255,6 +258,9 @@ class Chrome(BrowserSetup):
|
|||
logger.info("Automatically turning on experimental features for Chrome Dev")
|
||||
kwargs["binary_args"].append("--enable-experimental-web-platform-features")
|
||||
|
||||
# Allow WebRTC tests to call getUserMedia.
|
||||
kwargs["binary_args"] += ["--use-fake-ui-for-media-stream", "--use-fake-device-for-media-stream"]
|
||||
|
||||
|
||||
class ChromeAndroid(BrowserSetup):
|
||||
name = "chrome_android"
|
||||
|
|
|
@ -220,13 +220,15 @@ class FirefoxBrowser(Browser):
|
|||
preferences = self.load_prefs()
|
||||
|
||||
self.profile = FirefoxProfile(preferences=preferences)
|
||||
self.profile.set_preferences({"marionette.port": self.marionette_port,
|
||||
"dom.disable_open_during_load": False,
|
||||
"network.dns.localDomains": ",".join(self.config.domains_set),
|
||||
"network.proxy.type": 0,
|
||||
"places.history.enabled": False,
|
||||
"dom.send_after_paint_to_content": True,
|
||||
"network.preload": True})
|
||||
self.profile.set_preferences({
|
||||
"marionette.port": self.marionette_port,
|
||||
"network.dns.localDomains": ",".join(self.config.domains_set),
|
||||
|
||||
# TODO: Remove preferences once Firefox 64 is stable (Bug 905404)
|
||||
"network.proxy.type": 0,
|
||||
"places.history.enabled": False,
|
||||
"network.preload": True,
|
||||
})
|
||||
if self.e10s:
|
||||
self.profile.set_preferences({"browser.tabs.remote.autostart": True})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue