| OLD | NEW |
| 1 # Copyright 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 2012 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 """Runs Mozilla's Kraken JavaScript benchmark.""" | 5 """Runs Mozilla's Kraken JavaScript benchmark.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 | 8 |
| 9 from core import perf_benchmark | 9 from core import perf_benchmark |
| 10 | 10 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 def CreateStorySet(self, options): | 129 def CreateStorySet(self, options): |
| 130 ps = story.StorySet( | 130 ps = story.StorySet( |
| 131 archive_data_file='../page_sets/data/kraken.json', | 131 archive_data_file='../page_sets/data/kraken.json', |
| 132 base_dir=os.path.dirname(os.path.abspath(__file__)), | 132 base_dir=os.path.dirname(os.path.abspath(__file__)), |
| 133 cloud_storage_bucket=story.PARTNER_BUCKET) | 133 cloud_storage_bucket=story.PARTNER_BUCKET) |
| 134 ps.AddStory(page_module.Page( | 134 ps.AddStory(page_module.Page( |
| 135 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', | 135 'http://krakenbenchmark.mozilla.org/kraken-1.1/driver.html', |
| 136 ps, ps.base_dir)) | 136 ps, ps.base_dir)) |
| 137 return ps | 137 return ps |
| 138 |
| 139 @classmethod |
| 140 def ShouldDisable(cls, possible_browser): |
| 141 return cls.IsSvelte(possible_browser) # http://crbug.com/624411 |
| OLD | NEW |