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

Unified Diff: tools/telemetry/telemetry/image_processing/histogram_unittest.py

Issue 1125633002: [Telemetry] Enable import-error, bad-indentation, bad-whitespace lint check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: tools/telemetry/telemetry/image_processing/histogram_unittest.py
diff --git a/tools/telemetry/telemetry/image_processing/histogram_unittest.py b/tools/telemetry/telemetry/image_processing/histogram_unittest.py
index 9e24f13620f99b8ab6067cb3253191240899e11c..94a4d4b82450200680938258a2fcbfecd07c6515 100644
--- a/tools/telemetry/telemetry/image_processing/histogram_unittest.py
+++ b/tools/telemetry/telemetry/image_processing/histogram_unittest.py
@@ -50,9 +50,9 @@ class HistogramDistanceTest(unittest.TestCase):
class HistogramTest(unittest.TestCase):
def testHistogram(self):
- pixels = [1,2,3, 1,2,3, 1,2,3, 1,2,3,
- 1,2,3, 8,7,6, 5,4,6, 1,2,3,
- 1,2,3, 8,7,6, 5,4,6, 1,2,3]
+ pixels = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3,
+ 1, 2, 3, 8, 7, 6, 5, 4, 6, 1, 2, 3,
+ 1, 2, 3, 8, 7, 6, 5, 4, 6, 1, 2, 3]
bmp = image_util.FromRGBPixels(4, 3, pixels)
bmp = image_util.Crop(bmp, 1, 1, 2, 2)
@@ -70,9 +70,9 @@ class HistogramTest(unittest.TestCase):
self.assertEquals(hist.b[6], 4)
def testHistogramIgnoreColor(self):
- pixels = [1,2,3, 1,2,3, 1,2,3, 1,2,3,
- 1,2,3, 8,7,6, 5,4,6, 1,2,3,
- 1,2,3, 8,7,6, 5,4,6, 1,2,3]
+ pixels = [1, 2, 3, 1, 2, 3, 1, 2, 3, 1, 2, 3,
+ 1, 2, 3, 8, 7, 6, 5, 4, 6, 1, 2, 3,
+ 1, 2, 3, 8, 7, 6, 5, 4, 6, 1, 2, 3]
bmp = image_util.FromRGBPixels(4, 3, pixels)
hist = image_util.GetColorHistogram(bmp,
@@ -87,8 +87,8 @@ class HistogramTest(unittest.TestCase):
self.assertEquals(hist.b[6], 4)
def testHistogramIgnoreColorTolerance(self):
- pixels = [1,2,3, 4,5,6,
- 7,8,9, 8,7,6]
+ pixels = [1, 2, 3, 4, 5, 6,
+ 7, 8, 9, 8, 7, 6]
bmp = image_util.FromRGBPixels(2, 2, pixels)
hist = image_util.GetColorHistogram(
@@ -106,8 +106,8 @@ class HistogramTest(unittest.TestCase):
self.assertEquals(hist.b[9], 1)
def testHistogramDistanceIgnoreColor(self):
- pixels = [1,2,3, 1,2,3,
- 1,2,3, 1,2,3]
+ pixels = [1, 2, 3, 1, 2, 3,
+ 1, 2, 3, 1, 2, 3]
bmp = image_util.FromRGBPixels(2, 2, pixels)
hist1 = image_util.GetColorHistogram(bmp, ignore_color=RgbaColor(1, 2, 3))

Powered by Google App Engine
This is Rietveld 408576698