Changeset 94483 in webkit
- Timestamp:
- Sep 3, 2011, 12:45:30 AM (14 years ago)
- Location:
- trunk/Tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r94481 r94483 1 2011-09-03 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r94458. 4 http://trac.webkit.org/changeset/94458 5 https://bugs.webkit.org/show_bug.cgi?id=67558 6 7 Caused appcache test to fail on various bots (Requested by 8 rniwa on #webkit). 9 10 * Scripts/webkitpy/layout_tests/port/webkit.py: 11 * Scripts/webkitpy/layout_tests/port/webkit_unittest.py: 12 1 13 2011-09-03 Sheriff Bot <webkit.review.bot@gmail.com> 2 14 -
trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py
r94481 r94483 531 531 line = chomped_line[:-4] 532 532 533 if line.startswith( self.TYPE_HEADER) and content_type is None:533 if line.startswith(TYPE_HEADER) and content_type is None: 534 534 content_type = line.split()[1] 535 535 elif line.startswith(ENCODING_HEADER) and encoding is None: -
trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit_unittest.py
r94458 r94483 32 32 33 33 from webkitpy.layout_tests.models.test_configuration import TestConfiguration 34 from webkitpy.layout_tests.port.webkit import WebKitPort , WebKitDriver34 from webkitpy.layout_tests.port.webkit import WebKitPort 35 35 from webkitpy.layout_tests.port import port_testcase 36 36 … … 198 198 port._apache_config_file_name_for_platform = lambda platform: 'httpd.conf' 199 199 self.assertEquals(port._path_to_apache_config_file(), '/mock-checkout/LayoutTests/http/conf/httpd.conf') 200 201 202 class MockServerProcess(object):203 def __init__(self, lines=None):204 self.timed_out = False205 self.crashed = False206 self.lines = lines or []207 208 def read_line(self, timeout):209 return self.lines.pop(0)210 211 212 class WebKitDriverTest(unittest.TestCase):213 def test_read_block(self):214 port = TestWebKitPort()215 driver = WebKitDriver(port, 0)216 driver._server_process = MockServerProcess([217 'ActualHash: foobar',218 'Content-Type: my_type',219 'Content-Transfer-Encoding: none',220 "#EOF",221 ])222 content_block = driver._read_block(0)223 self.assertEquals(content_block.content_type, 'my_type')224 self.assertEquals(content_block.encoding, 'none')225 self.assertEquals(content_block.content_hash, 'foobar')
Note:
See TracChangeset
for help on using the changeset viewer.