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

Unified Diff: chrome/browser/web_dev_style/test_util.py

Issue 2890513003: Move chrome/browser/web_dev_style/ to tools/ to use from more places (Closed)
Patch Set: tsergeant@ review Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/web_dev_style/resource_checker_test.py ('k') | tools/web_dev_style/OWNERS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/web_dev_style/test_util.py
diff --git a/chrome/browser/web_dev_style/test_util.py b/chrome/browser/web_dev_style/test_util.py
deleted file mode 100644
index 503db37fe730a536b622373a73ca153873ff178b..0000000000000000000000000000000000000000
--- a/chrome/browser/web_dev_style/test_util.py
+++ /dev/null
@@ -1,15 +0,0 @@
-# Copyright 2015 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.
-
-
-def GetHighlight(line, error):
- """Returns the substring of |line| that is highlighted in |error|."""
- error_lines = error.split('\n')
- # TODO(dschuyler): Splitting the error on \n will prevent index(line)
- # from finding the line. As a workaround, return the whole, unfiltered
- # line.
- if line not in error_lines:
- return line
- highlight = error_lines[error_lines.index(line) + 1]
- return ''.join(ch1 for (ch1, ch2) in zip(line, highlight) if ch2 == '^')
« no previous file with comments | « chrome/browser/web_dev_style/resource_checker_test.py ('k') | tools/web_dev_style/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698