mirror of
https://github.com/servo/servo.git
synced 2025-09-10 23:18:20 +01:00
Update web-platform-tests to revision acd60f9e55532f03fc905e61591b7fd7db2f08d1
This commit is contained in:
parent
a1cd27e6a3
commit
be4f0ad8de
44 changed files with 544 additions and 663 deletions
|
@ -115,6 +115,11 @@ class Webidl2Regexp(Regexp):
|
|||
pattern = "webidl2\.js"
|
||||
error = "WEBIDL2.JS"
|
||||
|
||||
class ConsoleRegexp(Regexp):
|
||||
pattern = "console\.[a-zA-Z]+\s*\("
|
||||
error = "CONSOLE"
|
||||
file_extensions = [".html", ".htm", ".js", ".xht", ".html", ".svg"]
|
||||
|
||||
class PrintRegexp(Regexp):
|
||||
pattern = "print(?:\s|\s*\()"
|
||||
error = "PRINT STATEMENT"
|
||||
|
@ -126,6 +131,7 @@ regexps = [item() for item in
|
|||
CRRegexp,
|
||||
W3CTestOrgRegexp,
|
||||
Webidl2Regexp,
|
||||
ConsoleRegexp,
|
||||
PrintRegexp]]
|
||||
|
||||
def check_regexp_line(path, f):
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -233,6 +233,11 @@ class WebTestRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
|
|||
self.logger.debug("%s %s" % (request.method, request.request_path))
|
||||
handler = self.server.router.get_handler(request)
|
||||
|
||||
# If the handler we used for the request had a non-default base path
|
||||
# set update the doc_root of the request to reflect this
|
||||
if hasattr(handler, "base_path") and handler.base_path:
|
||||
request.doc_root = handler.base_path
|
||||
|
||||
if self.server.latency is not None:
|
||||
if callable(self.server.latency):
|
||||
latency = self.server.latency()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue