Changeset 57806 in webkit


Ignore:
Timestamp:
Apr 19, 2010 1:40:46 AM (14 years ago)
Author:
tkent@chromium.org
Message:

2010-04-19 Kent Tamura <tkent@chromium.org>

Reviewed by Eric Seidel.

[Chromium] new-run-webkit-tests should use WebKitDriver for --use-drt
https://bugs.webkit.org/show_bug.cgi?id=37793

We need to use WebKitDriver instead of ChromiumDriver for Chromium
DRT because its interface is different from test_shell.

Chromium DRT has no UI. So we can't use it to show test results.

  • Scripts/webkitpy/layout_tests/port/chromium.py:
Location:
trunk/WebKitTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKitTools/ChangeLog

    r57805 r57806  
     12010-04-19  Kent Tamura  <tkent@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        [Chromium] new-run-webkit-tests should use WebKitDriver for --use-drt
     6        https://bugs.webkit.org/show_bug.cgi?id=37793
     7
     8        We need to use WebKitDriver instead of ChromiumDriver for Chromium
     9        DRT because its interface is different from test_shell.
     10
     11        Chromium DRT has no UI.  So we can't use it to show test results.
     12
     13        * Scripts/webkitpy/layout_tests/port/chromium.py:
     14
    1152010-04-18  Eric Seidel  <eric@webkit.org>
    216
  • trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium.py

    r57800 r57806  
    3737import sys
    3838import time
     39import webbrowser
    3940
    4041import base
    4142import http_server
     43import webkit
    4244import websocket_server
    4345
     
    151153
    152154    def show_results_html_file(self, results_filename):
    153         subprocess.Popen([self._path_to_driver(),
    154                           self.filename_to_uri(results_filename)])
     155        uri = self.filename_to_uri(results_filename)
     156        if self._options.use_drt:
     157            webbrowser.open(uri, new=1)
     158        else:
     159            subprocess.Popen([self._path_to_driver(), uri])
    155160
    156161    def start_driver(self, image_path, options):
    157162        """Starts a new Driver and returns a handle to it."""
     163        if self._options.use_drt:
     164            return webkit.WebKitDriver(self, image_path, options)
    158165        return ChromiumDriver(self, image_path, options)
    159166
Note: See TracChangeset for help on using the changeset viewer.