Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(351)

Unified Diff: third_party/WebKit/Tools/Scripts/run-blink-httpd

Issue 2719633002: Add descriptions with examples to run-blink-* scripts. (Closed)
Patch Set: Expand comment Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/run-blink-websocketserver » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Tools/Scripts/run-blink-httpd
diff --git a/third_party/WebKit/Tools/Scripts/run-blink-httpd b/third_party/WebKit/Tools/Scripts/run-blink-httpd
index a3a01a4d5468999151a7e766f2c752de1b1fce67..7d7701b101a05bea8115e2e04e98f8fe8dabdae8 100755
--- a/third_party/WebKit/Tools/Scripts/run-blink-httpd
+++ b/third_party/WebKit/Tools/Scripts/run-blink-httpd
@@ -27,9 +27,29 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+"""Runs an Apache HTTP server to manually run layout tests locally.
+
+After running this script, you can locally navigate to URLs where
+the path is relative to LayoutTests/http/tests/. For example, to run
+LayoutTests/http/tests/cachestorage/window-cache-add.html, navigate to:
+ http://127.0.0.1:8000/cachestorage/window/cache-add.html
+
+When using HTTPS, for example:
+ https://127.0.0.1:8443/https/verify-ssl-enabled.php
+you will may a certificate warning, which you need to bypass.
+
+After starting the server, you can also run individual layout tests
+via content_shell, e.g.
+ $ out/Release/content_shell --run-layout-test \
+ http://127.0.0.1:8000/security/cross-frame-access-get.html
+
+Note that some tests will only work if "127.0.0.1" for the host part of the
+URL, rather than "localhost".
+"""
+
import webkitpy.common.version_check
from webkitpy.layout_tests.servers import cli_wrapper
from webkitpy.layout_tests.servers import apache_http
-cli_wrapper.main(apache_http.ApacheHTTP, additional_dirs={}, number_of_servers=4)
+cli_wrapper.main(apache_http.ApacheHTTP, additional_dirs={}, number_of_servers=4, description=__doc__)
« no previous file with comments | « no previous file | third_party/WebKit/Tools/Scripts/run-blink-websocketserver » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698