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

Unified Diff: tools/telemetry/run_web_components_dev_server

Issue 169283004: Introduce telemetry.web_components and a simple component-based Results object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nop Created 6 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
Index: tools/telemetry/run_web_components_dev_server
diff --git a/tools/telemetry/run_web_components_dev_server b/tools/telemetry/run_web_components_dev_server
new file mode 100755
index 0000000000000000000000000000000000000000..52ba05d0c09b067fda8d2aaf9f8754d0555db9d6
--- /dev/null
+++ b/tools/telemetry/run_web_components_dev_server
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+# Copyright (c) 2014 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.
+"""Starts the telemetry.web_components dev server.
+
+During normal usage of telemetry, telemetry.web_components files are
+compiled into standalone HTML+JS+CSS snippets that are then
+embedded in telemetry's various test resuls.
+
+The telemetry.web_components dev server allows edit-reload style development of
+these components. To use, start the dev server, navigate to the URL the script
+prints, and run any of the tests listed. Reloading in the browser loads the
+latest content from disk, enabling a traditional web development workflow.
+"""
+import sys
+
+from telemetry.web_components import dev_server
+
+COMPONENTS_PORT = 8014
+
+if __name__ == '__main__':
+ sys.exit(dev_server.Main(COMPONENTS_PORT, sys.argv[1:]))

Powered by Google App Engine
This is Rietveld 408576698