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

Side by Side Diff: content/test/gpu/gpu_tests/webgl_robustness.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: Created 5 years, 2 months 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 from telemetry import benchmark 4 from telemetry import benchmark
5 from telemetry.page import page 5 from telemetry.page import page
6 from telemetry.page import page_test
7 from telemetry.story import story_set as story_set_module 6 from telemetry.story import story_set as story_set_module
8 7
9 from webgl_conformance import conformance_harness_script 8 from gpu_tests.webgl_conformance import conformance_harness_script, \
10 from webgl_conformance import conformance_path 9 conformance_path, \
11 from webgl_conformance import WebglConformanceValidator 10 WebglConformanceValidator
12 11
13 12
14 robustness_harness_script = conformance_harness_script + r""" 13 robustness_harness_script = conformance_harness_script + r"""
15 var robustnessTestHarness = {}; 14 var robustnessTestHarness = {};
16 robustnessTestHarness._contextLost = false; 15 robustnessTestHarness._contextLost = false;
17 robustnessTestHarness.initialize = function() { 16 robustnessTestHarness.initialize = function() {
18 var canvas = document.getElementById('example'); 17 var canvas = document.getElementById('example');
19 canvas.addEventListener('webglcontextlost', function() { 18 canvas.addEventListener('webglcontextlost', function() {
20 robustnessTestHarness._contextLost = true; 19 robustnessTestHarness._contextLost = true;
21 }); 20 });
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 @classmethod 63 @classmethod
65 def Name(cls): 64 def Name(cls):
66 return 'webgl_robustness' 65 return 'webgl_robustness'
67 66
68 def CreateStorySet(self, options): 67 def CreateStorySet(self, options):
69 ps = story_set_module.StorySet( 68 ps = story_set_module.StorySet(
70 base_dir=conformance_path, 69 base_dir=conformance_path,
71 serving_dirs=['']) 70 serving_dirs=[''])
72 ps.AddStory(WebglRobustnessPage(ps, ps.base_dir)) 71 ps.AddStory(WebglRobustnessPage(ps, ps.base_dir))
73 return ps 72 return ps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698