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): |
11 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set) | 11 super(ToughCanvasCasesPage, self).__init__(url=url, page_set=page_set) |
12 self.archive_data_file = 'data/tough_canvas_cases.json' | 12 self.archive_data_file = 'data/tough_canvas_cases.json' |
13 | 13 |
14 def RunNavigateSteps(self, action_runner): | 14 def RunNavigateSteps(self, action_runner): |
15 action_runner.NavigateToPage(self) | 15 action_runner.NavigateToPage(self) |
16 action_runner.WaitForJavaScriptCondition( | 16 action_runner.WaitForJavaScriptCondition( |
17 "document.readyState == 'complete'") | 17 "document.readyState == 'complete'") |
18 | 18 |
19 def RunSmoothness(self, action_runner): | 19 def RunPageInteractions(self, action_runner): |
20 action_runner.Wait(5) | 20 action_runner.Wait(5) |
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) |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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.AddUserStory(ToughCanvasCasesPage(url, self)) | 87 self.AddUserStory(ToughCanvasCasesPage(url, self)) |
OLD | NEW |