| Index: tools/telemetry/telemetry/core/bitmap_unittest.py
|
| diff --git a/tools/telemetry/telemetry/core/bitmap_unittest.py b/tools/telemetry/telemetry/core/bitmap_unittest.py
|
| index b0b01f594b98907e5f03e5037bd6a90521081c5a..095cc9a5a2ea12a360a4d31f7abf99fc5cfc59a8 100644
|
| --- a/tools/telemetry/telemetry/core/bitmap_unittest.py
|
| +++ b/tools/telemetry/telemetry/core/bitmap_unittest.py
|
| @@ -8,7 +8,7 @@ import unittest
|
|
|
| from telemetry.core import bitmap
|
| from telemetry.core import util
|
| -from telemetry.unittest import DisabledTest
|
| +from telemetry.unittest import DisabledTestOnCrOS
|
|
|
| # This is a simple base64 encoded 2x2 PNG which contains, in order, a single
|
| # Red, Yellow, Blue, and Green pixel.
|
| @@ -57,6 +57,7 @@ class BitmapTest(unittest.TestCase):
|
| new_file = bitmap.Bitmap.FromPngFile(temp_file)
|
| self.assertTrue(orig.IsEqual(new_file))
|
|
|
| + @DisabledTestOnCrOS
|
| def testWriteCroppedBmpToPngFile(self):
|
| pixels = [255,0,0, 255,255,0, 0,0,0,
|
| 255,255,0, 0,255,0, 0,0,0]
|
| @@ -102,7 +103,7 @@ class BitmapTest(unittest.TestCase):
|
| diff_bmp.GetPixelColor(2, 1).AssertIsRGB(255, 255, 255)
|
| diff_bmp.GetPixelColor(2, 2).AssertIsRGB(255, 255, 255)
|
|
|
| - @DisabledTest
|
| + @DisabledTestOnCrOS
|
| 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,
|
| @@ -116,6 +117,7 @@ class BitmapTest(unittest.TestCase):
|
| self.assertEquals(box, None)
|
| self.assertEquals(count, 0)
|
|
|
| + @DisabledTestOnCrOS
|
| 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,
|
| @@ -129,7 +131,7 @@ class BitmapTest(unittest.TestCase):
|
| bmp.GetPixelColor(1, 0).AssertIsRGB(2, 2, 0)
|
| self.assertEquals(bmp.pixels, bytearray([1,2,0, 2,2,0]))
|
|
|
| - @DisabledTest
|
| + @DisabledTestOnCrOS
|
| 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,
|
| @@ -148,7 +150,7 @@ class BitmapTest(unittest.TestCase):
|
| self.assertEquals(histogram[3 + 512], 0)
|
| self.assertEquals(histogram[6 + 512], 4)
|
|
|
| - @DisabledTest
|
| + @DisabledTestOnCrOS
|
| 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,
|
| @@ -165,7 +167,7 @@ class BitmapTest(unittest.TestCase):
|
| self.assertEquals(histogram[3 + 512], 0)
|
| self.assertEquals(histogram[6 + 512], 4)
|
|
|
| - @DisabledTest
|
| + @DisabledTestOnCrOS
|
| def testHistogramIgnoreColorTolerance(self):
|
| pixels = [1,2,3, 4,5,6,
|
| 7,8,9, 8,7,6]
|
|
|