OLD | NEW |
1 # Copyright (C) 2010 Google Inc. All rights reserved. | 1 # Copyright (C) 2010 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 def __contains__(self, item): | 95 def __contains__(self, item): |
96 return item in self.tests | 96 return item in self.tests |
97 | 97 |
98 def __getitem__(self, item): | 98 def __getitem__(self, item): |
99 return self.tests[item] | 99 return self.tests[item] |
100 | 100 |
101 # | 101 # |
102 # These numbers may need to be updated whenever we add or delete tests. | 102 # These numbers may need to be updated whenever we add or delete tests. |
103 # | 103 # |
104 TOTAL_TESTS = 100 | 104 TOTAL_TESTS = 102 |
105 TOTAL_SKIPS = 25 | 105 TOTAL_SKIPS = 25 |
106 TOTAL_RETRIES = 14 | 106 TOTAL_RETRIES = 14 |
107 | 107 |
108 UNEXPECTED_PASSES = 6 | 108 UNEXPECTED_PASSES = 6 |
109 UNEXPECTED_FAILURES = 17 | 109 UNEXPECTED_FAILURES = 17 |
110 | 110 |
111 def unit_test_list(): | 111 def unit_test_list(): |
112 tests = TestList() | 112 tests = TestList() |
113 tests.add('failures/expected/crash.html', crash=True) | 113 tests.add('failures/expected/crash.html', crash=True) |
114 tests.add('failures/expected/exception.html', exception=True) | 114 tests.add('failures/expected/exception.html', exception=True) |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 image = None | 609 image = None |
610 else: | 610 else: |
611 image = test.actual_image | 611 image = test.actual_image |
612 return DriverOutput(actual_text, image, test.actual_checksum, audio, | 612 return DriverOutput(actual_text, image, test.actual_checksum, audio, |
613 crash=test.crash or test.web_process_crash, crashed_process_name=cra
shed_process_name, | 613 crash=test.crash or test.web_process_crash, crashed_process_name=cra
shed_process_name, |
614 crashed_pid=crashed_pid, crash_log=crash_log, | 614 crashed_pid=crashed_pid, crash_log=crash_log, |
615 test_time=time.time() - start_time, timeout=test.timeout, error=test
.error, pid=self.pid) | 615 test_time=time.time() - start_time, timeout=test.timeout, error=test
.error, pid=self.pid) |
616 | 616 |
617 def stop(self): | 617 def stop(self): |
618 self.started = False | 618 self.started = False |
OLD | NEW |