Change next_proto member type.
[chromium-blink-merge.git] / tools / perf / page_sets / tough_canvas_cases.py
blobf4be457579647a13d12fc1409e26e7cbe3cbf880
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
8 class ToughCanvasCasesPage(page_module.Page):
10 def __init__(self, url, page_set):
11 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set)
12 self.archive_data_file = 'data/tough_canvas_cases.json'
14 def RunNavigateSteps(self, action_runner):
15 action_runner.NavigateToPage(self)
16 action_runner.WaitForJavaScriptCondition(
17 "document.readyState == 'complete'")
19 def RunSmoothness(self, action_runner):
20 action_runner.Wait(5)
23 class MicrosofFirefliesPage(ToughCanvasCasesPage):
25 def __init__(self, page_set):
26 super(MicrosofFirefliesPage, self).__init__(
27 # pylint: disable=C0301
28 url='http://ie.microsoft.com/testdrive/Performance/Fireflies/Default.html',
29 page_set=page_set)
32 class ToughCanvasCasesPageSet(page_set_module.PageSet):
34 """
35 Description: Self-driven Canvas2D animation examples
36 """
38 def __init__(self):
39 super(ToughCanvasCasesPageSet, self).__init__(
40 archive_data_file='data/tough_canvas_cases.json',
41 bucket=page_set_module.PARTNER_BUCKET)
43 # Crashes on Galaxy Nexus. crbug.com/314131
44 # self.AddPage(MicrosofFirefliesPage(self))
46 # Failing on Nexus 5 (http://crbug.com/364248):
47 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM',
49 urls_list = [
50 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html',
51 'http://runway.countlessprojects.com/prototype/performance_test.html',
52 # pylint: disable=C0301
53 'http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html',
54 'http://ie.microsoft.com/testdrive/Performance/SpeedReading/Default.html',
55 'http://acko.net/dumpx/996b.html',
56 'http://www.kevs3d.co.uk/dev/canvask3d/k3d_test.html',
57 'http://www.megidish.net/awjs/',
58 'http://themaninblue.com/experiment/AnimationBenchmark/canvas/',
59 'http://mix10k.visitmix.com/Entry/Details/169',
60 'http://www.craftymind.com/factory/guimark2/HTML5ChartingTest.html',
61 'http://www.chiptune.com/starfield/starfield.html',
62 'http://jarrodoverson.com/static/demos/particleSystem/',
63 'http://www.effectgames.com/demos/canvascycle/',
64 'http://www.thewildernessdowntown.com/',
65 'http://spielzeugz.de/html5/liquid-particles.html',
66 'http://hakim.se/experiments/html5/magnetic/02/',
67 'http://ie.microsoft.com/testdrive/Performance/LetItSnow/',
68 'http://ie.microsoft.com/testdrive/Graphics/WorkerFountains/Default.html',
69 'http://ie.microsoft.com/testdrive/Graphics/TweetMap/Default.html',
70 'http://ie.microsoft.com/testdrive/Graphics/VideoCity/Default.html',
71 'http://ie.microsoft.com/testdrive/Performance/AsteroidBelt/Default.html',
72 'http://www.smashcat.org/av/canvas_test/',
73 # pylint: disable=C0301
74 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=canvas_sprite&back=canvas',
75 # pylint: disable=C0301
76 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=image_with_shadow&back=image',
77 # pylint: disable=C0301
78 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=filled_path&back=gradient',
79 # pylint: disable=C0301
80 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=text&back=white&ball_count=15',
81 'file://tough_canvas_cases/canvas-animation-no-clear.html',
82 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html',
83 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html'
86 for url in urls_list:
87 self.AddPage(ToughCanvasCasesPage(url, self))