Index: tools/perf/page_sets/mobile_memory.py |
diff --git a/tools/perf/page_sets/mobile_memory.py b/tools/perf/page_sets/mobile_memory.py |
index d04c659ba4f6bc8be538aa2392e7dcf5e2276b41..24bb72496fb5398931784fabbc6f1c66445ac966 100644 |
--- a/tools/perf/page_sets/mobile_memory.py |
+++ b/tools/perf/page_sets/mobile_memory.py |
@@ -31,10 +31,7 @@ class GmailPage(MobileMemoryPage): |
def ReloadAndGc(self, action_runner): |
action_runner.RunAction(ReloadAction()) |
- action_runner.RunAction(WaitAction( |
- { |
- 'seconds': 15 |
- })) |
+ action_runner.Wait(15) |
action_runner.RunAction(JsCollectGarbageAction()) |
def RunStressMemory(self, action_runner): |
@@ -53,26 +50,14 @@ class GoogleSearchPage(MobileMemoryPage): |
def RunStressMemory(self, action_runner): |
action_runner.RunAction(ScrollAction()) |
- action_runner.RunAction(WaitAction( |
- { |
- 'seconds': 3 |
- })) |
+ action_runner.Wait(3) |
action_runner.RunAction(ScrollAction()) |
- action_runner.RunAction(WaitAction( |
- { |
- 'seconds': 3 |
- })) |
+ action_runner.Wait(3) |
action_runner.RunAction(ScrollAction()) |
- action_runner.RunAction(WaitAction( |
- { |
- 'seconds': 3 |
- })) |
+ action_runner.Wait(3) |
action_runner.RunAction(ScrollAction()) |
- action_runner.RunAction(WaitAction( |
- { |
- 'javascript': |
- 'document.getElementById("rg_s").childElementCount > 300' |
- })) |
+ action_runner.WaitForJavaScriptCondition( |
+ 'document.getElementById("rg_s").childElementCount > 300') |
class ScrollPage(MobileMemoryPage): |