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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/printing.py

Issue 1846093002: Revert of Remove unused imports in webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2010, 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 15 matching lines...) Expand all
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 28
29 """Package that handles non-debug, non-file output for run-webkit-tests.""" 29 """Package that handles non-debug, non-file output for run-webkit-tests."""
30 30
31 import math 31 import math
32 import optparse 32 import optparse
33 33
34 from webkitpy.tool import grammar 34 from webkitpy.tool import grammar
35 from webkitpy.layout_tests.models import test_expectations 35 from webkitpy.layout_tests.models import test_expectations
36 from webkitpy.layout_tests.models.test_expectations import TestExpectations, Tes tExpectationParser
36 from webkitpy.layout_tests.views.metered_stream import MeteredStream 37 from webkitpy.layout_tests.views.metered_stream import MeteredStream
37 38
38 39
39 NUM_SLOW_TESTS_TO_LOG = 10 40 NUM_SLOW_TESTS_TO_LOG = 10
40 41
41 42
42 def print_options(): 43 def print_options():
43 return [ 44 return [
44 optparse.make_option('--debug-rwt-logging', action='store_true', default =False, 45 optparse.make_option('--debug-rwt-logging', action='store_true', default =False,
45 help='print timestamps and debug information for ru n-webkit-tests itself'), 46 help='print timestamps and debug information for ru n-webkit-tests itself'),
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 self._meter.write_throttled_update(msg) 432 self._meter.write_throttled_update(msg)
432 433
433 def write_update(self, msg): 434 def write_update(self, msg):
434 self._meter.write_update(msg) 435 self._meter.write_update(msg)
435 436
436 def writeln(self, msg): 437 def writeln(self, msg):
437 self._meter.writeln(msg) 438 self._meter.writeln(msg)
438 439
439 def flush(self): 440 def flush(self):
440 self._meter.flush() 441 self._meter.flush()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698