| 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 # pylint: disable=W0401,W0614 | 4 # pylint: disable=W0401,W0614 |
| 5 from telemetry.page.actions.all_page_actions import * | 5 from telemetry.page.actions.all_page_actions import * |
| 6 from telemetry.page import page as page_module | 6 from telemetry.page import page as page_module |
| 7 from telemetry.page import page_set as page_set_module | 7 from telemetry.page import page_set as page_set_module |
| 8 | 8 |
| 9 | 9 |
| 10 class ToughCanvasCasesPage(page_module.Page): | 10 class ToughCanvasCasesPage(page_module.Page): |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 | 35 |
| 36 class ToughCanvasCasesPageSet(page_set_module.PageSet): | 36 class ToughCanvasCasesPageSet(page_set_module.PageSet): |
| 37 | 37 |
| 38 """ | 38 """ |
| 39 Description: Self-driven Canvas2D animation examples | 39 Description: Self-driven Canvas2D animation examples |
| 40 """ | 40 """ |
| 41 | 41 |
| 42 def __init__(self): | 42 def __init__(self): |
| 43 super(ToughCanvasCasesPageSet, self).__init__( | 43 super(ToughCanvasCasesPageSet, self).__init__( |
| 44 archive_data_file='data/tough_canvas_cases.json') | 44 archive_data_file='data/tough_canvas_cases.json', |
| 45 bucket=page_set_module.PARTNER_BUCKET) |
| 45 | 46 |
| 46 self.AddPage(MicrosofFirefliesPage(self)) | 47 self.AddPage(MicrosofFirefliesPage(self)) |
| 47 | 48 |
| 48 # Failing on Nexus 5 (http://crbug.com/364248): | 49 # Failing on Nexus 5 (http://crbug.com/364248): |
| 49 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', | 50 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', |
| 50 | 51 |
| 51 urls_list = [ | 52 urls_list = [ |
| 52 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html', | 53 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html', |
| 53 'http://runway.countlessprojects.com/prototype/performance_test.html', | 54 'http://runway.countlessprojects.com/prototype/performance_test.html', |
| 54 # pylint: disable=C0301 | 55 # pylint: disable=C0301 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 80 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
filled_path&back=gradient', | 81 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
filled_path&back=gradient', |
| 81 # pylint: disable=C0301 | 82 # pylint: disable=C0301 |
| 82 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
text&back=white&ball_count=15', | 83 'file://tough_canvas_cases/canvas2d_balls_common/bouncing_balls.html?ball=
text&back=white&ball_count=15', |
| 83 'file://tough_canvas_cases/canvas-animation-no-clear.html', | 84 'file://tough_canvas_cases/canvas-animation-no-clear.html', |
| 84 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html', | 85 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html', |
| 85 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html' | 86 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html' |
| 86 ] | 87 ] |
| 87 | 88 |
| 88 for url in urls_list: | 89 for url in urls_list: |
| 89 self.AddPage(ToughCanvasCasesPage(url, self)) | 90 self.AddPage(ToughCanvasCasesPage(url, self)) |
| OLD | NEW |