[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / perf / page_sets / garbage_collection_cases.py
blob7fb8cf19d02995dd49bc1dc965ea51b730b7240e
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
3 # found in the LICENSE file.
4 # pylint: disable=W0401,W0614
5 from telemetry.page import page as page_module
6 from telemetry.page import page_set as page_set_module
9 class SpinningBallsPage(page_module.Page):
11 def __init__(self, page_set):
12 super(SpinningBallsPage, self).__init__(
13 # pylint: disable=C0301
14 url='http://v8.googlecode.com/svn/branches/bleeding_edge/benchmarks/spinning-balls/index.html',
15 page_set=page_set)
17 def RunNavigateSteps(self, action_runner):
18 super(SpinningBallsPage, self).RunNavigateSteps(action_runner)
19 action_runner.WaitForJavaScriptCondition(
20 "document.readyState == 'complete'")
21 action_runner.ClickElement(selector='input[type="submit"]')
22 action_runner.WaitForJavaScriptCondition(
23 "document.readyState == 'complete'")
25 def RunPageInteractions(self, action_runner):
26 interaction = action_runner.BeginInteraction('RunSmoothAllActions')
27 action_runner.Wait(15)
28 interaction.End()
31 class GarbageCollectionCasesPageSet(page_set_module.PageSet):
33 """
34 Description: GC test cases
35 """
37 def __init__(self):
38 super(GarbageCollectionCasesPageSet, self).__init__(
39 archive_data_file='data/garbage_collection_cases.json',
40 bucket=page_set_module.PARTNER_BUCKET)
42 self.AddUserStory(SpinningBallsPage(self))