| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2015 The Chromium Authors. All rights reserved. | 2 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 # Runs an instance of wptserve to allow manual testing of the imported Web | 6 """Runs an instance of wptserve to allow manual testing of web-platform-tests. |
| 7 # Platform Tests. The main HTTP server is run on 8001, while the main HTTPS | 7 |
| 8 # server is run on 8444. | 8 The main HTTP server is run on 8001, while the main HTTPS server is run on 8444. |
| 9 |
| 10 URL paths are relative to the web-platform-tests root, e.g. the test: |
| 11 LayoutTests/external/wpt/referrer-policy/origin/http-rp/same-origin/http-htt
p/img-tag/generic.no-redirect.http.html |
| 12 Could be tried by running this scrip then navigating to: |
| 13 http://localhost:8001/referrer-policy/origin/http-rp/same-origin/http-http/i
mg-tag/generic.no-redirect.http.html |
| 14 """ |
| 9 | 15 |
| 10 import webkitpy.common.version_check | 16 import webkitpy.common.version_check |
| 11 | 17 |
| 12 from webkitpy.layout_tests.servers import cli_wrapper | 18 from webkitpy.layout_tests.servers import cli_wrapper |
| 13 from webkitpy.layout_tests.servers import wptserve | 19 from webkitpy.layout_tests.servers import wptserve |
| 14 | 20 |
| 15 cli_wrapper.main(wptserve.WPTServe) | 21 cli_wrapper.main(wptserve.WPTServe, description=__doc__) |
| OLD | NEW |