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

Unified Diff: chrome/test/functional/ispy/client/chrome_utils_unittest.py

Issue 106523003: [I-Spy] Add support for rebaselining expectations from the web UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing dom.py Created 6 years, 12 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/test/functional/ispy/client/chrome_utils.py ('k') | chrome/test/functional/ispy/client/dom.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/functional/ispy/client/chrome_utils_unittest.py
diff --git a/chrome/test/functional/ispy/client/chrome_utils_unittest.py b/chrome/test/functional/ispy/client/chrome_utils_unittest.py
deleted file mode 100755
index 79c369dd68ae1b2078d179bb746fee0c494b86fb..0000000000000000000000000000000000000000
--- a/chrome/test/functional/ispy/client/chrome_utils_unittest.py
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2013 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.
-
-import json
-import unittest
-from PIL import Image
-
-import chrome_utils
-from ..common import mock_cloud_bucket
-
-
-class ChromeUtilsTest(unittest.TestCase):
- """Unittest for ChromeUtils."""
-
- def setUp(self):
- self.cloud_bucket = mock_cloud_bucket.MockCloudBucket()
- self.white_utils = chrome_utils.ChromeUtils(
- self.cloud_bucket, 'versions.json',
- lambda: Image.new('RGBA', (10, 10), (255, 255, 255, 255)))
- self.black_utils = chrome_utils.ChromeUtils(
- self.cloud_bucket, 'versions.json',
- lambda: Image.new('RGBA', (10, 10), (0, 0, 0, 255)))
-
- def testGenerateExpectationsRunComparison(self):
- self.white_utils.GenerateExpectation('device', 'test', '1.1.1.1')
- self.white_utils.UpdateExpectationVersion('1.1.1.1')
- self.white_utils.PerformComparison('test1', 'device', 'test', '1.1.1.1')
- expect_name = self.white_utils._CreateExpectationName(
- 'device', 'test', '1.1.1.1')
- self.assertFalse(self.white_utils._ispy.FailureExists('test1', expect_name))
- self.black_utils.PerformComparison('test2', 'device', 'test', '1.1.1.1')
- self.assertTrue(self.white_utils._ispy.FailureExists('test2', expect_name))
-
- def testUpdateExpectationVersion(self):
- self.white_utils.UpdateExpectationVersion('1.0.0.0')
- self.white_utils.UpdateExpectationVersion('1.0.4.0')
- self.white_utils.UpdateExpectationVersion('2.1.5.0')
- self.white_utils.UpdateExpectationVersion('1.1.5.0')
- self.white_utils.UpdateExpectationVersion('0.0.0.0')
- self.white_utils.UpdateExpectationVersion('1.1.5.0')
- self.white_utils.UpdateExpectationVersion('0.0.0.1')
- versions = json.loads(self.cloud_bucket.DownloadFile('versions.json'))
- self.assertEqual(versions,
- ['2.1.5.0', '1.1.5.0', '1.0.4.0', '1.0.0.0', '0.0.0.1', '0.0.0.0'])
-
-
-if __name__ == '__main__':
- unittest.main()
« no previous file with comments | « chrome/test/functional/ispy/client/chrome_utils.py ('k') | chrome/test/functional/ispy/client/dom.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698