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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/driver.py

Issue 2004463002: Move remaining files from web-platform-tests/ and update remaining paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update paths in webkitpy/layout_tests/servers/. Created 4 years, 7 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
OLDNEW
1 # Copyright (C) 2011 Google Inc. All rights reserved. 1 # Copyright (C) 2011 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 216
217 # FIXME: Seems this could just be inlined into callers. 217 # FIXME: Seems this could just be inlined into callers.
218 @classmethod 218 @classmethod
219 def _command_wrapper(cls, wrapper_option): 219 def _command_wrapper(cls, wrapper_option):
220 # Hook for injecting valgrind or other runtime instrumentation, 220 # Hook for injecting valgrind or other runtime instrumentation,
221 # used by e.g. tools/valgrind/valgrind_tests.py. 221 # used by e.g. tools/valgrind/valgrind_tests.py.
222 return shlex.split(wrapper_option) if wrapper_option else [] 222 return shlex.split(wrapper_option) if wrapper_option else []
223 223
224 HTTP_DIR = "http/tests/" 224 HTTP_DIR = "http/tests/"
225 HTTP_LOCAL_DIR = "http/tests/local/" 225 HTTP_LOCAL_DIR = "http/tests/local/"
226 WPT_DIR = "imported/web-platform-tests/" 226 WPT_DIR = "imported/wpt/"
227 227
228 def is_http_test(self, test_name): 228 def is_http_test(self, test_name):
229 return test_name.startswith(self.HTTP_DIR) and not test_name.startswith( self.HTTP_LOCAL_DIR) 229 return test_name.startswith(self.HTTP_DIR) and not test_name.startswith( self.HTTP_LOCAL_DIR)
230 230
231 def _should_treat_as_wpt_test(self, test_name): 231 def _should_treat_as_wpt_test(self, test_name):
232 return self._port.is_wpt_enabled() and self._port.is_wpt_test(test_name) 232 return self._port.is_wpt_enabled() and self._port.is_wpt_test(test_name)
233 233
234 def _get_http_host_and_ports_for_test(self, test_name): 234 def _get_http_host_and_ports_for_test(self, test_name):
235 if self._should_treat_as_wpt_test(test_name): 235 if self._should_treat_as_wpt_test(test_name):
236 # TODO(burnik): Read from config or args. 236 # TODO(burnik): Read from config or args.
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 self.decoded_content = None 542 self.decoded_content = None
543 self.malloc = None 543 self.malloc = None
544 self.js_heap = None 544 self.js_heap = None
545 self.stdin_path = None 545 self.stdin_path = None
546 546
547 def decode_content(self): 547 def decode_content(self):
548 if self.encoding == 'base64' and self.content is not None: 548 if self.encoding == 'base64' and self.content is not None:
549 self.decoded_content = base64.b64decode(self.content) 549 self.decoded_content = base64.b64decode(self.content)
550 else: 550 else:
551 self.decoded_content = self.content 551 self.decoded_content = self.content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698