| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 class ToughImageDecodeCasesPage(page_module.Page): | 8 class ToughImageDecodeCasesPage(page_module.Page): |
| 9 | 9 |
| 10 def __init__(self, url, name, page_set): | 10 def __init__(self, url, name, page_set): |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 class ToughImageDecodeCasesPageSet(story.StorySet): | 25 class ToughImageDecodeCasesPageSet(story.StorySet): |
| 26 | 26 |
| 27 """ | 27 """ |
| 28 Description: A collection of difficult image decode tests | 28 Description: A collection of difficult image decode tests |
| 29 """ | 29 """ |
| 30 | 30 |
| 31 def __init__(self): | 31 def __init__(self): |
| 32 super(ToughImageDecodeCasesPageSet, self).__init__( | 32 super(ToughImageDecodeCasesPageSet, self).__init__( |
| 33 archive_data_file='data/tough_image_decode_cases.json', | 33 archive_data_file='data/tough_image_decode_cases.json', |
| 34 cloud_storage_bucket=story.PUBLIC_BUCKET, | 34 cloud_storage_bucket=story.PUBLIC_BUCKET) |
| 35 verify_names=True) | |
| 36 | 35 |
| 37 page_name_list = [ | 36 page_name_list = [ |
| 38 'http://localhost:9000/cats-unscaled.html', | 37 'http://localhost:9000/cats-unscaled.html', |
| 39 'http://localhost:9000/cats-viewport-width.html' | 38 'http://localhost:9000/cats-viewport-width.html' |
| 40 ] | 39 ] |
| 41 | 40 |
| 42 for name in page_name_list: | 41 for name in page_name_list: |
| 43 self.AddStory(ToughImageDecodeCasesPage( | 42 self.AddStory(ToughImageDecodeCasesPage( |
| 44 name, name, self)) | 43 name, name, self)) |
| OLD | NEW |