Index: tools/perf/measurements/screenshot_unittest.py |
diff --git a/tools/perf/measurements/screenshot_unittest.py b/tools/perf/measurements/screenshot_unittest.py |
deleted file mode 100644 |
index ac6e9be396800af39ee55ce056cb8d81c84e2351..0000000000000000000000000000000000000000 |
--- a/tools/perf/measurements/screenshot_unittest.py |
+++ /dev/null |
@@ -1,37 +0,0 @@ |
-# Copyright 2014 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 logging |
-import shutil |
-import tempfile |
- |
-from measurements import screenshot |
-from telemetry import benchmark |
-from telemetry.page import page_test |
-from telemetry.unittest_util import options_for_unittests |
-from telemetry.unittest_util import page_test_test_case |
- |
- |
-class ScreenshotUnitTest(page_test_test_case.PageTestTestCase): |
- def setUp(self): |
- self._options = options_for_unittests.GetCopy() |
- self._png_outdir = tempfile.mkdtemp('_png_test') |
- |
- def tearDown(self): |
- shutil.rmtree(self._png_outdir) |
- |
- @benchmark.Disabled('win') # http://crbug.com/386572 |
- def testScreenshot(self): |
- ps = self.CreatePageSetFromFileInUnittestDataDir('blank.html') |
- measurement = screenshot.Screenshot(self._png_outdir) |
- try: |
- results = self.RunMeasurement(measurement, ps, options=self._options) |
- except page_test.TestNotSupportedOnPlatformError as e: |
- logging.warning(e) |
- return |
- |
- saved_picture_count = results.FindAllPageSpecificValuesNamed( |
- 'saved_picture_count') |
- self.assertEquals(len(saved_picture_count), 1) |
- self.assertGreater(saved_picture_count[0].GetRepresentativeNumber(), 0) |