OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 from telemetry.page import page as page_module | 4 from telemetry.page import page as page_module |
5 from telemetry.page import page_set as page_set_module | 5 from telemetry.page import page_set as page_set_module |
6 | 6 |
7 | 7 |
8 class ToughCanvasCasesPage(page_module.Page): | 8 class ToughCanvasCasesPage(page_module.Page): |
9 | 9 |
10 def __init__(self, url, page_set): | 10 def __init__(self, url, page_set): |
(...skipping 23 matching lines...) Expand all Loading... |
34 """ | 34 """ |
35 Description: Self-driven Canvas2D animation examples | 35 Description: Self-driven Canvas2D animation examples |
36 """ | 36 """ |
37 | 37 |
38 def __init__(self): | 38 def __init__(self): |
39 super(ToughCanvasCasesPageSet, self).__init__( | 39 super(ToughCanvasCasesPageSet, self).__init__( |
40 archive_data_file='data/tough_canvas_cases.json', | 40 archive_data_file='data/tough_canvas_cases.json', |
41 bucket=page_set_module.PARTNER_BUCKET) | 41 bucket=page_set_module.PARTNER_BUCKET) |
42 | 42 |
43 # Crashes on Galaxy Nexus. crbug.com/314131 | 43 # Crashes on Galaxy Nexus. crbug.com/314131 |
44 # self.AddPage(MicrosofFirefliesPage(self)) | 44 # self.AddUserStory(MicrosofFirefliesPage(self)) |
45 | 45 |
46 # Failing on Nexus 5 (http://crbug.com/364248): | 46 # Failing on Nexus 5 (http://crbug.com/364248): |
47 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', | 47 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', |
48 | 48 |
49 urls_list = [ | 49 urls_list = [ |
50 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html', | 50 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html', |
51 'http://runway.countlessprojects.com/prototype/performance_test.html', | 51 'http://runway.countlessprojects.com/prototype/performance_test.html', |
52 # pylint: disable=C0301 | 52 # pylint: disable=C0301 |
53 'http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html', | 53 'http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html', |
54 'http://ie.microsoft.com/testdrive/Performance/SpeedReading/Default.html', | 54 'http://ie.microsoft.com/testdrive/Performance/SpeedReading/Default.html', |
(...skipping 22 matching lines...) Expand all Loading... |
77 # pylint: disable=C0301 | 77 # pylint: disable=C0301 |
78 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
filled_path&back=gradient', | 78 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
filled_path&back=gradient', |
79 # pylint: disable=C0301 | 79 # pylint: disable=C0301 |
80 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
text&back=white&ball_count=15', | 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', | 81 'file://tough_canvas_cases/canvas-animation-no-clear.html', |
82 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html', | 82 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html', |
83 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html' | 83 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html' |
84 ] | 84 ] |
85 | 85 |
86 for url in urls_list: | 86 for url in urls_list: |
87 self.AddPage(ToughCanvasCasesPage(url, self)) | 87 self.AddUserStory(ToughCanvasCasesPage(url, self)) |
OLD | NEW |