OLD | NEW |
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 Loading... |
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)) |
OLD | NEW |