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

Side by Side Diff: content/test/gpu/page_sets/gpu_rasterization_tests.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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # pylint: disable=W0401,W0614 4 # pylint: disable=W0401,W0614
5 from telemetry.page.actions.all_page_actions import * 5 from telemetry.page.actions.all_page_actions import *
6 from telemetry.page import page as page_module 6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module 7 from telemetry.page import page_set as page_set_module
8 8
9 9
10 class GpuRasterizationTestsPage(page_module.Page): 10 class GpuRasterizationTestsPage(page_module.Page):
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 'location': [140, 140]}, 62 'location': [140, 140]},
63 {'comment': 'box-l', 63 {'comment': 'box-l',
64 'color': [0, 0, 255], 64 'color': [0, 0, 255],
65 'tolerance': 0, 65 'tolerance': 0,
66 'location': [70, 140]} 66 'location': [70, 140]}
67 ] 67 ]
68 self.test_rect = [0, 0, 220, 220] 68 self.test_rect = [0, 0, 220, 220]
69 69
70 def RunNavigateSteps(self, action_runner): 70 def RunNavigateSteps(self, action_runner):
71 action_runner.NavigateToPage(self) 71 action_runner.NavigateToPage(self)
72 action_runner.RunAction(WaitAction( 72 action_runner.WaitForJavaScriptCondition(
73 { 73 'domAutomationController._finished', timeout=30)
74 'javascript': 'domAutomationController._finished',
75 'timeout': 30
76 }))
77 74
78 75
79 class GpuRasterizationTestsPageSet(page_set_module.PageSet): 76 class GpuRasterizationTestsPageSet(page_set_module.PageSet):
80 77
81 """ Basic test cases for GPU rasterization. """ 78 """ Basic test cases for GPU rasterization. """
82 79
83 def __init__(self): 80 def __init__(self):
84 super(GpuRasterizationTestsPageSet, self).__init__() 81 super(GpuRasterizationTestsPageSet, self).__init__()
85 82
86 self.AddPage(GpuRasterizationTestsPage(self)) 83 self.AddPage(GpuRasterizationTestsPage(self))
OLDNEW
« no previous file with comments | « content/test/gpu/page_sets/gpu_process_tests.py ('k') | content/test/gpu/page_sets/memory_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698