| 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 import story | 6 from telemetry import story |
| 7 | 7 |
| 8 class IndexedDBEndurePage(page_module.Page): | 8 class IndexedDBEndurePage(page_module.Page): |
| 9 | 9 |
| 10 def __init__(self, subtest, page_set): | 10 def __init__(self, subtest, page_set): |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 action_runner.WaitForJavaScriptCondition( | 22 action_runner.WaitForJavaScriptCondition( |
| 23 'window.done', timeout=600) | 23 'window.done', timeout=600) |
| 24 | 24 |
| 25 class IndexedDBEndurePageSet(story.StorySet): | 25 class IndexedDBEndurePageSet(story.StorySet): |
| 26 """The IndexedDB Endurance page set. | 26 """The IndexedDB Endurance page set. |
| 27 | 27 |
| 28 This page set exercises various common operations in IndexedDB. | 28 This page set exercises various common operations in IndexedDB. |
| 29 """ | 29 """ |
| 30 | 30 |
| 31 def __init__(self): | 31 def __init__(self): |
| 32 super(IndexedDBEndurePageSet, self).__init__(verify_names=True) | 32 super(IndexedDBEndurePageSet, self).__init__() |
| 33 tests = [ | 33 tests = [ |
| 34 'testCreateAndDeleteDatabases', | 34 'testCreateAndDeleteDatabases', |
| 35 'testCreateAndDeleteDatabase', | 35 'testCreateAndDeleteDatabase', |
| 36 'testCreateKeysInStores', | 36 'testCreateKeysInStores', |
| 37 'testRandomReadsAndWritesWithoutIndex', | 37 'testRandomReadsAndWritesWithoutIndex', |
| 38 'testRandomReadsAndWritesWithIndex', | 38 'testRandomReadsAndWritesWithIndex', |
| 39 'testReadCacheWithoutIndex', | 39 'testReadCacheWithoutIndex', |
| 40 'testReadCacheWithIndex', | 40 'testReadCacheWithIndex', |
| 41 'testCreateAndDeleteIndex', | 41 'testCreateAndDeleteIndex', |
| 42 'testWalkingMultipleCursors', | 42 'testWalkingMultipleCursors', |
| 43 'testCursorSeeksWithoutIndex', | 43 'testCursorSeeksWithoutIndex', |
| 44 'testCursorSeeksWithIndex' | 44 'testCursorSeeksWithIndex' |
| 45 ] | 45 ] |
| 46 for test in tests: | 46 for test in tests: |
| 47 self.AddStory(IndexedDBEndurePage(test, self)) | 47 self.AddStory(IndexedDBEndurePage(test, self)) |
| OLD | NEW |