| 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 | 4 |
| 5 from telemetry.page import page as page_module | 5 from telemetry.page import page as page_module |
| 6 from telemetry.page import legacy_page_test | 6 from telemetry.page import legacy_page_test |
| 7 from telemetry import story | 7 from telemetry import story |
| 8 | 8 |
| 9 | 9 |
| 10 NUM_BLOB_MASS_CREATE_READS = 15 | 10 NUM_BLOB_MASS_CREATE_READS = 15 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 errors = action_runner.EvaluateJavaScript('errors') | 67 errors = action_runner.EvaluateJavaScript('errors') |
| 68 if errors: | 68 if errors: |
| 69 raise legacy_page_test.Failure('Errors on page: ' + ', '.join(errors)) | 69 raise legacy_page_test.Failure('Errors on page: ' + ', '.join(errors)) |
| 70 | 70 |
| 71 | 71 |
| 72 class BlobWorkshopPageSet(story.StorySet): | 72 class BlobWorkshopPageSet(story.StorySet): |
| 73 """The BlobWorkshop page set.""" | 73 """The BlobWorkshop page set.""" |
| 74 | 74 |
| 75 def __init__(self): | 75 def __init__(self): |
| 76 super(BlobWorkshopPageSet, self).__init__(verify_names=True) | 76 super(BlobWorkshopPageSet, self).__init__() |
| 77 self.AddStory( | 77 self.AddStory( |
| 78 BlobMassCreate('2Bx200', [2] * 200, self)) | 78 BlobMassCreate('2Bx200', [2] * 200, self)) |
| 79 self.AddStory( | 79 self.AddStory( |
| 80 BlobMassCreate('1KBx200', [1024] * 200, self)) | 80 BlobMassCreate('1KBx200', [1024] * 200, self)) |
| 81 self.AddStory( | 81 self.AddStory( |
| 82 BlobMassCreate('150KBx200', [150 * 1024] * 200, self)) | 82 BlobMassCreate('150KBx200', [150 * 1024] * 200, self)) |
| 83 self.AddStory( | 83 self.AddStory( |
| 84 BlobMassCreate('1MBx200', [1024 * 1024] * 200, self)) | 84 BlobMassCreate('1MBx200', [1024 * 1024] * 200, self)) |
| 85 self.AddStory( | 85 self.AddStory( |
| 86 BlobMassCreate('10MBx30', [10 * 1024 * 1024] * 30, self)) | 86 BlobMassCreate('10MBx30', [10 * 1024 * 1024] * 30, self)) |
| 87 # http://crbug.com/510815 | 87 # http://crbug.com/510815 |
| 88 #self.AddStory( | 88 #self.AddStory( |
| 89 # BlobMassCreate('80MBx5', [80 * 1024 * 1024] * 5, self)) | 89 # BlobMassCreate('80MBx5', [80 * 1024 * 1024] * 5, self)) |
| 90 | 90 |
| 91 self.AddStory(BlobCreateThenRead('2Bx200', [2] * 200, self)) | 91 self.AddStory(BlobCreateThenRead('2Bx200', [2] * 200, self)) |
| 92 self.AddStory(BlobCreateThenRead('1KBx200', [1024] * 200, self)) | 92 self.AddStory(BlobCreateThenRead('1KBx200', [1024] * 200, self)) |
| 93 self.AddStory( | 93 self.AddStory( |
| 94 BlobCreateThenRead('150KBx200', [150 * 1024 - 1] * 200, self)) | 94 BlobCreateThenRead('150KBx200', [150 * 1024 - 1] * 200, self)) |
| 95 self.AddStory(BlobCreateThenRead('1MBx200', [1024 * 1024] * 200, self)) | 95 self.AddStory(BlobCreateThenRead('1MBx200', [1024 * 1024] * 200, self)) |
| 96 self.AddStory( | 96 self.AddStory( |
| 97 BlobCreateThenRead('10MBx30', [10 * 1024 * 1024] * 30, self)) | 97 BlobCreateThenRead('10MBx30', [10 * 1024 * 1024] * 30, self)) |
| 98 self.AddStory( | 98 self.AddStory( |
| 99 BlobCreateThenRead('80MBx5', [80 * 1024 * 1024] * 5, self)) | 99 BlobCreateThenRead('80MBx5', [80 * 1024 * 1024] * 5, self)) |
| OLD | NEW |