| 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 | 4 |
| 5 from page_sets import webgl_supported_shared_state | 5 from page_sets import webgl_supported_shared_state |
| 6 from telemetry import page as page_module | 6 from telemetry import page as page_module |
| 7 from telemetry import story | 7 from telemetry import story |
| 8 | 8 |
| 9 STARTUP_SCRIPT = ''' | 9 STARTUP_SCRIPT = ''' |
| 10 window.benchmarkStarted =false; | 10 window.benchmarkStarted =false; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 'vivante', 'vmware'] | 36 'vivante', 'vmware'] |
| 37 | 37 |
| 38 class OortOnlinePageSet(story.StorySet): | 38 class OortOnlinePageSet(story.StorySet): |
| 39 """Oort Online WebGL benchmark. | 39 """Oort Online WebGL benchmark. |
| 40 URL: http://oortonline.gl/#run | 40 URL: http://oortonline.gl/#run |
| 41 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html | 41 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html |
| 42 """ | 42 """ |
| 43 def __init__(self): | 43 def __init__(self): |
| 44 super(OortOnlinePageSet, self).__init__( | 44 super(OortOnlinePageSet, self).__init__( |
| 45 archive_data_file='data/oortonline.json', | 45 archive_data_file='data/oortonline.json', |
| 46 cloud_storage_bucket=story.PARTNER_BUCKET, | 46 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 47 verify_names=True) | |
| 48 self.AddStory(OortOnlinePage(self)) | 47 self.AddStory(OortOnlinePage(self)) |
| 49 | 48 |
| 50 class OortOnlineTBMPage(OortOnlinePage): | 49 class OortOnlineTBMPage(OortOnlinePage): |
| 51 def __init__(self, page_set): | 50 def __init__(self, page_set): |
| 52 super(OortOnlineTBMPage, self).__init__(page_set=page_set) | 51 super(OortOnlineTBMPage, self).__init__(page_set=page_set) |
| 53 | 52 |
| 54 def RunPageInteractions(self, action_runner): | 53 def RunPageInteractions(self, action_runner): |
| 55 WAIT_TIME_IN_SECONDS = 2 | 54 WAIT_TIME_IN_SECONDS = 2 |
| 56 RUN_TIME_IN_SECONDS = 20 | 55 RUN_TIME_IN_SECONDS = 20 |
| 57 action_runner.WaitForJavaScriptCondition('window.benchmarkStarted') | 56 action_runner.WaitForJavaScriptCondition('window.benchmarkStarted') |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 | 70 |
| 72 class OortOnlineTBMPageSet(story.StorySet): | 71 class OortOnlineTBMPageSet(story.StorySet): |
| 73 """Oort Online WebGL benchmark for TBM. | 72 """Oort Online WebGL benchmark for TBM. |
| 74 URL: http://oortonline.gl/#run | 73 URL: http://oortonline.gl/#run |
| 75 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html | 74 Info: http://v8project.blogspot.de/2015/10/jank-busters-part-one.html |
| 76 """ | 75 """ |
| 77 | 76 |
| 78 def __init__(self): | 77 def __init__(self): |
| 79 super(OortOnlineTBMPageSet, self).__init__( | 78 super(OortOnlineTBMPageSet, self).__init__( |
| 80 archive_data_file='data/oortonline.json', | 79 archive_data_file='data/oortonline.json', |
| 81 cloud_storage_bucket=story.PARTNER_BUCKET, | 80 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 82 verify_names=True) | |
| 83 self.AddStory(OortOnlineTBMPage(self)) | 81 self.AddStory(OortOnlineTBMPage(self)) |
| OLD | NEW |