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

Side by Side Diff: tools/telemetry/telemetry/page_benchmark_results_unittest.py

Issue 12294002: Revert 182991 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 import os 4 import os
5 import unittest 5 import unittest
6 6
7 from telemetry.page_benchmark_results import PageBenchmarkResults 7 from telemetry.page_benchmark_results import PageBenchmarkResults
8 from telemetry.page_set import PageSet 8 from telemetry.page_set import PageSet
9 from telemetry.perf_tests_helper import PrintPerfResult 9 from telemetry.perf_tests_helper import PrintPerfResult
10 10
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 expected = [ 127 expected = [
128 '*HISTOGRAM a_by_url.http___www.foo.com_: ' + 128 '*HISTOGRAM a_by_url.http___www.foo.com_: ' +
129 'a_by_url.http___www.foo.com_= ' + 129 'a_by_url.http___www.foo.com_= ' +
130 '{"buckets": [{"low": 1, "high": 2, "count": 1}]}\n' + 130 '{"buckets": [{"low": 1, "high": 2, "count": 1}]}\n' +
131 'Avg a_by_url.http___www.foo.com_: 1.500000', 131 'Avg a_by_url.http___www.foo.com_: 1.500000',
132 '*HISTOGRAM a_by_url.http___www.bar.com_: ' + 132 '*HISTOGRAM a_by_url.http___www.bar.com_: ' +
133 'a_by_url.http___www.bar.com_= ' + 133 'a_by_url.http___www.bar.com_= ' +
134 '{"buckets": [{"low": 2, "high": 3, "count": 1}]}\n' + 134 '{"buckets": [{"low": 2, "high": 3, "count": 1}]}\n' +
135 'Avg a_by_url.http___www.bar.com_: 2.500000'] 135 'Avg a_by_url.http___www.bar.com_: 2.500000']
136 self.assertEquals(benchmark_results.results, expected) 136 self.assertEquals(benchmark_results.results, expected)
OLDNEW
« no previous file with comments | « tools/telemetry/telemetry/page_benchmark_results.py ('k') | tools/telemetry/telemetry/page_benchmark_value.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698