Chromium Code Reviews| 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 KeyMobileSitesPage(page_module.Page): | 8 class KeyMobileSitesPage(page_module.Page): |
| 9 | 9 |
| 10 def __init__(self, url, page_set, name=''): | 10 def __init__(self, url, page_set, name=''): |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 357 | 357 |
| 358 class Page22(KeyMobileSitesPage): | 358 class Page22(KeyMobileSitesPage): |
| 359 | 359 |
| 360 """ Why: crbug.com/172906 """ | 360 """ Why: crbug.com/172906 """ |
| 361 | 361 |
| 362 def __init__(self, page_set): | 362 def __init__(self, page_set): |
| 363 super(Page22, self).__init__( | 363 super(Page22, self).__init__( |
| 364 url='http://groupcloned.com/test/list-images-variable/index.html', | 364 url='http://groupcloned.com/test/list-images-variable/index.html', |
| 365 page_set=page_set) | 365 page_set=page_set) |
| 366 | 366 |
| 367 self.disabled = ('mean_input_event_latency cannot be tracked correctly.' | |
| 368 'crbug.com/409086') | |
|
nednguyen
2014/09/29 22:41:21
I don't like this disabled feature. Can you just c
Yufeng Shen (Slow to review)
2014/09/29 22:46:50
Done.
| |
| 369 | |
| 367 def RunNavigateSteps(self, action_runner): | 370 def RunNavigateSteps(self, action_runner): |
| 368 action_runner.NavigateToPage(self) | 371 action_runner.NavigateToPage(self) |
| 369 action_runner.WaitForJavaScriptCondition( | 372 action_runner.WaitForJavaScriptCondition( |
| 370 'document.getElementById("element-5") !== null') | 373 'document.getElementById("element-5") !== null') |
| 371 | 374 |
| 372 def RunSmoothness(self, action_runner): | 375 def RunSmoothness(self, action_runner): |
| 373 interaction = action_runner.BeginGestureInteraction( | 376 interaction = action_runner.BeginGestureInteraction( |
| 374 'ScrollAction', is_smooth=True) | 377 'ScrollAction', is_smooth=True) |
| 375 action_runner.ScrollPage( | 378 action_runner.ScrollPage( |
| 376 distance_expr=''' | 379 distance_expr=''' |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 538 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' | 541 ('http://www.baidu.com/s?wd=barack+obama&rsv_bp=0&rsv_spt=3&rsv_sug3=9&' |
| 539 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), | 542 'rsv_sug=0&rsv_sug4=3824&rsv_sug1=3&inputT=4920'), |
| 540 # Why: Top search engine | 543 # Why: Top search engine |
| 541 'http://www.bing.com/search?q=sloths', | 544 'http://www.bing.com/search?q=sloths', |
| 542 # Why: Good example of poor initial scrolling | 545 # Why: Good example of poor initial scrolling |
| 543 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' | 546 'http://ftw.usatoday.com/2014/05/spelling-bee-rules-shenanigans' |
| 544 ] | 547 ] |
| 545 | 548 |
| 546 for url in urls_list: | 549 for url in urls_list: |
| 547 self.AddPage(KeyMobileSitesPage(url, self)) | 550 self.AddPage(KeyMobileSitesPage(url, self)) |
| OLD | NEW |