ozone: evdev: Sync caps lock LED state to evdev
[chromium-blink-merge.git] / tools / perf / page_sets / garbage_collection_cases.py
blob241c3fd06b2039c0364721592b951274c9c57f9e
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.actions.wait import *
6 from telemetry.page import page as page_module
7 from telemetry.page import page_set as page_set_module
10 class SpinningBallsPage(page_module.Page):
12 def __init__(self, page_set):
13 super(SpinningBallsPage, self).__init__(
14 # pylint: disable=C0301
15 url='http://v8.googlecode.com/svn/branches/bleeding_edge/benchmarks/spinning-balls/index.html',
16 page_set=page_set)
18 def RunNavigateSteps(self, action_runner):
19 super(SpinningBallsPage, self).RunNavigateSteps(action_runner)
20 action_runner.WaitForJavaScriptCondition(
21 "document.readyState == 'complete'")
22 action_runner.ClickElement(selector='input[type="submit"]')
23 action_runner.WaitForJavaScriptCondition(
24 "document.readyState == 'complete'")
26 def RunPageInteractions(self, action_runner):
27 interaction = action_runner.BeginInteraction('RunSmoothAllActions')
28 action_runner.Wait(15)
29 interaction.End()
32 class GarbageCollectionCasesPageSet(page_set_module.PageSet):
34 """
35 Description: GC test cases
36 """
38 def __init__(self):
39 super(GarbageCollectionCasesPageSet, self).__init__(
40 archive_data_file='data/garbage_collection_cases.json',
41 bucket=page_set_module.PARTNER_BUCKET)
43 self.AddUserStory(SpinningBallsPage(self))