| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright 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 """Runs spaceport.io's PerfMarks benchmark.""" | 5 """Runs spaceport.io's PerfMarks benchmark.""" |
| 6 | 6 |
| 7 import logging | 7 import logging |
| 8 import os | 8 import os |
| 9 | 9 |
| 10 from telemetry import test | 10 from telemetry import test |
| 11 from telemetry.core import util | 11 from telemetry.core import util |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 class Spaceport(test.Test): | 60 class Spaceport(test.Test): |
| 61 """spaceport.io's PerfMarks benchmark.""" | 61 """spaceport.io's PerfMarks benchmark.""" |
| 62 test = _SpaceportMeasurement | 62 test = _SpaceportMeasurement |
| 63 | 63 |
| 64 def CreatePageSet(self, options): | 64 def CreatePageSet(self, options): |
| 65 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 65 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
| 66 'data', 'third_party', 'spaceport') | 66 'data', 'third_party', 'spaceport') |
| 67 ps = page_set.PageSet(file_path=spaceport_dir) | 67 ps = page_set.PageSet(file_path=spaceport_dir) |
| 68 ps.AddPageWithDefaultRunNavigate('file://index.html') | 68 ps.AddPageWithDefaultRunNavigate('file://index.html') |
| 69 return ps | 69 return ps |
| OLD | NEW |