Commit 7eae0b71 authored by sammc's avatar sammc Committed by Commit bot

Remove content/test/test_expectations*.

BUG=542537

Review-Url: https://codereview.chromium.org/2528323002
Cr-Commit-Position: refs/heads/master@{#434750}
parent 12c9d491
......@@ -7,10 +7,6 @@ tommi@chromium.org
# Anyone can add rules to include new test files.
per-file BUILD.gn=*
# Anyone can add suppressions for the layout test files.
per-file test_expectations.txt=*
per-file test_expectations_chrome.txt=*
# Make the mojom security presubmit happy with the following lines, despite also
# allowing wildcard ownership for any test mojom here.
per-file *.mojom=set noparent
......
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""test_expectations.txt presubmit script.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details on the presubmit API built into depot_tools.
"""
import os
import sys
TEST_EXPECTATIONS_FILENAMES = ['test_expectations.txt', 'TestExpectations']
def LintTestFiles(input_api, output_api):
current_dir = str(input_api.PresubmitLocalPath())
tools_dir = os.path.dirname(os.path.abspath(sys.argv[0]))
src_dir = os.path.dirname(tools_dir)
subproc = input_api.subprocess.Popen(
[input_api.python_executable,
input_api.os.path.join(src_dir, 'third_party', 'WebKit', 'Tools',
'Scripts', 'lint-test-expectations')],
stdin=input_api.subprocess.PIPE,
stdout=input_api.subprocess.PIPE,
stderr=input_api.subprocess.STDOUT)
stdout_data = subproc.communicate()[0]
is_error = lambda line: (input_api.re.match('^Line:', line) or
input_api.re.search('ERROR Line:', line))
error = filter(is_error, stdout_data.splitlines())
if error:
return [output_api.PresubmitError('Lint error\n%s' % '\n'.join(error),
long_text=stdout_data)]
return []
def LintTestExpectations(input_api, output_api):
for path in input_api.LocalPaths():
if input_api.os_path.basename(path) in TEST_EXPECTATIONS_FILENAMES:
return LintTestFiles(input_api, output_api)
return []
def CheckChangeOnUpload(input_api, output_api):
return LintTestExpectations(input_api, output_api)
def CheckChangeOnCommit(input_api, output_api):
return LintTestExpectations(input_api, output_api)
# This file should almost always be empty. Normally Chromium test expectations
# are only put here temporarily, and moved to
# src/third_party/WebKit/LayoutTests/TestExpectations where they will remain
# until they are rebaselined.
#
#
# If you are landing a Chromium CL that would break webkit layout tests,
# please follow these steps:
#
# 1. Add expected failures to the bottom of this file, and run your CL through
# various *_layout trybots. Confirm that the trybot results are green (any
# failures are masked by the expectations you added to this file).
#
# 2. BEFORE landing your Chromium CL, land a WebKit CL adding those same
# expected failures to
# src/third_party/WebKit/LayoutTests/TestExpectations . If you are unable to do
# this yourself, please get a WebKit Committer to do it for you, or at least
# coordinate with a current WebKit Gardener to make sure she is aware of the
# pending breakages.
#
# 3. AFTER you have landed the WebKit test_expectations CL, you can land your
# Chromium CL. Be sure to include your expected failures in this file, so
# that other tip-of-tree Chromium developers will not be disturbed by your
# change.
#
#
# Every time Chromium's "WebKit Gardener" rolls the WebKit DEPS within
# Chromium, he will delete ALL expectations within this file. (By then, they
# will be redundant, because you already landed those same expectations in
# src/third_party/WebKit/LayoutTests/TestExpectations . Right?)
#
# EVERYTHING BELOW THIS LINE WILL BE DELETED AT EVERY WEBKIT DEPS ROLL
crbug.com/395882 http/tests/security/xss-DENIED-method-with-iframe-proto.html [ Skip ]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment