OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 """Unittests to make sure we generate and update the expected-*.txt files | 6 """Unittests to make sure we generate and update the expected-*.txt files |
7 properly after running layout tests.""" | 7 properly after running layout tests.""" |
8 | 8 |
9 import os | 9 import os |
10 import sys | 10 import sys |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 ########################################################################### | 344 ########################################################################### |
345 # Helper functions | 345 # Helper functions |
346 | 346 |
347 def updateExpectations(self, expectations, updates, expected_results): | 347 def updateExpectations(self, expectations, updates, expected_results): |
348 results = update_expectations_from_dashboard.UpdateExpectations( | 348 results = update_expectations_from_dashboard.UpdateExpectations( |
349 expectations, updates) | 349 expectations, updates) |
350 self.assertEqual(expected_results, results) | 350 self.assertEqual(expected_results, results) |
351 | 351 |
352 if '__main__' == __name__: | 352 if '__main__' == __name__: |
353 unittest.main() | 353 unittest.main() |
OLD | NEW |