forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Snowflake] Move presubmit checks to check XMLs on multiple directories
Extend presubmit checks for Android XMLs to ui/, content/ and components/. Bug: 775198 Change-Id: I2828d02687364c7aadaecf8f6fdd3745c2932c9e Reviewed-on: https://chromium-review.googlesource.com/c/1364227 Reviewed-by: Dirk Pranke <dpranke@chromium.org> Reviewed-by: Theresa <twellington@chromium.org> Reviewed-by: John Budorick <jbudorick@chromium.org> Commit-Queue: Becky Zhou <huayinz@chromium.org> Cr-Commit-Position: refs/heads/master@{#615203}
- Loading branch information
Becky Zhou
authored and
Commit Bot
committed
Dec 10, 2018
1 parent
01e8130
commit 7c69b50
Showing
6 changed files
with
194 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
chrome/android/java/res_autofill_assistant/values-v17/styles.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- Copyright 2018 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. --> | ||
|
||
<resources> | ||
<!-- TODO(crbuc.com/806868): Use a Chrome approved text appearance and remove this. --> | ||
<style name="TextAppearance.DetailsTitle" parent="BlackCaptionDefault"> | ||
<item name="android:textStyle">bold</item> | ||
</style> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Copyright (c) 2018 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. | ||
|
||
"""Top-level presubmit script for checkxmlstyle. | ||
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts | ||
for more details on the presubmit API built into depot_tools. | ||
""" | ||
|
||
|
||
def CheckChangeOnUpload(input_api, output_api): | ||
return _CommonChecks(input_api, output_api) | ||
|
||
|
||
def CheckChangeOnCommit(input_api, output_api): | ||
return _CommonChecks(input_api, output_api) | ||
|
||
|
||
def _CommonChecks(input_api, output_api): | ||
result = [] | ||
result.extend(input_api.canned_checks.RunUnitTests( | ||
input_api, output_api, ['./checkxmlstyle_test.py'])) | ||
return result |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.