| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 from .type_definitions import Handler | 5 from .type_definitions import Handler |
| 6 | 6 |
| 7 | 7 |
| 8 class ListHandler(Handler): | 8 class ListHandler(Handler): |
| 9 """List all of the tests instead of running them.""" | 9 """List all of the tests instead of running them.""" |
| 10 SKIP_RUNLOOP = True | 10 SKIP_RUNLOOP = True |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 def handle_MultiTest(multi_test): | 24 def handle_MultiTest(multi_test): |
| 25 print 'MultiTest(%r, atomic=%r)' % (multi_test.name, multi_test.atomic) | 25 print 'MultiTest(%r, atomic=%r)' % (multi_test.name, multi_test.atomic) |
| 26 for test in multi_test.tests: | 26 for test in multi_test.tests: |
| 27 if ListHandler.COMPLETION_LIST is not None: | 27 if ListHandler.COMPLETION_LIST is not None: |
| 28 ListHandler.COMPLETION_LIST.append(test.name) | 28 ListHandler.COMPLETION_LIST.append(test.name) |
| 29 else: | 29 else: |
| 30 print '|', test.name | 30 print '|', test.name |
| 31 | 31 |
| 32 # TODO(iannucci): group tests by dir? | 32 # TODO(iannucci): group tests by dir? |
| 33 # TODO(iannucci): print more data about the test in verbose mode? | 33 # TODO(iannucci): print more data about the test in verbose mode? |
| OLD | NEW |