mirror of
https://github.com/servo/servo.git
synced 2025-08-28 08:38:20 +01:00
Update web-platform-tests to revision a89693b62066da0e4808c0bc76c581188398e73d
This commit is contained in:
parent
1e79f27cd4
commit
7ddb44a302
102 changed files with 1119 additions and 421 deletions
|
@ -1,7 +1,9 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [[ -z ${RUN_JOB+x} && $(./wpt test-jobs --includes $JOB; echo $?) -eq 0 ]] || [[ $RUN_JOB -eq 1 ]]; then
|
||||
RELEVANT_JOBS=$(./wpt test-jobs)
|
||||
RELEVANT_CHANGES=$(echo "$RELEVANT_JOBS" | grep $JOB || true)
|
||||
if [[ -z ${RUN_JOB+x} && ! -z $RELEVANT_CHANGES ]] || [[ $RUN_JOB -eq 1 ]]; then
|
||||
export RUN_JOB=1
|
||||
git submodule update --init --recursive 1>&2
|
||||
export DISPLAY=:99.0
|
||||
|
|
|
@ -18,8 +18,10 @@ run_applicable_tox () {
|
|||
export TOXENV="$OLD_TOXENV"
|
||||
}
|
||||
|
||||
RELEVANT_JOBS=$(./wpt test-jobs)
|
||||
|
||||
if [[ $(./wpt test-jobs --includes tools_unittest; echo $?) -eq 0 ]]; then
|
||||
RELEVANT_CHANGES_TOOLS=$(echo "$RELEVANT_JOBS" | grep "tools_unittest" || true)
|
||||
if [[ ! -z $RELEVANT_CHANGES_TOOLS ]]; then
|
||||
pip install -U tox codecov
|
||||
cd tools
|
||||
run_applicable_tox
|
||||
|
@ -28,7 +30,8 @@ else
|
|||
echo "Skipping tools unittest"
|
||||
fi
|
||||
|
||||
if [[ $(./wpt test-jobs --includes wptrunner_unittest; echo $?) -eq 0 ]]; then
|
||||
RELEVANT_CHANGES_WPTRUNNER=$(echo "$RELEVANT_JOBS" | grep "wptrunner_unittest" || true)
|
||||
if [[ ! -z $RELEVANT_CHANGES_WPTRUNNER ]]; then
|
||||
cd tools/wptrunner
|
||||
run_applicable_tox
|
||||
cd $WPT_ROOT
|
||||
|
|
|
@ -12,8 +12,8 @@ wpt_root = os.path.abspath(os.path.join(here, os.pardir, os.pardir))
|
|||
docker_image = "harjgam/web-platform-tests:0.11"
|
||||
|
||||
task_template = {
|
||||
"provisionerId": "{{ taskcluster.docker.provisionerId }}",
|
||||
"workerType": "{{ taskcluster.docker.workerType }}",
|
||||
"provisionerId": "aws-provisioner-v1",
|
||||
"workerType": "wpt-docker-worker",
|
||||
"extra": {
|
||||
"github": {
|
||||
"events": ["push"],
|
||||
|
|
|
@ -28,7 +28,7 @@ then
|
|||
deb_archive=google-chrome-unstable_current_amd64.deb
|
||||
wget https://dl.google.com/linux/direct/$deb_archive
|
||||
|
||||
sudo gdebi -n $deb_archive
|
||||
sudo apt-get -qqy update && gdebi -n $deb_archive
|
||||
fi
|
||||
|
||||
sudo Xvfb $DISPLAY -screen 0 ${SCREEN_WIDTH}x${SCREEN_HEIGHT}x${SCREEN_DEPTH} &
|
||||
|
|
|
@ -40,10 +40,8 @@ select = E,W,F,N
|
|||
# E901: SyntaxError or IndentationError
|
||||
# W601: .has_key() is deprecated, use ‘in’
|
||||
# F401: module imported but unused
|
||||
# F403: ‘from module import *’ used; unable to detect undefined names
|
||||
# F405: name may be undefined, or defined from star imports: module
|
||||
# N801: class names should use CapWords convention
|
||||
# N802: function name should be lowercase
|
||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,F403,F405,N801,N802
|
||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,N801,N802
|
||||
max-line-length = 141
|
||||
exclude = .tox,html5lib,third_party/py,third_party/pytest,third_party/funcsigs,third_party/attrs,third_party/pluggy/,pywebsocket,six,_venv,webencodings,wptserve/docs,wptserve/tests/functional/docroot/,wpt,wptrunner
|
||||
|
|
|
@ -43,9 +43,7 @@ select = E,W,F,N
|
|||
# E901: SyntaxError or IndentationError
|
||||
# W601: .has_key() is deprecated, use ‘in’
|
||||
# F401: module imported but unused
|
||||
# F403: ‘from module import *’ used; unable to detect undefined names
|
||||
# F405: name may be undefined, or defined from star imports: module
|
||||
# N801: class names should use CapWords convention
|
||||
# N802: function name should be lowercase
|
||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,F403,F405,N801,N802
|
||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,N801,N802
|
||||
max-line-length = 141
|
||||
|
|
|
@ -53,9 +53,7 @@ select = E,W,F,N
|
|||
# E901: SyntaxError or IndentationError
|
||||
# W601: .has_key() is deprecated, use ‘in’
|
||||
# F401: module imported but unused
|
||||
# F403: ‘from module import *’ used; unable to detect undefined names
|
||||
# F405: name may be undefined, or defined from star imports: module
|
||||
# N801: class names should use CapWords convention
|
||||
# N802: function name should be lowercase
|
||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,F403,F405,N801,N802
|
||||
ignore = E128,E129,E221,E226,E231,E251,E265,E302,E303,E305,E402,E731,E901,W601,F401,N801,N802
|
||||
max-line-length = 141
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
import subprocess
|
||||
|
||||
from ..config import *
|
||||
from .base import Browser, ExecutorBrowser, require_arg
|
||||
from ..webdriver_server import ChromeDriverServer
|
||||
from ..executors import executor_kwargs as base_executor_kwargs
|
||||
|
|
|
@ -43,7 +43,7 @@ def executor_kwargs(test_type, server_config, cache_manager, run_info_data,
|
|||
executor_kwargs["timeout_multiplier"] = get_timeout_multiplier(test_type,
|
||||
run_info_data,
|
||||
**kwargs)
|
||||
executor_kwargs["capabilities"] = dict(DesiredCapabilities.EDGE.items())
|
||||
executor_kwargs["capabilities"] = {}
|
||||
return executor_kwargs
|
||||
|
||||
def env_extras(**kwargs):
|
||||
|
|
|
@ -17,7 +17,10 @@ from __future__ import unicode_literals
|
|||
import types
|
||||
from cStringIO import StringIO
|
||||
|
||||
from node import *
|
||||
from node import (AtomNode, BinaryExpressionNode, BinaryOperatorNode,
|
||||
ConditionalNode, DataNode, IndexNode, KeyValueNode, ListNode,
|
||||
NumberNode, StringNode, UnaryExpressionNode,
|
||||
UnaryOperatorNode, ValueNode, VariableNode)
|
||||
|
||||
|
||||
class ParseError(Exception):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue