| OLD | NEW |
| 1 # Copyright 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 benchmark | 10 from telemetry import benchmark |
| 11 from telemetry.core import util |
| 11 from telemetry import page as page_module | 12 from telemetry import page as page_module |
| 12 from telemetry.core import util | |
| 13 from telemetry.page import page_set | 13 from telemetry.page import page_set |
| 14 from telemetry.page import page_test | 14 from telemetry.page import page_test |
| 15 from telemetry.value import list_of_scalar_values | 15 from telemetry.value import list_of_scalar_values |
| 16 from telemetry.value import scalar | 16 from telemetry.value import scalar |
| 17 | 17 |
| 18 DESCRIPTIONS = { | 18 DESCRIPTIONS = { |
| 19 'canvasDrawImageFullClear': | 19 'canvasDrawImageFullClear': |
| 20 'Using a canvas element to render. Bitmaps are blitted to the canvas ' | 20 'Using a canvas element to render. Bitmaps are blitted to the canvas ' |
| 21 'using the "drawImage" function and the canvas is fully cleared at ' | 21 'using the "drawImage" function and the canvas is fully cleared at ' |
| 22 'the beginning of each frame.', | 22 'the beginning of each frame.', |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 @classmethod | 110 @classmethod |
| 111 def Name(cls): | 111 def Name(cls): |
| 112 return 'spaceport' | 112 return 'spaceport' |
| 113 | 113 |
| 114 def CreatePageSet(self, options): | 114 def CreatePageSet(self, options): |
| 115 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', | 115 spaceport_dir = os.path.join(util.GetChromiumSrcDir(), 'chrome', 'test', |
| 116 'data', 'third_party', 'spaceport') | 116 'data', 'third_party', 'spaceport') |
| 117 ps = page_set.PageSet(file_path=spaceport_dir) | 117 ps = page_set.PageSet(file_path=spaceport_dir) |
| 118 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir)) | 118 ps.AddUserStory(page_module.Page('file://index.html', ps, ps.base_dir)) |
| 119 return ps | 119 return ps |
| OLD | NEW |