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

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

Issue 22909011: Added support for GPU-based expectations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
OLDNEW
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 json 4 import json
5 import os 5 import os
6 import sys 6 import sys
7 7
8 import webgl_conformance_expectations 8 import webgl_conformance_expectations
9 9
10 from telemetry import test as test_module 10 from telemetry import test as test_module
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 def __init__(self): 54 def __init__(self):
55 super(WebglConformanceValidator, self).__init__('ValidatePage') 55 super(WebglConformanceValidator, self).__init__('ValidatePage')
56 56
57 def ValidatePage(self, page, tab, results): 57 def ValidatePage(self, page, tab, results):
58 if not _DidWebGLTestSucceed(tab): 58 if not _DidWebGLTestSucceed(tab):
59 raise page_test.Failure(_WebGLTestMessages(tab)) 59 raise page_test.Failure(_WebGLTestMessages(tab))
60 60
61 def CustomizeBrowserOptions(self, options): 61 def CustomizeBrowserOptions(self, options):
62 options.AppendExtraBrowserArg( 62 options.AppendExtraBrowserArg(
63 '--disable-gesture-requirement-for-media-playback') 63 '--disable-gesture-requirement-for-media-playback')
64 options.AppendExtraBrowserArg('--enable-gpu-benchmarking')
Ken Russell (switch to Gerrit) 2013/08/15 19:25:28 This argument isn't necessary in order to use the
64 65
65 66
66 class WebglConformance(test_module.Test): 67 class WebglConformance(test_module.Test):
67 """Conformance with Khronos WebGL Conformance Tests""" 68 """Conformance with Khronos WebGL Conformance Tests"""
68 enabled = False 69 enabled = False
69 test = WebglConformanceValidator 70 test = WebglConformanceValidator
70 71
71 def CreatePageSet(self, options): 72 def CreatePageSet(self, options):
72 tests = self._ParseTests('00_test_list.txt', '1.0.1') 73 tests = self._ParseTests('00_test_list.txt', '1.0.1')
73 74
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 131
131 if '.txt' in test_name: 132 if '.txt' in test_name:
132 include_path = os.path.join(current_dir, test_name) 133 include_path = os.path.join(current_dir, test_name)
133 test_paths += WebglConformance._ParseTests( 134 test_paths += WebglConformance._ParseTests(
134 include_path, version) 135 include_path, version)
135 else: 136 else:
136 test = os.path.join(current_dir, test_name) 137 test = os.path.join(current_dir, test_name)
137 test_paths.append(test) 138 test_paths.append(test)
138 139
139 return test_paths 140 return test_paths
OLDNEW
« no previous file with comments | « no previous file | tools/telemetry/telemetry/page/page_runner.py » ('j') | tools/telemetry/telemetry/page/page_runner.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698