diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 22:27:40 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-21 22:27:40 +0000 |
commit | 055b883f91c62e015a4063df2a85dfdb8514aea0 (patch) | |
tree | 6acacddd0a75fd457c3a6c7aae28a90fcf8d0be0 /webkit | |
parent | 616ed5a653d4bc13b4633d7c7b85d2f0c73bfd72 (diff) | |
download | chromium_src-055b883f91c62e015a4063df2a85dfdb8514aea0.zip chromium_src-055b883f91c62e015a4063df2a85dfdb8514aea0.tar.gz chromium_src-055b883f91c62e015a4063df2a85dfdb8514aea0.tar.bz2 |
helper method for getting the platform name in layout tests
Review URL: http://codereview.chromium.org/11578
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
3 files changed, 24 insertions, 9 deletions
diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py index 090c039..404a9a4 100644 --- a/webkit/tools/layout_tests/layout_package/platform_utils_linux.py +++ b/webkit/tools/layout_tests/layout_package/platform_utils_linux.py @@ -21,12 +21,17 @@ THISDIR = os.path.dirname(os.path.abspath(__file__)) def PathFromBase(*pathies): return google.path_utils.FindUpward(THISDIR, *pathies) -"""Returns true iff this platform is targetting Windows baseline, but isn't -Windows. By default, in path_utils.py:ExpectedFilename, we expect platforms to -be targetting Mac.""" def IsNonWindowsPlatformTargettingWindowsResults(): + """Returns true iff this platform is targetting Windows baseline, but isn't + Windows. By default, in path_utils.py:ExpectedFilename, we expect platforms to + be targetting Mac.""" return True +def GetTestListPlatformName(): + """Returns the name we use to identify the platform in the layout test + test list files.""" + return "LINUX" + class PlatformUtility(object): def __init__(self, base_dir): """Args: diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_mac.py b/webkit/tools/layout_tests/layout_package/platform_utils_mac.py index c231e5a..0a5e090 100644 --- a/webkit/tools/layout_tests/layout_package/platform_utils_mac.py +++ b/webkit/tools/layout_tests/layout_package/platform_utils_mac.py @@ -21,12 +21,17 @@ THISDIR = os.path.dirname(os.path.abspath(__file__)) def PathFromBase(*pathies): return google.path_utils.FindUpward(THISDIR, *pathies) -"""Returns true iff this platform is targetting Windows baseline, but isn't -Windows. By default, in path_utils.py:ExpectedFilename, we expect platforms to -be targetting Mac.""" def IsNonWindowsPlatformTargettingWindowsResults(): + """Returns true iff this platform is targetting Windows baseline, but isn't + Windows. By default, in path_utils.py:ExpectedFilename, we expect platforms to + be targetting Mac.""" return False +def GetTestListPlatformName(): + """Returns the name we use to identify the platform in the layout test + test list files.""" + return "MAC" + class PlatformUtility(object): def __init__(self, base_dir): """Args: diff --git a/webkit/tools/layout_tests/layout_package/platform_utils_win.py b/webkit/tools/layout_tests/layout_package/platform_utils_win.py index 1687689..5403e11 100644 --- a/webkit/tools/layout_tests/layout_package/platform_utils_win.py +++ b/webkit/tools/layout_tests/layout_package/platform_utils_win.py @@ -28,12 +28,17 @@ THISDIR = os.path.dirname(os.path.abspath(__file__)) def PathFromBase(*pathies): return google.path_utils.FindUpward(THISDIR, *pathies) -"""Returns true iff this platform is targetting Windows baseline, but isn't -Windows. By default, in path_utils.py:ExpectedFilename, we expect platforms to -be targetting Mac.""" def IsNonWindowsPlatformTargettingWindowsResults(): + """Returns true iff this platform is targetting Windows baseline, but isn't + Windows. By default, in path_utils.py:ExpectedFilename, we expect platforms to + be targetting Mac.""" return False +def GetTestListPlatformName(): + """Returns the name we use to identify the platform in the layout test + test list files.""" + return "WIN" + class PlatformUtility(google.platform_utils_win.PlatformUtility): """Overrides base PlatformUtility methods as needed for layout tests.""" |