OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 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 import os | 4 import os |
5 import time | 5 import time |
6 | 6 |
7 import context_lost_expectations | 7 import context_lost_expectations |
8 | 8 |
9 from telemetry import benchmark as benchmark_module | 9 from telemetry import benchmark as benchmark_module |
10 from telemetry.core import exceptions | 10 from telemetry.core import exceptions |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 @classmethod | 325 @classmethod |
326 def Name(cls): | 326 def Name(cls): |
327 return 'context_lost' | 327 return 'context_lost' |
328 | 328 |
329 def CreateExpectations(self): | 329 def CreateExpectations(self): |
330 return context_lost_expectations.ContextLostExpectations() | 330 return context_lost_expectations.ContextLostExpectations() |
331 | 331 |
332 # For the record, this would have been another way to get the pages | 332 # For the record, this would have been another way to get the pages |
333 # to repeat. pageset_repeat would be another option. | 333 # to repeat. pageset_repeat would be another option. |
334 # options = {'page_repeat': 5} | 334 # options = {'page_repeat': 5} |
335 def CreatePageSet(self, options): | 335 def CreateStorySet(self, options): |
336 ps = page_set.PageSet( | 336 ps = page_set.PageSet( |
337 base_dir=data_path, | 337 base_dir=data_path, |
338 serving_dirs=set([''])) | 338 serving_dirs=set([''])) |
339 ps.AddUserStory(GPUProcessCrashesExactlyOnce(ps, ps.base_dir)) | 339 ps.AddUserStory(GPUProcessCrashesExactlyOnce(ps, ps.base_dir)) |
340 ps.AddUserStory(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir)) | 340 ps.AddUserStory(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir)) |
341 ps.AddUserStory( | 341 ps.AddUserStory( |
342 WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir)) | 342 WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir)) |
343 ps.AddUserStory(WebGLContextLostFromQuantityPage(ps, ps.base_dir)) | 343 ps.AddUserStory(WebGLContextLostFromQuantityPage(ps, ps.base_dir)) |
344 ps.AddUserStory(WebGLContextLostFromSelectElementPage(ps, ps.base_dir)) | 344 ps.AddUserStory(WebGLContextLostFromSelectElementPage(ps, ps.base_dir)) |
345 ps.AddUserStory(WebGLContextLostInHiddenTabPage(ps, ps.base_dir)) | 345 ps.AddUserStory(WebGLContextLostInHiddenTabPage(ps, ps.base_dir)) |
346 return ps | 346 return ps |
OLD | NEW |