mirror of
https://github.com/servo/servo.git
synced 2025-08-14 01:45:33 +01:00
Update web-platform-tests to revision 74d709131e3c91d09f1708378648a01957c47b38
This commit is contained in:
parent
e4657c1496
commit
81f079c722
77 changed files with 2043 additions and 524 deletions
|
@ -14,7 +14,7 @@ test_infrastructure() {
|
|||
else
|
||||
ARGS=$1
|
||||
fi
|
||||
./wpt run --yes --manifest ~/meta/MANIFEST.json --metadata infrastructure/metadata/ --install-fonts $ARGS $PRODUCT infrastructure/
|
||||
./wpt run --log-tbpl - --yes --manifest ~/meta/MANIFEST.json --metadata infrastructure/metadata/ --install-fonts $ARGS $PRODUCT infrastructure/
|
||||
}
|
||||
|
||||
main() {
|
||||
|
|
|
@ -458,10 +458,15 @@ def check_parsed(repo_root, path, f):
|
|||
if source_file.type == "visual" and not source_file.name_is_visual:
|
||||
errors.append(("CONTENT-VISUAL", "Visual test whose filename doesn't end in '-visual'", path, None))
|
||||
|
||||
about_blank_parts = urlsplit("about:blank")
|
||||
for reftest_node in source_file.reftest_nodes:
|
||||
href = reftest_node.attrib.get("href", "").strip(space_chars)
|
||||
parts = urlsplit(href)
|
||||
if (parts.scheme or parts.netloc) and parts != urlsplit("about:blank"):
|
||||
|
||||
if parts == about_blank_parts:
|
||||
continue
|
||||
|
||||
if (parts.scheme or parts.netloc):
|
||||
errors.append(("ABSOLUTE-URL-REF",
|
||||
"Reference test with a reference file specified via an absolute URL: '%s'" % href, path, None))
|
||||
continue
|
||||
|
|
|
@ -444,6 +444,7 @@ product_setup = {
|
|||
|
||||
def setup_wptrunner(venv, prompt=True, install_browser=False, **kwargs):
|
||||
from wptrunner import wptrunner, wptcommandline
|
||||
import mozlog
|
||||
|
||||
global logger
|
||||
|
||||
|
@ -453,7 +454,12 @@ def setup_wptrunner(venv, prompt=True, install_browser=False, **kwargs):
|
|||
kwargs["product"] = product_parts[0]
|
||||
sub_product = product_parts[1:]
|
||||
|
||||
wptrunner.setup_logging(kwargs, {"mach": sys.stdout})
|
||||
# Use the grouped formatter by default where mozlog 3.9+ is installed
|
||||
if hasattr(mozlog.formatters, "GroupingFormatter"):
|
||||
default_formatter = "grouped"
|
||||
else:
|
||||
default_formatter = "mach"
|
||||
wptrunner.setup_logging(kwargs, {default_formatter: sys.stdout})
|
||||
logger = wptrunner.logger
|
||||
|
||||
check_environ(kwargs["product"])
|
||||
|
|
|
@ -217,16 +217,6 @@ class FennecBrowser(FirefoxBrowser):
|
|||
|
||||
self.runner.start(debug_args=debug_args, interactive=self.debug_info and self.debug_info.interactive)
|
||||
|
||||
# gecko_log comes from logcat when running with device/emulator
|
||||
logcat_args = {
|
||||
"filterspec": "Gecko",
|
||||
"serial": self.runner.device.app_ctx.device_serial
|
||||
}
|
||||
# TODO setting logcat_args["logfile"] yields an almost empty file
|
||||
# even without filterspec
|
||||
logcat_args["stream"] = sys.stdout
|
||||
self.runner.device.start_logcat(**logcat_args)
|
||||
|
||||
self.runner.device.device.forward(
|
||||
local="tcp:{}".format(self.marionette_port),
|
||||
remote="tcp:{}".format(self.marionette_port))
|
||||
|
@ -243,6 +233,7 @@ class FennecBrowser(FirefoxBrowser):
|
|||
traceback.print_exception(*sys.exc_info())
|
||||
# We assume that stopping the runner prompts the
|
||||
# browser to shut down. This allows the leak log to be written
|
||||
self.runner.stop()
|
||||
for clean, stop_f in [(True, lambda: self.runner.wait(self.shutdown_timeout)),
|
||||
(False, lambda: self.runner.stop(signal.SIGTERM)),
|
||||
(False, lambda: self.runner.stop(signal.SIGKILL))]:
|
||||
|
|
|
@ -502,6 +502,9 @@ def check_args(kwargs):
|
|||
kwargs["certutil_binary"] = path
|
||||
|
||||
if kwargs['extra_prefs']:
|
||||
# If a single pref is passed in as a string, make it a list
|
||||
if type(kwargs['extra_prefs']) in (str, unicode):
|
||||
kwargs['extra_prefs'] = [kwargs['extra_prefs']]
|
||||
missing = any('=' not in prefarg for prefarg in kwargs['extra_prefs'])
|
||||
if missing:
|
||||
print >> sys.stderr, "Preferences via --setpref must be in key=value format"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue