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

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

Issue 450493002: Added test expectations for context_lost and suppressed flaky failure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/context_lost_expectations.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
8
7 from telemetry import benchmark as benchmark_module 9 from telemetry import benchmark as benchmark_module
8 from telemetry.core import exceptions 10 from telemetry.core import exceptions
9 from telemetry.core import util 11 from telemetry.core import util
10 from telemetry.page import page 12 from telemetry.page import page
11 from telemetry.page import page_set 13 from telemetry.page import page_set
12 from telemetry.page import page_test 14 from telemetry.page import page_test
13 15
14 data_path = os.path.join( 16 data_path = os.path.join(
15 util.GetChromiumSrcDir(), 'content', 'test', 'data', 'gpu') 17 util.GetChromiumSrcDir(), 'content', 'test', 'data', 'gpu')
16 18
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 self.force_garbage_collection = False 278 self.force_garbage_collection = False
277 279
278 def RunNavigateSteps(self, action_runner): 280 def RunNavigateSteps(self, action_runner):
279 action_runner.NavigateToPage(self) 281 action_runner.NavigateToPage(self)
280 action_runner.WaitForJavaScriptCondition( 282 action_runner.WaitForJavaScriptCondition(
281 'window.domAutomationController._loaded') 283 'window.domAutomationController._loaded')
282 284
283 class ContextLost(benchmark_module.Benchmark): 285 class ContextLost(benchmark_module.Benchmark):
284 enabled = True 286 enabled = True
285 test = _ContextLostValidator 287 test = _ContextLostValidator
288
289 def CreateExpectations(self, page_set):
290 return context_lost_expectations.ContextLostExpectations()
291
286 # For the record, this would have been another way to get the pages 292 # For the record, this would have been another way to get the pages
287 # to repeat. pageset_repeat would be another option. 293 # to repeat. pageset_repeat would be another option.
288 # options = {'page_repeat': 5} 294 # options = {'page_repeat': 5}
289 def CreatePageSet(self, options): 295 def CreatePageSet(self, options):
290 ps = page_set.PageSet( 296 ps = page_set.PageSet(
291 file_path=data_path, 297 file_path=data_path,
292 user_agent_type='desktop', 298 user_agent_type='desktop',
293 serving_dirs=set([''])) 299 serving_dirs=set(['']))
294 ps.AddPage(GPUProcessCrashesExactlyOnce(ps, ps.base_dir)) 300 ps.AddPage(GPUProcessCrashesExactlyOnce(ps, ps.base_dir))
295 ps.AddPage(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir)) 301 ps.AddPage(WebGLContextLostFromGPUProcessExitPage(ps, ps.base_dir))
296 ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir)) 302 ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir))
297 ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir)) 303 ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir))
298 ps.AddPage(WebGLContextLostFromSelectElementPage(ps, ps.base_dir)) 304 ps.AddPage(WebGLContextLostFromSelectElementPage(ps, ps.base_dir))
299 return ps 305 return ps
OLDNEW
« no previous file with comments | « no previous file | content/test/gpu/gpu_tests/context_lost_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698