Changeset 94483 in webkit


Ignore:
Timestamp:
Sep 3, 2011, 12:45:30 AM (14 years ago)
Author:
rniwa@webkit.org
Message:

Unreviewed, rolling out r94458.
http://trac.webkit.org/changeset/94458
https://bugs.webkit.org/show_bug.cgi?id=67558

Caused appcache test to fail on various bots (Requested by
rniwa on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2011-09-03

  • Scripts/webkitpy/layout_tests/port/webkit.py:
  • Scripts/webkitpy/layout_tests/port/webkit_unittest.py:
Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r94481 r94483  
     12011-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
    1132011-09-03  Sheriff Bot  <webkit.review.bot@gmail.com>
    214
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit.py

    r94481 r94483  
    531531                line = chomped_line[:-4]
    532532
    533             if line.startswith(self.TYPE_HEADER) and content_type is None:
     533            if line.startswith(TYPE_HEADER) and content_type is None:
    534534                content_type = line.split()[1]
    535535            elif line.startswith(ENCODING_HEADER) and encoding is None:
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/webkit_unittest.py

    r94458 r94483  
    3232
    3333from webkitpy.layout_tests.models.test_configuration import TestConfiguration
    34 from webkitpy.layout_tests.port.webkit import WebKitPort, WebKitDriver
     34from webkitpy.layout_tests.port.webkit import WebKitPort
    3535from webkitpy.layout_tests.port import port_testcase
    3636
     
    198198        port._apache_config_file_name_for_platform = lambda platform: 'httpd.conf'
    199199        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 = False
    205         self.crashed = False
    206         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.