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

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

Issue 2091903002: [Presubmit] check for single quotes in html properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: multi-line Created 4 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 side-by-side diff with in-line comments
Download patch
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
index a613d75d8e8e0af57a78334303fc3b33a4b842bf..850abb090dbe951adef0fb96aad217777eee1ee1 100644
--- a/chrome/browser/web_dev_style/test_util.py
+++ b/chrome/browser/web_dev_style/test_util.py
@@ -6,5 +6,8 @@
def GetHighlight(line, error):
"""Returns the substring of |line| that is highlighted in |error|."""
error_lines = error.split('\n')
+ # TODO(dschuyler): delve into multi-line errors further.
Dan Beam 2016/06/25 00:49:03 what's the issue here exactly?
dschuyler 2016/06/28 19:04:18 Changed comment to better explain. Done.
+ 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 == '^')

Powered by Google App Engine
This is Rietveld 408576698