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

Unified Diff: tools/perf/measurements/screenshot_unittest.py

Issue 869163003: [Cleanup] Remove Screenshot measurement test from telemetry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « tools/perf/measurements/screenshot.py ('k') | tools/telemetry/telemetry/page/page_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « tools/perf/measurements/screenshot.py ('k') | tools/telemetry/telemetry/page/page_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698