| 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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
| 5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
| 6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
| 8 | 8 |
| 9 | 9 |
| 10 class ToughCompositorPage(page_module.Page): | 10 class ToughCompositorPage(page_module.Page): |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 | 44 |
| 45 class ToughCompositorCasesPageSet(page_set_module.PageSet): | 45 class ToughCompositorCasesPageSet(page_set_module.PageSet): |
| 46 | 46 |
| 47 """ Touch compositor sites """ | 47 """ Touch compositor sites """ |
| 48 | 48 |
| 49 def __init__(self): | 49 def __init__(self): |
| 50 super(ToughCompositorCasesPageSet, self).__init__( | 50 super(ToughCompositorCasesPageSet, self).__init__( |
| 51 credentials_path='data/credentials.json', | 51 credentials_path='data/credentials.json', |
| 52 user_agent_type='mobile', | 52 user_agent_type='mobile', |
| 53 archive_data_file='data/tough_compositor_cases.json') | 53 archive_data_file='data/tough_compositor_cases.json', |
| 54 bucket=page_set_module.PUBLIC_BUCKET) |
| 54 | 55 |
| 55 scroll_urls_list = [ | 56 scroll_urls_list = [ |
| 56 # Why: Baseline CC scrolling page. A long page with only text. """ | 57 # Why: Baseline CC scrolling page. A long page with only text. """ |
| 57 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY', | 58 'http://jsbin.com/pixavefe/1/quiet?CC_SCROLL_TEXT_ONLY', |
| 58 # Why: Baseline JS scrolling page. A long page with only text. """ | 59 # Why: Baseline JS scrolling page. A long page with only text. """ |
| 59 'http://jsbin.com/wixadinu/2/quiet?JS_SCROLL_TEXT_ONLY', | 60 'http://jsbin.com/wixadinu/2/quiet?JS_SCROLL_TEXT_ONLY', |
| 60 # Why: Scroll by a large number of CC layers """ | 61 # Why: Scroll by a large number of CC layers """ |
| 61 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID', | 62 'http://jsbin.com/yakagevo/1/quiet?CC_SCROLL_200_LAYER_GRID', |
| 62 # Why: Scroll by a large number of JS layers """ | 63 # Why: Scroll by a large number of JS layers """ |
| 63 'http://jsbin.com/jevibahi/4/quiet?JS_SCROLL_200_LAYER_GRID', | 64 'http://jsbin.com/jevibahi/4/quiet?JS_SCROLL_200_LAYER_GRID', |
| 64 ] | 65 ] |
| 65 | 66 |
| 66 wait_urls_list = [ | 67 wait_urls_list = [ |
| 67 # Why: CC Poster circle animates many layers """ | 68 # Why: CC Poster circle animates many layers """ |
| 68 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE', | 69 'http://jsbin.com/falefice/1/quiet?CC_POSTER_CIRCLE', |
| 69 # Why: JS poster circle animates/commits many layers """ | 70 # Why: JS poster circle animates/commits many layers """ |
| 70 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE', | 71 'http://jsbin.com/giqafofe/1/quiet?JS_POSTER_CIRCLE', |
| 71 # Why: JS invalidation does lots of uploads """ | 72 # Why: JS invalidation does lots of uploads """ |
| 72 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION', | 73 'http://jsbin.com/beqojupo/1/quiet?JS_FULL_SCREEN_INVALIDATION', |
| 73 ] | 74 ] |
| 74 | 75 |
| 75 for url in scroll_urls_list: | 76 for url in scroll_urls_list: |
| 76 self.AddPage(ToughCompositorScrollPage(url, self)) | 77 self.AddPage(ToughCompositorScrollPage(url, self)) |
| 77 | 78 |
| 78 for url in wait_urls_list: | 79 for url in wait_urls_list: |
| 79 self.AddPage(ToughCompositorWaitPage(url, self)) | 80 self.AddPage(ToughCompositorWaitPage(url, self)) |
| OLD | NEW |