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

Unified Diff: trunk/src/tools/telemetry/telemetry/core/bitmap_unittest.py

Issue 280423009: Revert 270250 "[Telemetry] Enable BitmapUnittests now that the b..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/tools/telemetry/telemetry/core/bitmap_unittest.py
===================================================================
--- trunk/src/tools/telemetry/telemetry/core/bitmap_unittest.py (revision 270282)
+++ trunk/src/tools/telemetry/telemetry/core/bitmap_unittest.py (working copy)
@@ -6,6 +6,7 @@
import os
import unittest
+from telemetry import test
from telemetry.core import bitmap
from telemetry.core import util
@@ -96,6 +97,7 @@
new_file = bitmap.Bitmap.FromPngFile(temp_file)
self.assertTrue(orig.IsEqual(new_file))
+ @test.Disabled
def testWriteCroppedBmpToPngFile(self):
pixels = [255,0,0, 255,255,0, 0,0,0,
255,255,0, 0,255,0, 0,0,0]
@@ -141,6 +143,7 @@
diff_bmp.GetPixelColor(2, 1).AssertIsRGB(255, 255, 255)
diff_bmp.GetPixelColor(2, 2).AssertIsRGB(255, 255, 255)
+ @test.Disabled
def testGetBoundingBox(self):
pixels = [0,0,0, 0,0,0, 0,0,0, 0,0,0,
0,0,0, 1,0,0, 1,0,0, 0,0,0,
@@ -154,6 +157,7 @@
self.assertEquals(box, None)
self.assertEquals(count, 0)
+ @test.Disabled
def testCrop(self):
pixels = [0,0,0, 1,0,0, 2,0,0, 3,0,0,
0,1,0, 1,1,0, 2,1,0, 3,1,0,
@@ -167,6 +171,7 @@
bmp.GetPixelColor(1, 0).AssertIsRGB(2, 2, 0)
self.assertEquals(bmp.pixels, bytearray([1,2,0, 2,2,0]))
+ @test.Disabled
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,
@@ -186,6 +191,7 @@
self.assertEquals(histogram.b[3], 0)
self.assertEquals(histogram.b[6], 4)
+ @test.Disabled
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,
@@ -202,6 +208,7 @@
self.assertEquals(histogram.b[3], 0)
self.assertEquals(histogram.b[6], 4)
+ @test.Disabled
def testHistogramIgnoreColorTolerance(self):
pixels = [1,2,3, 4,5,6,
7,8,9, 8,7,6]
@@ -221,6 +228,7 @@
self.assertEquals(histogram.b[6], 2)
self.assertEquals(histogram.b[9], 1)
+ @test.Disabled
def testHistogramDistanceIgnoreColor(self):
pixels = [1,2,3, 1,2,3,
1,2,3, 1,2,3]
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698