Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(429)

Side by Side Diff: webkit/tools/layout_tests/layout_package/platform_utils_win.py

Issue 146112: Allow layout tests to be located both in src/webkit/data/layout_tests and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """Platform specific utility methods. This file contains methods that are 5 """Platform specific utility methods. This file contains methods that are
6 specific to running the layout tests on windows. 6 specific to running the layout tests on windows.
7 7
8 This file constitutes a complete wrapper for google.platform_utils_win, 8 This file constitutes a complete wrapper for google.platform_utils_win,
9 implementing or mapping all needed functions from there. Layout-test scripts 9 implementing or mapping all needed functions from there. Layout-test scripts
10 should be able to import only this file (via platform_utils.py), with no need 10 should be able to import only this file (via platform_utils.py), with no need
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 WebKit http tests that have been modified and are temporarily in pending/ 111 WebKit http tests that have been modified and are temporarily in pending/
112 will still fail, if they expect the DocumentRoot to be located as described 112 will still fail, if they expect the DocumentRoot to be located as described
113 above.) 113 above.)
114 114
115 Args: 115 Args:
116 output_dir: the path to the test output directory. It will be created. 116 output_dir: the path to the test output directory. It will be created.
117 apache2: boolean if true will cause this function to return start 117 apache2: boolean if true will cause this function to return start
118 command for Apache 2.x instead of Apache 1.3.x 118 command for Apache 2.x instead of Apache 1.3.x
119 """ 119 """
120 layout_dir = google.platform_utils_win.GetCygwinPath( 120 layout_dir = google.platform_utils_win.GetCygwinPath(
121 layout_package_path_utils.LayoutDataDir()) 121 layout_package_path_utils.LayoutTestsDir())
122 main_document_root = os.path.join(layout_dir, "LayoutTests", 122 main_document_root = os.path.join(layout_dir, "LayoutTests",
123 "http", "tests") 123 "http", "tests")
124 pending_document_root = os.path.join(layout_dir, "pending", 124 pending_document_root = os.path.join(layout_dir, "pending",
125 "http", "tests") 125 "http", "tests")
126 chrome_document_root = layout_dir 126 chrome_document_root = layout_dir
127 apache_config_dir = google.httpd_utils.ApacheConfigDir(self._base_dir) 127 apache_config_dir = google.httpd_utils.ApacheConfigDir(self._base_dir)
128 mime_types_path = os.path.join(apache_config_dir, "mime.types") 128 mime_types_path = os.path.join(apache_config_dir, "mime.types")
129 129
130 conf_file_name = "httpd.conf" 130 conf_file_name = "httpd.conf"
131 if apache2: 131 if apache2:
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 def PlatformDir(self): 207 def PlatformDir(self):
208 """Returns the most specific directory name where platform-specific 208 """Returns the most specific directory name where platform-specific
209 results live. 209 results live.
210 """ 210 """
211 return 'chromium-win' 211 return 'chromium-win'
212 212
213 def PlatformNewResultsDir(self): 213 def PlatformNewResultsDir(self):
214 """Returns the directory name in which to output newly baselined tests. 214 """Returns the directory name in which to output newly baselined tests.
215 """ 215 """
216 return self.PlatformDir() 216 return self.PlatformDir()
OLDNEW
« no previous file with comments | « webkit/tools/layout_tests/layout_package/path_utils.py ('k') | webkit/tools/layout_tests/layout_package/test_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698