Commit 4f5e92a4 authored by Stephen McGruer's avatar Stephen McGruer Committed by Commit Bot

[blinkpy] Roll WPT tools to 326f137f2c3d23cd72b7163707def783f0a1e15b

Bug: None
Change-Id: I35d4c865e69968d53ceb73d248ca1bbdf952a288
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2506112
Commit-Queue: Robert Ma <robertma@chromium.org>
Reviewed-by: default avatarRobert Ma <robertma@chromium.org>
Cr-Commit-Position: refs/heads/master@{#821877}
parent f3426297
...@@ -22,7 +22,7 @@ Local Modifications: None ...@@ -22,7 +22,7 @@ Local Modifications: None
Name: web-platform-tests - Test Suites for Web Platform specifications Name: web-platform-tests - Test Suites for Web Platform specifications
Short Name: wpt Short Name: wpt
URL: https://github.com/web-platform-tests/wpt/ URL: https://github.com/web-platform-tests/wpt/
Version: 8b1df3d520335fb42ef4bfd50b9121ac41995f8e Version: 326f137f2c3d23cd72b7163707def783f0a1e15b
License: LICENSES FOR W3C TEST SUITES (https://www.w3.org/Consortium/Legal/2008/03-bsd-license.html) License: LICENSES FOR W3C TEST SUITES (https://www.w3.org/Consortium/Legal/2008/03-bsd-license.html)
License File: wpt/wpt/LICENSE.md License File: wpt/wpt/LICENSE.md
Security Critical: no Security Critical: no
......
...@@ -9,7 +9,7 @@ cd $DIR ...@@ -9,7 +9,7 @@ cd $DIR
TARGET_DIR=$DIR/wpt TARGET_DIR=$DIR/wpt
REMOTE_REPO="https://github.com/web-platform-tests/wpt.git" REMOTE_REPO="https://github.com/web-platform-tests/wpt.git"
WPT_HEAD=8b1df3d520335fb42ef4bfd50b9121ac41995f8e WPT_HEAD=326f137f2c3d23cd72b7163707def783f0a1e15b
function clone { function clone {
# Remove existing repo if already exists. # Remove existing repo if already exists.
......
...@@ -147,6 +147,14 @@ class URLManifestItem(ManifestItem): ...@@ -147,6 +147,14 @@ class URLManifestItem(ManifestItem):
flags = set(urlparse(self.url).path.rsplit("/", 1)[1].split(".")[1:-1]) flags = set(urlparse(self.url).path.rsplit("/", 1)[1].split(".")[1:-1])
return "h2" in flags return "h2" in flags
@property
def subdomain(self):
# type: () -> bool
flags = set(urlparse(self.url).path.rsplit("/", 1)[1].split(".")[1:-1])
# Note: this is currently hard-coded to check for `www`, rather than
# all possible valid subdomains. It can be extended if needed.
return "www" in flags
def to_json(self): def to_json(self):
# type: () -> Tuple[Optional[Text], Dict[Any, Any]] # type: () -> Tuple[Optional[Text], Dict[Any, Any]]
rel_url = None if self._url == self.path.replace(os.path.sep, u"/") else self._url rel_url = None if self._url == self.path.replace(os.path.sep, u"/") else self._url
......
...@@ -9,11 +9,9 @@ from six.moves.collections_abc import MutableMapping ...@@ -9,11 +9,9 @@ from six.moves.collections_abc import MutableMapping
from .utils import git from .utils import git
try: # Cannot do `from ..gitignore import gitignore` because
from ..gitignore import gitignore # relative import beyond toplevel throws *ImportError*!
except ValueError: from gitignore import gitignore # type: ignore
# relative import beyond toplevel throws *ValueError*!
from gitignore import gitignore # type: ignore
MYPY = False MYPY = False
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment