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 11 matching lines...) Expand all Loading... |
22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 22 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 23 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 24 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 25 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 26 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 | 28 |
29 """Unit tests for MockDRT.""" | 29 """Unit tests for MockDRT.""" |
30 | 30 |
31 import sys | 31 import sys |
32 import webkitpy.thirdparty.unittest2 as unittest | 32 import unittest |
33 | 33 |
34 from webkitpy.common import newstringio | 34 from webkitpy.common import newstringio |
35 from webkitpy.common.system.systemhost_mock import MockSystemHost | 35 from webkitpy.common.system.systemhost_mock import MockSystemHost |
36 from webkitpy.layout_tests.port import mock_drt | 36 from webkitpy.layout_tests.port import mock_drt |
37 from webkitpy.layout_tests.port import port_testcase | 37 from webkitpy.layout_tests.port import port_testcase |
38 from webkitpy.layout_tests.port import test | 38 from webkitpy.layout_tests.port import test |
39 from webkitpy.layout_tests.port.factory import PortFactory | 39 from webkitpy.layout_tests.port.factory import PortFactory |
40 from webkitpy.tool import mocktool | 40 from webkitpy.tool import mocktool |
41 | 41 |
42 | 42 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 self.assertTest('passes/audio.html', pixel_tests=True, | 192 self.assertTest('passes/audio.html', pixel_tests=True, |
193 drt_output=['Content-Type: audio/wav\n', | 193 drt_output=['Content-Type: audio/wav\n', |
194 'Content-Transfer-Encoding: base64\n', | 194 'Content-Transfer-Encoding: base64\n', |
195 'YXVkaW8td2F2', | 195 'YXVkaW8td2F2', |
196 '\n', | 196 '\n', |
197 '#EOF\n', | 197 '#EOF\n', |
198 '#EOF\n']) | 198 '#EOF\n']) |
199 | 199 |
200 def test_virtual(self): | 200 def test_virtual(self): |
201 self.assertTest('virtual/passes/text.html', True) | 201 self.assertTest('virtual/passes/text.html', True) |
OLD | NEW |