| 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 json | 4 import json |
| 5 import optparse | 5 import optparse |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 import webgl_conformance_expectations | 9 import webgl_conformance_expectations |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 action_runner.NavigateToPage(self) | 93 action_runner.NavigateToPage(self) |
| 94 action_runner.WaitForJavaScriptCondition( | 94 action_runner.WaitForJavaScriptCondition( |
| 95 'webglTestHarness._finished', timeout_in_seconds=180) | 95 'webglTestHarness._finished', timeout_in_seconds=180) |
| 96 | 96 |
| 97 | 97 |
| 98 class WebglConformance(benchmark_module.Benchmark): | 98 class WebglConformance(benchmark_module.Benchmark): |
| 99 """Conformance with Khronos WebGL Conformance Tests""" | 99 """Conformance with Khronos WebGL Conformance Tests""" |
| 100 test = WebglConformanceValidator | 100 test = WebglConformanceValidator |
| 101 | 101 |
| 102 @classmethod | 102 @classmethod |
| 103 def AddBenchmarkCommandLineArgs(cls, group): | 103 def AddTestCommandLineArgs(cls, group): |
| 104 group.add_option('--webgl-conformance-version', | 104 group.add_option('--webgl-conformance-version', |
| 105 help='Version of the WebGL conformance tests to run.', | 105 help='Version of the WebGL conformance tests to run.', |
| 106 default='1.0.3') | 106 default='1.0.3') |
| 107 | 107 |
| 108 def CreatePageSet(self, options): | 108 def CreatePageSet(self, options): |
| 109 tests = self._ParseTests('00_test_list.txt', | 109 tests = self._ParseTests('00_test_list.txt', |
| 110 options.webgl_conformance_version) | 110 options.webgl_conformance_version) |
| 111 | 111 |
| 112 ps = page_set.PageSet( | 112 ps = page_set.PageSet( |
| 113 user_agent_type='desktop', | 113 user_agent_type='desktop', |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 | 160 |
| 161 if '.txt' in test_name: | 161 if '.txt' in test_name: |
| 162 include_path = os.path.join(current_dir, test_name) | 162 include_path = os.path.join(current_dir, test_name) |
| 163 test_paths += WebglConformance._ParseTests( | 163 test_paths += WebglConformance._ParseTests( |
| 164 include_path, version) | 164 include_path, version) |
| 165 else: | 165 else: |
| 166 test = os.path.join(current_dir, test_name) | 166 test = os.path.join(current_dir, test_name) |
| 167 test_paths.append(test) | 167 test_paths.append(test) |
| 168 | 168 |
| 169 return test_paths | 169 return test_paths |
| OLD | NEW |