Changeset 139102 in webkit


Ignore:
Timestamp:
Jan 8, 2013 1:25:28 PM (11 years ago)
Author:
zandobersek@gmail.com
Message:

[webkitpy] Call setup_test_run method of the parent Port interface when method is called on subclasses
https://bugs.webkit.org/show_bug.cgi?id=106364

Reviewed by Eric Seidel.

When the setup_test_run method is called on the subclasses of the base Port
interface, the parent method should also be called via super(), despite the
parent method not doing anything at the moment.

The according calls to super() are required in the ChromiumPort, EflPort
and GtkPort implementations.

  • Scripts/webkitpy/layout_tests/port/chromium.py:

(ChromiumPort.setup_test_run):

  • Scripts/webkitpy/layout_tests/port/efl.py:

(EflPort.setup_test_run):

  • Scripts/webkitpy/layout_tests/port/gtk.py:

(GtkPort.setup_test_run):

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r139097 r139102  
     12013-01-08  Zan Dobersek  <zandobersek@gmail.com>
     2
     3        [webkitpy] Call setup_test_run method of the parent Port interface when method is called on subclasses
     4        https://bugs.webkit.org/show_bug.cgi?id=106364
     5
     6        Reviewed by Eric Seidel.
     7
     8        When the setup_test_run method is called on the subclasses of the base Port
     9        interface, the parent method should also be called via super(), despite the
     10        parent method not doing anything at the moment.
     11
     12        The according calls to super() are required in the ChromiumPort, EflPort
     13        and GtkPort implementations.
     14
     15        * Scripts/webkitpy/layout_tests/port/chromium.py:
     16        (ChromiumPort.setup_test_run):
     17        * Scripts/webkitpy/layout_tests/port/efl.py:
     18        (EflPort.setup_test_run):
     19        * Scripts/webkitpy/layout_tests/port/gtk.py:
     20        (GtkPort.setup_test_run):
     21
    1222013-01-08  Julie Parent  <jparent@chromium.org>
    223
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/chromium.py

    r138294 r139102  
    289289
    290290    def setup_test_run(self):
     291        super(ChromiumPort, self).setup_test_run()
    291292        # Delete the disk cache if any to ensure a clean test run.
    292293        dump_render_tree_binary_path = self._path_to_driver()
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/efl.py

    r139095 r139102  
    5353
    5454    def setup_test_run(self):
     55        super(EflPort, self).setup_test_run()
    5556        self._pulseaudio_sanitizer.unload_pulseaudio_module()
    5657
  • trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk.py

    r139095 r139102  
    5858
    5959    def setup_test_run(self):
     60        super(GtkPort, self).setup_test_run()
    6061        self._pulseaudio_sanitizer.unload_pulseaudio_module()
    6162
Note: See TracChangeset for help on using the changeset viewer.