Index: tools/perf/page_sets/tough_canvas_cases.py |
diff --git a/tools/perf/page_sets/tough_canvas_cases.py b/tools/perf/page_sets/tough_canvas_cases.py |
index b70b51eec4eeb23d7f722415024a87d8d52637e4..0df8d498435cf2ba90d05d835fe885b4cf5d77ca 100644 |
--- a/tools/perf/page_sets/tough_canvas_cases.py |
+++ b/tools/perf/page_sets/tough_canvas_cases.py |
@@ -15,16 +15,11 @@ class ToughCanvasCasesPage(page_module.Page): |
def RunNavigateSteps(self, action_runner): |
action_runner.NavigateToPage(self) |
- action_runner.RunAction(WaitAction( |
- { |
- "javascript": "document.readyState == 'complete'" |
- })) |
+ action_runner.WaitForJavaScriptCondition( |
+ "document.readyState == 'complete'") |
def RunSmoothness(self, action_runner): |
- action_runner.RunAction(WaitAction( |
- { |
- "seconds": 5 |
- })) |
+ action_runner.Wait(5) |
class MicrosofFirefliesPage(ToughCanvasCasesPage): |