| OLD | NEW |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 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 StringIO | 4 import StringIO |
| 5 import os | 5 import os |
| 6 import unittest | 6 import unittest |
| 7 | 7 |
| 8 from telemetry.page import block_page_measurement_results | |
| 9 from telemetry.page import page_set | 8 from telemetry.page import page_set |
| 9 from telemetry.results import block_page_measurement_results |
| 10 |
| 10 | 11 |
| 11 BlockPageMeasurementResults = \ | 12 BlockPageMeasurementResults = \ |
| 12 block_page_measurement_results.BlockPageMeasurementResults | 13 block_page_measurement_results.BlockPageMeasurementResults |
| 13 | 14 |
| 14 def _MakePageSet(): | 15 def _MakePageSet(): |
| 15 ps = page_set.PageSet(file_path=os.path.dirname(__file__)) | 16 ps = page_set.PageSet(file_path=os.path.dirname(__file__)) |
| 16 ps.AddPageWithDefaultRunNavigate('http://www.foo.com/') | 17 ps.AddPageWithDefaultRunNavigate('http://www.foo.com/') |
| 17 ps.AddPageWithDefaultRunNavigate('http://www.bar.com/') | 18 ps.AddPageWithDefaultRunNavigate('http://www.bar.com/') |
| 18 return ps | 19 return ps |
| 19 | 20 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 52 |
| 52 expected = [ | 53 expected = [ |
| 53 ['name', 'http://www.foo.com/'], | 54 ['name', 'http://www.foo.com/'], |
| 54 ['foo (seconds)', '3'], | 55 ['foo (seconds)', '3'], |
| 55 [''], | 56 [''], |
| 56 ['name', 'http://www.bar.com/'], | 57 ['name', 'http://www.bar.com/'], |
| 57 ['bar (seconds)', '4'], | 58 ['bar (seconds)', '4'], |
| 58 [''] | 59 [''] |
| 59 ] | 60 ] |
| 60 self.assertEquals(self.data, expected) | 61 self.assertEquals(self.data, expected) |
| OLD | NEW |