OLD | NEW |
1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 Chromium's IndexedDB performance test. These test: | 5 """Runs Chromium's IndexedDB performance test. These test: |
6 | 6 |
7 Databases: | 7 Databases: |
8 create/delete | 8 create/delete |
9 Keys: | 9 Keys: |
10 create/delete | 10 create/delete |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 power.PowerMetric.CustomizeBrowserOptions(options) | 82 power.PowerMetric.CustomizeBrowserOptions(options) |
83 v8_object_stats.V8ObjectStatsMetric.CustomizeBrowserOptions(options) | 83 v8_object_stats.V8ObjectStatsMetric.CustomizeBrowserOptions(options) |
84 | 84 |
85 class IndexedDb(test.Test): | 85 class IndexedDb(test.Test): |
86 """Chromium's IndexedDB Performance tests.""" | 86 """Chromium's IndexedDB Performance tests.""" |
87 test = _IndexedDbMeasurement | 87 test = _IndexedDbMeasurement |
88 | 88 |
89 def CreatePageSet(self, options): | 89 def CreatePageSet(self, options): |
90 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 90 indexeddb_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
91 'data', 'indexeddb') | 91 'data', 'indexeddb') |
92 return page_set.PageSet.FromDict({ | 92 ps = page_set.PageSet(file_path=indexeddb_dir) |
93 'pages': [ | 93 ps.AddPageWithDefaultRunNavigate('file://perf_test.html') |
94 { 'url': 'file://perf_test.html' } | 94 return ps |
95 ] | |
96 }, indexeddb_dir) | |
OLD | NEW |