OLD | NEW |
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 Loading... |
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) |
OLD | NEW |