| 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 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 | 22 |
| 23 class MicrosofFirefliesPage(ToughCanvasCasesPage): | 23 class MicrosofFirefliesPage(ToughCanvasCasesPage): |
| 24 | 24 |
| 25 def __init__(self, page_set): | 25 def __init__(self, page_set): |
| 26 super(MicrosofFirefliesPage, self).__init__( | 26 super(MicrosofFirefliesPage, self).__init__( |
| 27 # pylint: disable=C0301 | 27 # pylint: disable=C0301 |
| 28 url='http://ie.microsoft.com/testdrive/Performance/Fireflies/Default.html'
, | 28 url='http://ie.microsoft.com/testdrive/Performance/Fireflies/Default.html'
, |
| 29 page_set=page_set) | 29 page_set=page_set) |
| 30 | 30 |
| 31 self.disabled = 'Crashes on Galaxy Nexus. crbug.com/314131' | |
| 32 | |
| 33 | 31 |
| 34 class ToughCanvasCasesPageSet(page_set_module.PageSet): | 32 class ToughCanvasCasesPageSet(page_set_module.PageSet): |
| 35 | 33 |
| 36 """ | 34 """ |
| 37 Description: Self-driven Canvas2D animation examples | 35 Description: Self-driven Canvas2D animation examples |
| 38 """ | 36 """ |
| 39 | 37 |
| 40 def __init__(self): | 38 def __init__(self): |
| 41 super(ToughCanvasCasesPageSet, self).__init__( | 39 super(ToughCanvasCasesPageSet, self).__init__( |
| 42 archive_data_file='data/tough_canvas_cases.json', | 40 archive_data_file='data/tough_canvas_cases.json', |
| 43 bucket=page_set_module.PARTNER_BUCKET) | 41 bucket=page_set_module.PARTNER_BUCKET) |
| 44 | 42 |
| 45 self.AddPage(MicrosofFirefliesPage(self)) | 43 # Crashes on Galaxy Nexus. crbug.com/314131 |
| 44 # self.AddPage(MicrosofFirefliesPage(self)) |
| 46 | 45 |
| 47 # Failing on Nexus 5 (http://crbug.com/364248): | 46 # Failing on Nexus 5 (http://crbug.com/364248): |
| 48 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', | 47 # 'http://geoapis.appspot.com/agdnZW9hcGlzchMLEgtFeGFtcGxlQ29kZRjh1wIM', |
| 49 | 48 |
| 50 urls_list = [ | 49 urls_list = [ |
| 51 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html', | 50 'http://mudcu.be/labs/JS1k/BreathingGalaxies.html', |
| 52 'http://runway.countlessprojects.com/prototype/performance_test.html', | 51 'http://runway.countlessprojects.com/prototype/performance_test.html', |
| 53 # pylint: disable=C0301 | 52 # pylint: disable=C0301 |
| 54 'http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html', | 53 'http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html', |
| 55 'http://ie.microsoft.com/testdrive/Performance/SpeedReading/Default.html', | 54 'http://ie.microsoft.com/testdrive/Performance/SpeedReading/Default.html', |
| (...skipping 23 matching lines...) Expand all Loading... |
| 79 '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', |
| 80 # pylint: disable=C0301 | 79 # pylint: disable=C0301 |
| 81 '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', |
| 82 'file://tough_canvas_cases/canvas-animation-no-clear.html', | 81 'file://tough_canvas_cases/canvas-animation-no-clear.html', |
| 83 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html', | 82 'file://../../../chrome/test/data/perf/canvas_bench/single_image.html', |
| 84 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html' | 83 'file://../../../chrome/test/data/perf/canvas_bench/many_images.html' |
| 85 ] | 84 ] |
| 86 | 85 |
| 87 for url in urls_list: | 86 for url in urls_list: |
| 88 self.AddPage(ToughCanvasCasesPage(url, self)) | 87 self.AddPage(ToughCanvasCasesPage(url, self)) |
| OLD | NEW |