Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(197)

Side by Side Diff: content/test/gpu/gpu_tests/gpu_process.py

Issue 1413883003: Add a presubmit script and pylintrc for content/test/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address kbr's comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/exception_formatter.py ('k') | content/test/gpu/gpu_tests/gpu_process_expectations.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698