| 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 """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 metrics import power | 10 from metrics import power |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 | 66 |
| 67 # crbug.com/166703: This test frequently times out on Windows. | 67 # crbug.com/166703: This test frequently times out on Windows. |
| 68 @test.Disabled('mac', 'win') | 68 @test.Disabled('mac', 'win') |
| 69 class Spaceport(test.Test): | 69 class Spaceport(test.Test): |
| 70 """spaceport.io's PerfMarks benchmark.""" | 70 """spaceport.io's PerfMarks benchmark.""" |
| 71 test = _SpaceportMeasurement | 71 test = _SpaceportMeasurement |
| 72 | 72 |
| 73 def CreatePageSet(self, options): | 73 def CreatePageSet(self, options): |
| 74 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 74 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
| 75 'data', 'third_party', 'spaceport') | 75 'data', 'third_party', 'spaceport') |
| 76 return page_set.PageSet.FromDict( | 76 ps = page_set.PageSet(file_path=spaceport_dir) |
| 77 {'pages': [{'url': 'file://index.html'}]}, | 77 ps.AddPageWithDefaultRunNavigate('file://index.html') |
| 78 spaceport_dir) | 78 return ps |
| OLD | NEW |