1#!/usr/bin/env python 2# Copyright 2014 The Chromium Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5"""Starts the mojo spy dev server. 6 7During normal usage of mojo spy, the spy files are compiled into standalone 8HTML+JS+CSS snippets that are then embedded in the mojo shell. 9 10The dev server allows edit-reload style development of the spy UI in isolation 11of the c++ bits. To use, start the dev server, navigate to the URL the script 12prints, and run any of the tests listed. Reloading in the browser loads the 13latest content from disk, enabling a traditional web development workflow. 14""" 15import sys 16 17import ui 18from tvcm import test_runner 19 20if __name__ == '__main__': 21 runner = test_runner.TestRunner() 22 runner.AddModule(ui) 23 sys.exit(runner.Main()) 24