| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 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 gpu_process_expectations as expectations | 4 from gpu_tests import gpu_process_expectations as expectations |
| 5 import gpu_test_base | 5 from gpu_tests import gpu_test_base |
| 6 import page_sets | 6 import page_sets |
| 7 | 7 |
| 8 from telemetry.page import page_test | 8 from telemetry.page import page_test |
| 9 | 9 |
| 10 test_harness_script = r""" | 10 test_harness_script = r""" |
| 11 var domAutomationController = {}; | 11 var domAutomationController = {}; |
| 12 domAutomationController._finished = false; | 12 domAutomationController._finished = false; |
| 13 domAutomationController.setAutomationId = function(id) {} | 13 domAutomationController.setAutomationId = function(id) {} |
| 14 domAutomationController.send = function(msg) { | 14 domAutomationController.send = function(msg) { |
| 15 domAutomationController._finished = true; | 15 domAutomationController._finished = true; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 44 return 'gpu_process' | 44 return 'gpu_process' |
| 45 | 45 |
| 46 def _CreateExpectations(self): | 46 def _CreateExpectations(self): |
| 47 return expectations.GpuProcessExpectations() | 47 return expectations.GpuProcessExpectations() |
| 48 | 48 |
| 49 def CreateStorySet(self, options): | 49 def CreateStorySet(self, options): |
| 50 story_set = page_sets.GpuProcessTestsStorySet(self.GetExpectations()) | 50 story_set = page_sets.GpuProcessTestsStorySet(self.GetExpectations()) |
| 51 for page in story_set: | 51 for page in story_set: |
| 52 page.script_to_evaluate_on_commit = test_harness_script | 52 page.script_to_evaluate_on_commit = test_harness_script |
| 53 return story_set | 53 return story_set |
| OLD | NEW |