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

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/w3c/test_copier.py

Issue 2696323003: Link to new web-platform-tests.org documentation from our own (Closed)
Patch Set: Created 3 years, 10 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) 2013 Adobe Systems Incorporated. All rights reserved. 1 # Copyright (C) 2013 Adobe Systems Incorporated. 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 4 # modification, are permitted provided that the following conditions
5 # are met: 5 # are met:
6 # 6 #
7 # 1. Redistributions of source code must retain the above 7 # 1. Redistributions of source code must retain the above
8 # copyright notice, this list of conditions and the following 8 # copyright notice, this list of conditions and the following
9 # disclaimer. 9 # disclaimer.
10 # 2. Redistributions in binary form must reproduce the above 10 # 2. Redistributions in binary form must reproduce the above
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 paths_to_skip = self.find_paths_to_skip() 101 paths_to_skip = self.find_paths_to_skip()
102 102
103 for root, dirs, files in self.filesystem.walk(self.source_repo_path): 103 for root, dirs, files in self.filesystem.walk(self.source_repo_path):
104 cur_dir = root.replace(self.dir_above_repo + '/', '') + '/' 104 cur_dir = root.replace(self.dir_above_repo + '/', '') + '/'
105 _log.debug('Scanning %s...', cur_dir) 105 _log.debug('Scanning %s...', cur_dir)
106 total_tests = 0 106 total_tests = 0
107 reftests = 0 107 reftests = 0
108 jstests = 0 108 jstests = 0
109 109
110 # Files in 'tools' are not for browser testing, so we skip them. 110 # Files in 'tools' are not for browser testing, so we skip them.
111 # See: http://testthewebforward.org/docs/test-format-guidelines.html #tools 111 # See: http://web-platform-tests.org/writing-tests/general-guideline s.html#tools
112 dirs_to_skip = ('.git', 'test-plan', 'tools') 112 dirs_to_skip = ('.git', 'test-plan', 'tools')
113 113
114 # We copy all files in 'support', including HTML without metadata. 114 # We copy all files in 'support', including HTML without metadata.
115 # See: http://testthewebforward.org/docs/test-format-guidelines.html #support-files 115 # See: http://web-platform-tests.org/writing-tests/general-guideline s.html#support-files
116 dirs_to_include = ('resources', 'support') 116 dirs_to_include = ('resources', 'support')
117 117
118 if dirs: 118 if dirs:
119 for name in dirs_to_skip: 119 for name in dirs_to_skip:
120 if name in dirs: 120 if name in dirs:
121 dirs.remove(name) 121 dirs.remove(name)
122 122
123 for path in paths_to_skip: 123 for path in paths_to_skip:
124 path_base = path.replace(self.dest_dir_name + '/', '') 124 path_base = path.replace(self.dest_dir_name + '/', '')
125 path_base = path_base.replace(cur_dir, '') 125 path_base = path_base.replace(cur_dir, '')
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 """Checks whether a source path is too long to import. 362 """Checks whether a source path is too long to import.
363 363
364 Args: 364 Args:
365 Absolute path of file to be imported. 365 Absolute path of file to be imported.
366 366
367 Returns: 367 Returns:
368 True if the path is too long to import, False if it's OK. 368 True if the path is too long to import, False if it's OK.
369 """ 369 """
370 path_from_repo_base = os.path.relpath(source_path, self.source_repo_path ) 370 path_from_repo_base = os.path.relpath(source_path, self.source_repo_path )
371 return len(path_from_repo_base) > MAX_PATH_LENGTH 371 return len(path_from_repo_base) > MAX_PATH_LENGTH
OLDNEW
« docs/testing/writing_layout_tests.md ('K') | « third_party/WebKit/Source/core/dom/custom/README.md ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698