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

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

Issue 321563003: Add Wait* API to ActionRunner to wrap over WaitAction. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing to head. Created 6 years, 6 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
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 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 from telemetry import test 4 from telemetry import test
5 from telemetry.page import page 5 from telemetry.page import page
6 from telemetry.page import page_set 6 from telemetry.page import page_set
7 from telemetry.page import page_test 7 from telemetry.page import page_test
8 # pylint: disable=W0401,W0614 8 # pylint: disable=W0401,W0614
9 from telemetry.page.actions.all_page_actions import * 9 from telemetry.page.actions.all_page_actions import *
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 class WebglRobustnessPage(page.Page): 51 class WebglRobustnessPage(page.Page):
52 def __init__(self, page_set, base_dir): 52 def __init__(self, page_set, base_dir):
53 super(WebglRobustnessPage, self).__init__( 53 super(WebglRobustnessPage, self).__init__(
54 url='file://extra/lots-of-polys-example.html', 54 url='file://extra/lots-of-polys-example.html',
55 page_set=page_set, 55 page_set=page_set,
56 base_dir=base_dir) 56 base_dir=base_dir)
57 self.script_to_evaluate_on_commit = robustness_harness_script 57 self.script_to_evaluate_on_commit = robustness_harness_script
58 58
59 def RunNavigateSteps(self, action_runner): 59 def RunNavigateSteps(self, action_runner):
60 action_runner.NavigateToPage(self) 60 action_runner.NavigateToPage(self)
61 action_runner.RunAction( 61 action_runner.WaitForJavaScriptCondition('webglTestHarness._finished')
62 WaitAction({'javascript': 'webglTestHarness._finished'}))
63 62
64 class WebglRobustness(test.Test): 63 class WebglRobustness(test.Test):
65 test = WebglConformanceValidator 64 test = WebglConformanceValidator
66 65
67 def CreatePageSet(self, options): 66 def CreatePageSet(self, options):
68 ps = page_set.PageSet( 67 ps = page_set.PageSet(
69 file_path=conformance_path, 68 file_path=conformance_path,
70 user_agent_type='desktop', 69 user_agent_type='desktop',
71 serving_dirs=['']) 70 serving_dirs=[''])
72 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir)) 71 ps.AddPage(WebglRobustnessPage(ps, ps.base_dir))
73 return ps 72 return ps
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/webgl_conformance.py ('k') | content/test/gpu/page_sets/gpu_process_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698