OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 import os | 5 import os |
6 | 6 |
7 from telemetry import test | 7 from telemetry import test |
8 from telemetry.core import util | 8 from telemetry.core import util |
9 from telemetry.page import page_measurement | 9 from telemetry.page import page_measurement |
10 from telemetry.page import page_set | 10 from telemetry.page import page_set |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 class Octane(test.Test): | 45 class Octane(test.Test): |
46 """Google's Octane JavaScript benchmark.""" | 46 """Google's Octane JavaScript benchmark.""" |
47 test = OctaneMeasurement | 47 test = OctaneMeasurement |
48 | 48 |
49 def CreatePageSet(self, options): | 49 def CreatePageSet(self, options): |
50 octane_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 50 octane_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
51 'data', 'perf', 'third_party', 'octane') | 51 'data', 'perf', 'third_party', 'octane') |
52 return page_set.PageSet.FromDict({ | 52 return page_set.PageSet.FromDict({ |
53 'pages': [ | 53 'pages': [ |
54 { 'url': 'file:///index.html?auto=1' } | 54 { 'url': 'file://index.html?auto=1' } |
55 ] | 55 ] |
56 }, octane_dir) | 56 }, octane_dir) |
OLD | NEW |