| 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 shared_page_state | 5 from telemetry.page import shared_page_state |
| 6 from telemetry import story | 6 from telemetry import story |
| 7 | 7 |
| 8 | 8 |
| 9 class ToughSchedulingCasesPage(page_module.Page): | 9 class ToughSchedulingCasesPage(page_module.Page): |
| 10 | 10 |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 action_runner.WaitForJavaScriptCondition('window.__finished') | 390 action_runner.WaitForJavaScriptCondition('window.__finished') |
| 391 | 391 |
| 392 | 392 |
| 393 class ToughSchedulingCasesPageSet(story.StorySet): | 393 class ToughSchedulingCasesPageSet(story.StorySet): |
| 394 | 394 |
| 395 """Tough scheduler latency test cases.""" | 395 """Tough scheduler latency test cases.""" |
| 396 | 396 |
| 397 def __init__(self): | 397 def __init__(self): |
| 398 super(ToughSchedulingCasesPageSet, self).__init__( | 398 super(ToughSchedulingCasesPageSet, self).__init__( |
| 399 archive_data_file='data/tough_scheduling_cases.json', | 399 archive_data_file='data/tough_scheduling_cases.json', |
| 400 cloud_storage_bucket=story.INTERNAL_BUCKET, | 400 cloud_storage_bucket=story.INTERNAL_BUCKET) |
| 401 verify_names=True) | |
| 402 | 401 |
| 403 # Why: Simple scrolling baseline | 402 # Why: Simple scrolling baseline |
| 404 self.AddStory(ToughSchedulingCasesPage( | 403 self.AddStory(ToughSchedulingCasesPage( |
| 405 'file://tough_scheduling_cases/simple_text_page.html', | 404 'file://tough_scheduling_cases/simple_text_page.html', |
| 406 self)) | 405 self)) |
| 407 self.AddStory(Page1(self)) | 406 self.AddStory(Page1(self)) |
| 408 self.AddStory(Page2(self)) | 407 self.AddStory(Page2(self)) |
| 409 self.AddStory(Page3(self)) | 408 self.AddStory(Page3(self)) |
| 410 self.AddStory(Page4(self)) | 409 self.AddStory(Page4(self)) |
| 411 # Disabled until crbug.com/413829 is fixed. | 410 # Disabled until crbug.com/413829 is fixed. |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 desktop=True, | 491 desktop=True, |
| 493 slow_handler=True, | 492 slow_handler=True, |
| 494 bounce=True, | 493 bounce=True, |
| 495 page_set=self)) | 494 page_set=self)) |
| 496 # Why: For measuring the latency of scroll-synchronized effects. | 495 # Why: For measuring the latency of scroll-synchronized effects. |
| 497 self.AddStory(SynchronizedScrollOffsetPage(page_set=self)) | 496 self.AddStory(SynchronizedScrollOffsetPage(page_set=self)) |
| 498 # Why: Test loading a large amount of Javascript. | 497 # Why: Test loading a large amount of Javascript. |
| 499 self.AddStory(SecondBatchJsPage(page_set=self, variant='light')) | 498 self.AddStory(SecondBatchJsPage(page_set=self, variant='light')) |
| 500 self.AddStory(SecondBatchJsPage(page_set=self, variant='medium')) | 499 self.AddStory(SecondBatchJsPage(page_set=self, variant='medium')) |
| 501 self.AddStory(SecondBatchJsPage(page_set=self, variant='heavy')) | 500 self.AddStory(SecondBatchJsPage(page_set=self, variant='heavy')) |
| OLD | NEW |