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

Side by Side Diff: media/tools/layout_tests/trend_graph.py

Issue 8672007: Fix python scripts in src/media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # 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
4 # found in the LICENSE file. 3 # found in the LICENSE file.
5 4
6 """A module for manipulating trend graph with analyzer result history.""" 5 """A module for manipulating trend graph with analyzer result history."""
7 6
8 import os 7 import os
9 import sys 8 import sys
10 9
11 import layouttest_analyzer_helpers 10 import layouttest_analyzer_helpers
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 joined_str = '%s,%s,%s' % ( 68 joined_str = '%s,%s,%s' % (
70 str(data_map['passingrate'][0]), data_map['nonskip'][1], 69 str(data_map['passingrate'][0]), data_map['nonskip'][1],
71 data_map['nonskip'][2]) 70 data_map['nonskip'][2])
72 new_line_for_passingrate = ' [new Date(%s),%s],\n' % ( 71 new_line_for_passingrate = ' [new Date(%s),%s],\n' % (
73 datetime_string, joined_str) 72 datetime_string, joined_str)
74 new_line_for_passingrate += ' %s\n' % ( 73 new_line_for_passingrate += ' %s\n' % (
75 LINE_INSERT_POINT_FOR_PASSING_RATE) 74 LINE_INSERT_POINT_FOR_PASSING_RATE)
76 layouttest_analyzer_helpers.ReplaceLineInFile( 75 layouttest_analyzer_helpers.ReplaceLineInFile(
77 self._location, LINE_INSERT_POINT_FOR_PASSING_RATE, 76 self._location, LINE_INSERT_POINT_FOR_PASSING_RATE,
78 new_line_for_passingrate) 77 new_line_for_passingrate)
OLDNEW
« no previous file with comments | « media/tools/layout_tests/test_expectations_unittest.py ('k') | media/tools/layout_tests/trend_graph_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698