| OLD | NEW |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 import glob | 4 import glob |
| 5 import json | 5 import json |
| 6 import os | 6 import os |
| 7 import re | 7 import re |
| 8 | 8 |
| 9 from gpu_tests import cloud_storage_test_base | 9 from gpu_tests import cloud_storage_test_base |
| 10 from gpu_tests import pixel_expectations | 10 from gpu_tests import pixel_expectations |
| 11 import page_sets | 11 import page_sets |
| 12 | 12 |
| 13 from catapult_base import cloud_storage | 13 from catapult_base import cloud_storage # pylint: disable=import-error |
| 14 from telemetry.page import page_test | 14 from telemetry.page import page_test |
| 15 from telemetry.util import image_util | 15 from telemetry.util import image_util |
| 16 | 16 |
| 17 | 17 |
| 18 test_data_dir = os.path.abspath(os.path.join( | 18 test_data_dir = os.path.abspath(os.path.join( |
| 19 os.path.dirname(__file__), '..', '..', 'data', 'gpu')) | 19 os.path.dirname(__file__), '..', '..', 'data', 'gpu')) |
| 20 | 20 |
| 21 default_reference_image_dir = os.path.join(test_data_dir, 'gpu_reference') | 21 default_reference_image_dir = os.path.join(test_data_dir, 'gpu_reference') |
| 22 | 22 |
| 23 test_harness_script = r""" | 23 test_harness_script = r""" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 | 182 |
| 183 def CreateStorySet(self, options): | 183 def CreateStorySet(self, options): |
| 184 story_set = page_sets.PixelTestsStorySet(self.GetExpectations(), | 184 story_set = page_sets.PixelTestsStorySet(self.GetExpectations(), |
| 185 try_es3=True) | 185 try_es3=True) |
| 186 for page in story_set: | 186 for page in story_set: |
| 187 page.script_to_evaluate_on_commit = test_harness_script | 187 page.script_to_evaluate_on_commit = test_harness_script |
| 188 return story_set | 188 return story_set |
| 189 | 189 |
| 190 def _CreateExpectations(self): | 190 def _CreateExpectations(self): |
| 191 return pixel_expectations.PixelExpectations() | 191 return pixel_expectations.PixelExpectations() |
| OLD | NEW |