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

Side by Side Diff: media/tools/layout_tests/test_expectations.py

Issue 10501010: Update layout_tests tool in media/tools and PRESUBMIT.py per test_expectations.txt renames. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 """A module to analyze test expectations for Webkit layout tests.""" 5 """A module to analyze test expectations for Webkit layout tests."""
6 6
7 import re 7 import re
8 import urllib2 8 import urllib2
9 9
10 # Default Webkit SVN location for chromium test expectation file. 10 # Default Webkit SVN location for chromium test expectation file.
11 # TODO(imasaki): support multiple test expectations files. 11 # TODO(imasaki): support multiple test expectations files.
12 DEFAULT_TEST_EXPECTATION_LOCATION = ( 12 DEFAULT_TEST_EXPECTATION_LOCATION = (
13 'http://svn.webkit.org/repository/webkit/trunk/' 13 'http://svn.webkit.org/repository/webkit/trunk/'
14 'LayoutTests/platform/chromium/test_expectations.txt') 14 'LayoutTests/platform/chromium/TestExpectations')
15 15
16 # The following is from test expectation syntax. The detail can be found in 16 # The following is from test expectation syntax. The detail can be found in
17 # http://www.chromium.org/developers/testing/ 17 # http://www.chromium.org/developers/testing/
18 # webkit-layout-tests#TOC-Test-Expectations 18 # webkit-layout-tests#TOC-Test-Expectations
19 # <decision> ::== [SKIP] [WONTFIX] [SLOW] 19 # <decision> ::== [SKIP] [WONTFIX] [SLOW]
20 DECISION_NAMES = ['SKIP', 'WONTFIX', 'SLOW'] 20 DECISION_NAMES = ['SKIP', 'WONTFIX', 'SLOW']
21 # <platform> ::== [GPU] [CPU] [WIN] [LINUX] [MAC] 21 # <platform> ::== [GPU] [CPU] [WIN] [LINUX] [MAC]
22 PLATFORM_NAMES = ['GPU', 'CPU', 'WIN', 'LINUX', 'MAC'] 22 PLATFORM_NAMES = ['GPU', 'CPU', 'WIN', 'LINUX', 'MAC']
23 # <config> ::== RELEASE | DEBUG 23 # <config> ::== RELEASE | DEBUG
24 CONFIG_NAMES = ['RELEASE', 'DEBUG'] 24 CONFIG_NAMES = ['RELEASE', 'DEBUG']
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 line = line[0:line.rindex('//')] 146 line = line[0:line.rindex('//')]
147 for name in ALL_TE_KEYWORDS: 147 for name in ALL_TE_KEYWORDS:
148 if name in line: 148 if name in line:
149 test_expectation_info[name] = True 149 test_expectation_info[name] = True
150 test_expectation_info['Comments'] = comment_prefix + inline_comments 150 test_expectation_info['Comments'] = comment_prefix + inline_comments
151 # Store bug informations. 151 # Store bug informations.
152 bugs = re.findall(r'BUG\w+', line) 152 bugs = re.findall(r'BUG\w+', line)
153 if bugs: 153 if bugs:
154 test_expectation_info['Bugs'] = bugs 154 test_expectation_info['Bugs'] = bugs
155 return test_expectation_info 155 return test_expectation_info
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698