| OLD | NEW |
| 1 # Copyright (C) 2011 Google Inc. All rights reserved. | 1 # Copyright (C) 2011 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 def test_uses_apache(self): | 71 def test_uses_apache(self): |
| 72 pass | 72 pass |
| 73 | 73 |
| 74 def test_get_crash_log(self): | 74 def test_get_crash_log(self): |
| 75 pass | 75 pass |
| 76 | 76 |
| 77 def test_check_build(self): | 77 def test_check_build(self): |
| 78 pass | 78 pass |
| 79 | 79 |
| 80 def test_virtual_test_suites(self): |
| 81 pass |
| 82 |
| 80 | 83 |
| 81 class MockDRTTest(unittest.TestCase): | 84 class MockDRTTest(unittest.TestCase): |
| 82 def input_line(self, port, test_name, pixel_tests, checksum=None): | 85 def input_line(self, port, test_name, pixel_tests, checksum=None): |
| 83 url = port.create_driver(0).test_to_uri(test_name) | 86 url = port.create_driver(0).test_to_uri(test_name) |
| 84 if url.startswith('file://'): | 87 if url.startswith('file://'): |
| 85 url = url[len('file://'):] | 88 url = url[len('file://'):] |
| 86 if pixel_tests: | 89 if pixel_tests: |
| 87 url += "'--pixel-test" | 90 url += "'--pixel-test" |
| 88 if checksum: | 91 if checksum: |
| 89 url += "'" + checksum | 92 url += "'" + checksum |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 self.assertTest('passes/audio.html', pixel_tests=True, | 193 self.assertTest('passes/audio.html', pixel_tests=True, |
| 191 drt_output=['Content-Type: audio/wav\n', | 194 drt_output=['Content-Type: audio/wav\n', |
| 192 'Content-Transfer-Encoding: base64\n', | 195 'Content-Transfer-Encoding: base64\n', |
| 193 'YXVkaW8td2F2', | 196 'YXVkaW8td2F2', |
| 194 '\n', | 197 '\n', |
| 195 '#EOF\n', | 198 '#EOF\n', |
| 196 '#EOF\n']) | 199 '#EOF\n']) |
| 197 | 200 |
| 198 def test_virtual(self): | 201 def test_virtual(self): |
| 199 self.assertTest('virtual/passes/text.html', True) | 202 self.assertTest('virtual/passes/text.html', True) |
| OLD | NEW |