Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / perf / page_sets / tough_filters_cases.py
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 from telemetry.page import page as page_module
5 from telemetry.page import page_set as page_set_module
6
7
8 class ToughFiltersCasesPage(page_module.Page):
9
10   def RunSmoothness(self, action_runner):
11     action_runner.Wait(10)
12
13
14 class PirateMarkPage(page_module.Page):
15
16   def RunSmoothness(self, action_runner):
17     action_runner.EvaluateJavaScript(
18         'document.getElementById("benchmarkButtonText").click()')
19     action_runner.Wait(10)
20
21 class ToughFiltersCasesPageSet(page_set_module.PageSet):
22
23   """
24   Description: Self-driven filters animation examples
25   """
26
27   def __init__(self):
28     super(ToughFiltersCasesPageSet, self).__init__(
29       archive_data_file='data/tough_filters_cases.json',
30       bucket=page_set_module.PARTNER_BUCKET)
31
32     urls_list = [
33       'http://letmespellitoutforyou.com/samples/svg/filter_terrain.svg',
34       'http://static.bobdo.net/Analog_Clock.svg',
35     ]
36
37     for url in urls_list:
38       self.AddPage(ToughFiltersCasesPage(url, self))
39
40     self.AddPage(PirateMarkPage(
41         'http://ie.microsoft.com/testdrive/Performance/Pirates/', self))