Changeset 76709 in webkit


Ignore:
Timestamp:
Jan 26, 2011 12:45:39 PM (13 years ago)
Author:
dpranke@chromium.org
Message:

2011-01-26 Dirk Pranke <dpranke@chromium.org>

Reviewed by Tony Chang.

new-run-webkit-tests: add a "mock DRT" port implementation
and a separate class that emulates what we expect the
DumpRenderTree behavior to be.

This will eventually replace port/dryrun.py and allow us to get
better test coverage of the new-run-webkit-tests code as well as
a reference for what new-run-webkit-tests expects from DRT.

This is the first attempt at this, and it is pretty bare-boned. It
really only has been tested on the 'mac' port (and a little on
the 'chromium-mac' port.

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

  • Scripts/webkitpy/layout_tests/port/mock_drt.py: Added.
  • Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py: Added.
  • Scripts/webkitpy/layout_tests/port/factory.py:
Location:
trunk/Tools
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r76704 r76709  
     12011-01-26  Dirk Pranke  <dpranke@chromium.org>
     2
     3        Reviewed by Tony Chang.
     4
     5        new-run-webkit-tests: add a "mock DRT" port implementation
     6        and a separate class that emulates what we expect the
     7        DumpRenderTree behavior to be.
     8
     9        This will eventually replace port/dryrun.py and allow us to get
     10        better test coverage of the new-run-webkit-tests code as well as
     11        a reference for what new-run-webkit-tests expects from DRT.
     12
     13        This is the first attempt at this, and it is pretty bare-boned. It
     14        really only has been tested on the 'mac' port (and a little on
     15        the 'chromium-mac' port.
     16
     17        https://bugs.webkit.org/show_bug.cgi?id=53126
     18
     19        * Scripts/webkitpy/layout_tests/port/mock_drt.py: Added.
     20        * Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py: Added.
     21        * Scripts/webkitpy/layout_tests/port/factory.py:
     22
    1232011-01-26  Xianzhu Wang  <wangxianzhu@google.com>
    224
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/factory.py

    r76642 r76709  
    3333import sys
    3434
    35 ALL_PORT_NAMES = ['test', 'dryrun', 'mac', 'win', 'gtk', 'qt', 'chromium-mac',
     35ALL_PORT_NAMES = ['test', 'dryrun', 'mock', 'mac', 'win', 'gtk', 'qt', 'chromium-mac',
    3636                  'chromium-linux', 'chromium-win', 'google-chrome-win',
    3737                  'google-chrome-mac', 'google-chrome-linux32', 'google-chrome-linux64']
     
    7777        import dryrun
    7878        maker = dryrun.DryRunPort
     79    elif port_to_use.startswith('mock'):
     80        import mock_drt
     81        maker = mock_drt.MockDRTPort
    7982    elif port_to_use.startswith('mac'):
    8083        import mac
Note: See TracChangeset for help on using the changeset viewer.