| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
| 5 from telemetry.page import page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
| 6 | 6 |
| 7 | 7 |
| 8 class ToughEnergyCasesPage(page_module.Page): | 8 class ToughEnergyCasesPage(page_module.Page): |
| 9 | 9 |
| 10 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 'window.gmonkey !== undefined &&' | 32 'window.gmonkey !== undefined &&' |
| 33 'document.getElementById("gb") !== null') | 33 'document.getElementById("gb") !== null') |
| 34 | 34 |
| 35 | 35 |
| 36 class ToughEnergyCasesPageSet(page_set_module.PageSet): | 36 class ToughEnergyCasesPageSet(page_set_module.PageSet): |
| 37 """Pages for measuring Chrome power draw.""" | 37 """Pages for measuring Chrome power draw.""" |
| 38 | 38 |
| 39 def __init__(self): | 39 def __init__(self): |
| 40 super(ToughEnergyCasesPageSet, self).__init__( | 40 super(ToughEnergyCasesPageSet, self).__init__( |
| 41 archive_data_file='data/tough_energy_cases.json', | 41 archive_data_file='data/tough_energy_cases.json', |
| 42 bucket=page_set_module.PUBLIC_BUCKET) | 42 bucket=page_set_module.PARTNER_BUCKET) |
| 43 | 43 |
| 44 # Why: productivity, top google properties | 44 # Why: productivity, top google properties |
| 45 self.AddPage(GooglePage('https://mail.google.com/mail/', self)) | 45 self.AddPage(GooglePage('https://mail.google.com/mail/', self)) |
| 46 | 46 |
| 47 # Disabled: pegs CPU too much to get meaningful results. | 47 # Disabled: pegs CPU too much to get meaningful results. |
| 48 # Why: Image constantly changed in the background, above the fold | 48 # Why: Image constantly changed in the background, above the fold |
| 49 # self.AddPage(CodePenPage( | 49 # self.AddPage(CodePenPage( |
| 50 # 'http://codepen.io/testificate364/debug/eIutG', self)) | 50 # 'http://codepen.io/testificate364/debug/eIutG', self)) |
| 51 | 51 |
| 52 # Disabled: pegs CPU too much to get meaningful results. | 52 # Disabled: pegs CPU too much to get meaningful results. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 # self.AddPage(CodePenPage( | 117 # self.AddPage(CodePenPage( |
| 118 # 'http://codepen.io/testificate364/debug/ckItK', self)) | 118 # 'http://codepen.io/testificate364/debug/ckItK', self)) |
| 119 | 119 |
| 120 # Why: flash video | 120 # Why: flash video |
| 121 self.AddPage(CodePenPage( | 121 self.AddPage(CodePenPage( |
| 122 'http://codepen.io/testificate364/debug/slBue', self)) | 122 'http://codepen.io/testificate364/debug/slBue', self)) |
| 123 | 123 |
| 124 # Why: Blank page in the foreground | 124 # Why: Blank page in the foreground |
| 125 self.AddPage(CodePenPage( | 125 self.AddPage(CodePenPage( |
| 126 'http://codepen.io/testificate364/debug/HdIgr', self)) | 126 'http://codepen.io/testificate364/debug/HdIgr', self)) |
| OLD | NEW |