2010-02-23 Dirk Pranke <dpranke@chromium.org>
authordpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Feb 2010 01:07:59 +0000 (01:07 +0000)
committerdpranke@chromium.org <dpranke@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 25 Feb 2010 01:07:59 +0000 (01:07 +0000)
commitb8571b863871722dca4ac5e0660669a9dd58f664
treebbed03861aa37c547a319156321ecedc37de6054
parent4098254acd66556a656fb5640aac20641615cd49
2010-02-23  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by David Levin.

        When the run-chromium-webkit-tests code was landed and the code was
        refactored into the 'port' package, I accidentally broke using
        http_server.py or websocket_server.py as command-line scripts
        (the constructors needed a port object they weren't getting). This
        change fixes them so that --server start|stop actually works.

        As a part of this, the two files need to be able to call port.get(),
        but doing that is awkward from a file inside the package, so I moved
        get() into factory.py and imported that into __init__.py so that
        http_server.py and websocket_server.py can just import factory.

        https://bugs.webkit.org/show_bug.cgi?id=35316

        * Scripts/webkitpy/layout_tests/port/__init__.py:
        * Scripts/webkitpy/layout_tests/port/factory.py:
        * Scripts/webkitpy/layout_tests/port/http_server.py:
        * Scripts/webkitpy/layout_tests/port/websocket_server.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebKitTools/ChangeLog
WebKitTools/Scripts/webkitpy/layout_tests/port/__init__.py
WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_mac.py
WebKitTools/Scripts/webkitpy/layout_tests/port/factory.py [new file with mode: 0644]
WebKitTools/Scripts/webkitpy/layout_tests/port/http_server.py
WebKitTools/Scripts/webkitpy/layout_tests/port/websocket_server.py