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

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

Issue 8672007: Fix python scripts in src/media (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 """Helper functions for the layout test analyzer.""" 5 """Helper functions for the layout test analyzer."""
7 6
8 from datetime import datetime 7 from datetime import datetime
9 from email.mime.multipart import MIMEMultipart 8 from email.mime.multipart import MIMEMultipart
10 from email.mime.text import MIMEText 9 from email.mime.text import MIMEText
11 import fileinput 10 import fileinput
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
547 list2 = map2[name]['te_info'] 546 list2 = map2[name]['te_info']
548 te_diff = [item for item in list1 if not item in list2] 547 te_diff = [item for item in list1 if not item in list2]
549 if te_diff: 548 if te_diff:
550 name_list.append((name, te_diff)) 549 name_list.append((name, te_diff))
551 else: 550 else:
552 name_list.append((name, value1)) 551 name_list.append((name, value1))
553 return name_list 552 return name_list
554 553
555 return (GetDiffBetweenMapsHelper(map1, map2, lookIntoTestExpectationInfo), 554 return (GetDiffBetweenMapsHelper(map1, map2, lookIntoTestExpectationInfo),
556 GetDiffBetweenMapsHelper(map2, map1, lookIntoTestExpectationInfo)) 555 GetDiffBetweenMapsHelper(map2, map1, lookIntoTestExpectationInfo))
OLDNEW
« no previous file with comments | « media/tools/layout_tests/layouttest_analyzer.py ('k') | media/tools/layout_tests/layouttest_analyzer_helpers_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698