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

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

Issue 2885563002: Remove blink_style benchmarks (Closed)
Patch Set: Created 3 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 | « tools/perf/measurements/blink_style.py ('k') | tools/perf/unowned_benchmarks.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/measurements/blink_style_unittest.py
diff --git a/tools/perf/measurements/blink_style_unittest.py b/tools/perf/measurements/blink_style_unittest.py
deleted file mode 100644
index b9c246a2840a2356bfc13366763ccdf49ee62a2c..0000000000000000000000000000000000000000
--- a/tools/perf/measurements/blink_style_unittest.py
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 2015 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.
-
-from measurements import blink_style
-
-from telemetry import decorators
-from telemetry.testing import options_for_unittests
-from telemetry.testing import page_test_test_case
-
-
-class BlinkStyleTest(page_test_test_case.PageTestTestCase):
- """Smoke test for Bink Style measurements.
-
- Runs BlinkStyle measurement on some simple pages and verifies
- that expected metrics were added to the results. The test is purely
- functional, i.e. it only checks if the metrics are present and non-zero.
- """
-
- def setUp(self):
- self._options = options_for_unittests.GetCopy()
-
- @decorators.Disabled('chromeos') # crbug.com/483212
- def testForParsing(self):
- ps = self.CreateStorySetFromFileInUnittestDataDir('blink_style.html')
- measurement = blink_style.BlinkStyle()
- results = self.RunMeasurement(measurement, ps, options=self._options)
- self.assertEquals(0, len(results.failures))
-
- def getMetric(results, name, count=1):
- metrics = results.FindAllPageSpecificValuesNamed(name)
- self.assertEquals(count, len(metrics))
- return metrics[0].value
-
- self.assertGreater(getMetric(results, 'parse_css_regular'), 0)
- self.assertGreater(getMetric(results, 'tokenize_css_regular'), 0)
- self.assertGreater(getMetric(results, 'update_style', 5), 0)
- self.assertGreater(getMetric(results, 'update_style_cold', 5), 0)
« no previous file with comments | « tools/perf/measurements/blink_style.py ('k') | tools/perf/unowned_benchmarks.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698