Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(212)

Side by Side Diff: content/test/gpu/gpu_tests/context_lost.py

Issue 1217813005: [Telemetry] Modify CreatePageSet to CreateStorySet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address Ethan's comments Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/gpu_process.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/gpu_process.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698