| 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 24 matching lines...) Expand all Loading... |
| 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.PARTNER_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.AddUserStory(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.AddUserStory(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. |
| 53 # Why: Image constantly changed in the background, below the fold | 53 # Why: Image constantly changed in the background, below the fold |
| 54 # self.AddPage(CodePenPage( | 54 # self.AddUserStory(CodePenPage( |
| 55 # 'http://codepen.io/testificate364/debug/zcDdv', self)) | 55 # 'http://codepen.io/testificate364/debug/zcDdv', self)) |
| 56 | 56 |
| 57 # Why: CSS Animation, above the fold | 57 # Why: CSS Animation, above the fold |
| 58 self.AddPage(CodePenPage( | 58 self.AddUserStory(CodePenPage( |
| 59 'http://codepen.io/testificate364/debug/nrbDc', self)) | 59 'http://codepen.io/testificate364/debug/nrbDc', self)) |
| 60 | 60 |
| 61 # Why: CSS Animation, below the fold | 61 # Why: CSS Animation, below the fold |
| 62 self.AddPage(CodePenPage( | 62 self.AddUserStory(CodePenPage( |
| 63 'http://codepen.io/testificate364/debug/fhKCg', self)) | 63 'http://codepen.io/testificate364/debug/fhKCg', self)) |
| 64 | 64 |
| 65 # Why: requestAnimationFrame, above the fold | 65 # Why: requestAnimationFrame, above the fold |
| 66 self.AddPage(CodePenPage( | 66 self.AddUserStory(CodePenPage( |
| 67 'http://codepen.io/testificate364/debug/paJhg',self)) | 67 'http://codepen.io/testificate364/debug/paJhg',self)) |
| 68 | 68 |
| 69 # Why: requestAnimationFrame, below the fold | 69 # Why: requestAnimationFrame, below the fold |
| 70 self.AddPage(CodePenPage( | 70 self.AddUserStory(CodePenPage( |
| 71 'http://codepen.io/testificate364/debug/yaosK', self)) | 71 'http://codepen.io/testificate364/debug/yaosK', self)) |
| 72 | 72 |
| 73 # Why: setTimeout animation, above the fold | 73 # Why: setTimeout animation, above the fold |
| 74 self.AddPage(CodePenPage( | 74 self.AddUserStory(CodePenPage( |
| 75 'http://codepen.io/testificate364/debug/DLbxg', self)) | 75 'http://codepen.io/testificate364/debug/DLbxg', self)) |
| 76 | 76 |
| 77 # Why: setTimeout animation, below the fold | 77 # Why: setTimeout animation, below the fold |
| 78 self.AddPage(CodePenPage( | 78 self.AddUserStory(CodePenPage( |
| 79 'http://codepen.io/testificate364/debug/kFvpd', self)) | 79 'http://codepen.io/testificate364/debug/kFvpd', self)) |
| 80 | 80 |
| 81 # Why: setInterval animation, above the fold | 81 # Why: setInterval animation, above the fold |
| 82 self.AddPage(CodePenPage( | 82 self.AddUserStory(CodePenPage( |
| 83 'http://codepen.io/testificate364/debug/lEhyw', self)) | 83 'http://codepen.io/testificate364/debug/lEhyw', self)) |
| 84 | 84 |
| 85 # Why: setInterval animation, below the fold | 85 # Why: setInterval animation, below the fold |
| 86 self.AddPage(CodePenPage( | 86 self.AddUserStory(CodePenPage( |
| 87 'http://codepen.io/testificate364/debug/zhgBD', self)) | 87 'http://codepen.io/testificate364/debug/zhgBD', self)) |
| 88 | 88 |
| 89 # Why: Animated GIF, above the fold | 89 # Why: Animated GIF, above the fold |
| 90 self.AddPage(CodePenPage( | 90 self.AddUserStory(CodePenPage( |
| 91 'http://codepen.io/testificate364/debug/jetyn', self)) | 91 'http://codepen.io/testificate364/debug/jetyn', self)) |
| 92 | 92 |
| 93 # Why: Animated GIF, below the fold | 93 # Why: Animated GIF, below the fold |
| 94 self.AddPage(CodePenPage( | 94 self.AddUserStory(CodePenPage( |
| 95 'http://codepen.io/testificate364/debug/Kvdxs', self)) | 95 'http://codepen.io/testificate364/debug/Kvdxs', self)) |
| 96 | 96 |
| 97 # Why: HTML5 video, above the fold | 97 # Why: HTML5 video, above the fold |
| 98 self.AddPage(CodePenPage( | 98 self.AddUserStory(CodePenPage( |
| 99 'http://codepen.io/testificate364/debug/lJAiH', self)) | 99 'http://codepen.io/testificate364/debug/lJAiH', self)) |
| 100 | 100 |
| 101 # Why: HTML5 video, below the fold | 101 # Why: HTML5 video, below the fold |
| 102 self.AddPage(CodePenPage( | 102 self.AddUserStory(CodePenPage( |
| 103 'http://codepen.io/testificate364/debug/EFceH', self)) | 103 'http://codepen.io/testificate364/debug/EFceH', self)) |
| 104 | 104 |
| 105 # Disabled: pegs CPU too much to get meaningful results. | 105 # Disabled: pegs CPU too much to get meaningful results. |
| 106 # Why: PostMessage between frames, above the fold | 106 # Why: PostMessage between frames, above the fold |
| 107 # self.AddPage(CodePenPage( | 107 # self.AddUserStory(CodePenPage( |
| 108 # 'http://codepen.io/testificate364/debug/pgBHu', self)) | 108 # 'http://codepen.io/testificate364/debug/pgBHu', self)) |
| 109 | 109 |
| 110 # Disabled: pegs CPU too much to get meaningful results. | 110 # Disabled: pegs CPU too much to get meaningful results. |
| 111 # Why: Asynchronous XHR continually running | 111 # Why: Asynchronous XHR continually running |
| 112 # self.AddPage(CodePenPage( | 112 # self.AddUserStory(CodePenPage( |
| 113 # 'http://codepen.io/testificate364/debug/iwAfJ', self)) | 113 # 'http://codepen.io/testificate364/debug/iwAfJ', self)) |
| 114 | 114 |
| 115 # Disabled: pegs CPU too much to get meaningful results. | 115 # Disabled: pegs CPU too much to get meaningful results. |
| 116 # Why: Web Worker continually running | 116 # Why: Web Worker continually running |
| 117 # self.AddPage(CodePenPage( | 117 # self.AddUserStory(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.AddUserStory(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.AddUserStory(CodePenPage( |
| 126 'http://codepen.io/testificate364/debug/HdIgr', self)) | 126 'http://codepen.io/testificate364/debug/HdIgr', self)) |
| OLD | NEW |