forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 23
/
Copy pathrun_blink_wptserve.py
executable file
·22 lines (17 loc) · 1.02 KB
/
run_blink_wptserve.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/env vpython
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs an instance of wptserve to allow manual testing of web-platform-tests.
The main HTTP server is run on 8001, while the main HTTPS server is run on 8444.
URL paths are relative to the web-platform-tests root, e.g. the test:
web_tests/external/wpt/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/generic.no-redirect.http.html
Could be tried by running this scrip then navigating to:
http://localhost:8001/referrer-policy/origin/http-rp/same-origin/http-http/img-tag/generic.no-redirect.http.html
"""
from blinkpy.web_tests.servers import cli_wrapper
from blinkpy.web_tests.servers import wptserve
print("Generated content (out/<build directory>/gen) is served from "
"out/Release/gen by default. Specify an alternate directory with "
"'-t <build directory>'.")
cli_wrapper.main(wptserve.WPTServe, description=__doc__)