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

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

Issue 2505683002: Update links to layout test documentation. (Closed)
Patch Set: Use relative paths in markdown, and src-relative paths elsewhere. Created 4 years, 1 month 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
« no previous file with comments | « media/tools/layout_tests/bug.py ('k') | testing/android/docs/README.md » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 urllib2 7 import urllib2
8 8
9 from webkitpy.layout_tests.models.test_expectations import * 9 from webkitpy.layout_tests.models.test_expectations import *
10 10
11 # Default location for chromium test expectation file. 11 # Default location for chromium test expectation file.
12 # TODO(imasaki): support multiple test expectations files. 12 # TODO(imasaki): support multiple test expectations files.
13 DEFAULT_TEST_EXPECTATIONS_LOCATION = ( 13 DEFAULT_TEST_EXPECTATIONS_LOCATION = (
14 'http://src.chromium.org/blink/trunk/LayoutTests/TestExpectations') 14 'http://src.chromium.org/blink/trunk/LayoutTests/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.
17 # http://www.chromium.org/developers/testing/webkit-layout-tests#TOC-Test-Expect ations 17 # See: //docs/testing/layout_test_expectations.md
18 # <decision> ::== [SKIP] [WONTFIX] [SLOW] 18 # <decision> ::== [SKIP] [WONTFIX] [SLOW]
19 DECISION_NAMES = ['SKIP', 'WONTFIX', 'SLOW'] 19 DECISION_NAMES = ['SKIP', 'WONTFIX', 'SLOW']
20 # <config> ::== RELEASE | DEBUG 20 # <config> ::== RELEASE | DEBUG
21 CONFIG_NAMES = ['RELEASE', 'DEBUG'] 21 CONFIG_NAMES = ['RELEASE', 'DEBUG']
22 # Only hard code keywords we don't expect to change. Determine the rest from 22 # Only hard code keywords we don't expect to change. Determine the rest from
23 # the format of the status line. 23 # the format of the status line.
24 KNOWN_TE_KEYWORDS = DECISION_NAMES + CONFIG_NAMES 24 KNOWN_TE_KEYWORDS = DECISION_NAMES + CONFIG_NAMES
25 25
26 26
27 class TestExpectations(object): 27 class TestExpectations(object):
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 test_expectation_info['Comments'] = parsed.comment or '' 99 test_expectation_info['Comments'] = parsed.comment or ''
100 test_expectation_info['Bugs'] = parsed.bugs or []; 100 test_expectation_info['Bugs'] = parsed.bugs or [];
101 test_expectation_info['Platforms'] = parsed.specifiers or [] 101 test_expectation_info['Platforms'] = parsed.specifiers or []
102 # Shovel the expectations and modifiers in as "<key>: True" entries. Ugly, 102 # Shovel the expectations and modifiers in as "<key>: True" entries. Ugly,
103 # but required by the rest of the pipeline for parsing. 103 # but required by the rest of the pipeline for parsing.
104 for m in parsed.expectations: 104 for m in parsed.expectations:
105 test_expectation_info[m] = True 105 test_expectation_info[m] = True
106 106
107 return parsed.name, test_expectation_info 107 return parsed.name, test_expectation_info
OLDNEW
« no previous file with comments | « media/tools/layout_tests/bug.py ('k') | testing/android/docs/README.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698