| OLD | NEW |
| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 printer._options.new_baseline = True | 132 printer._options.new_baseline = True |
| 133 printer._options.time_out_ms = 6000 | 133 printer._options.time_out_ms = 6000 |
| 134 printer._options.slow_time_out_ms = 12000 | 134 printer._options.slow_time_out_ms = 12000 |
| 135 printer._options.order = 'random' | 135 printer._options.order = 'random' |
| 136 printer._options.seed = 1234 | 136 printer._options.seed = 1234 |
| 137 printer.print_config('/tmp') | 137 printer.print_config('/tmp') |
| 138 self.assertIn("Using port 'test-mac-mac10.10'", err.getvalue()) | 138 self.assertIn("Using port 'test-mac-mac10.10'", err.getvalue()) |
| 139 self.assertIn('Test configuration: <mac10.10, x86, release>', err.getval
ue()) | 139 self.assertIn('Test configuration: <mac10.10, x86, release>', err.getval
ue()) |
| 140 self.assertIn('View the test results at file:///tmp', err.getvalue()) | 140 self.assertIn('View the test results at file:///tmp', err.getvalue()) |
| 141 self.assertIn('View the archived results dashboard at file:///tmp', err.
getvalue()) | 141 self.assertIn('View the archived results dashboard at file:///tmp', err.
getvalue()) |
| 142 self.assertIn('Baseline search path: test-mac-mac10.10 -> test-mac-mac10
.11 -> generic', err.getvalue()) | 142 self.assertIn('Baseline search path: mac10.10-baselines -> mac-baselines
-> generic', err.getvalue()) |
| 143 self.assertIn('Using Release build', err.getvalue()) | 143 self.assertIn('Using Release build', err.getvalue()) |
| 144 self.assertIn('Pixel tests enabled', err.getvalue()) | 144 self.assertIn('Pixel tests enabled', err.getvalue()) |
| 145 self.assertIn('Command line:', err.getvalue()) | 145 self.assertIn('Command line:', err.getvalue()) |
| 146 self.assertIn('Regular timeout: ', err.getvalue()) | 146 self.assertIn('Regular timeout: ', err.getvalue()) |
| 147 self.assertIn('Using random order with seed: 1234', err.getvalue()) | 147 self.assertIn('Using random order with seed: 1234', err.getvalue()) |
| 148 | 148 |
| 149 self.reset(err) | 149 self.reset(err) |
| 150 printer._options.quiet = True | 150 printer._options.quiet = True |
| 151 printer.print_config('/tmp') | 151 printer.print_config('/tmp') |
| 152 self.assertNotIn('Baseline search path: test-mac-mac10.10 -> test-mac-ma
c10.11 -> generic', err.getvalue()) | 152 self.assertNotIn('Baseline search path: test-mac-mac10.10 -> test-mac-ma
c10.11 -> generic', err.getvalue()) |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 printer.print_finished_test(result, expected=True, exp_str='', got_str='
') | 254 printer.print_finished_test(result, expected=True, exp_str='', got_str='
') |
| 255 | 255 |
| 256 printer.print_started_test('passes/text.html') | 256 printer.print_started_test('passes/text.html') |
| 257 result = self.get_result('passes/text.html') | 257 result = self.get_result('passes/text.html') |
| 258 printer.print_finished_test(result, expected=True, exp_str='', got_str='
') | 258 printer.print_finished_test(result, expected=True, exp_str='', got_str='
') |
| 259 | 259 |
| 260 # Only the first test's start should be printed. | 260 # Only the first test's start should be printed. |
| 261 lines = err.buflist | 261 lines = err.buflist |
| 262 self.assertEqual(len(lines), 1) | 262 self.assertEqual(len(lines), 1) |
| 263 self.assertTrue(lines[0].endswith('passes/image.html\n')) | 263 self.assertTrue(lines[0].endswith('passes/image.html\n')) |
| OLD | NEW |