| OLD | NEW |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 | 4 |
| 5 from gpu_tests import gpu_integration_test | 5 from gpu_tests import gpu_integration_test |
| 6 from gpu_tests import webgl_conformance | 6 from gpu_tests import webgl_conformance |
| 7 from gpu_tests import webgl_conformance_expectations | 7 from gpu_tests import webgl_conformance_expectations |
| 8 from gpu_tests import webgl2_conformance_expectations | 8 from gpu_tests import webgl2_conformance_expectations |
| 9 | 9 |
| 10 _GLOBAL_COUNT = 0 |
| 10 | 11 |
| 11 class WebGLConformanceIntegrationTest(gpu_integration_test.GpuIntegrationTest): | 12 class WebGLConformanceIntegrationTest(gpu_integration_test.GpuIntegrationTest): |
| 12 | 13 |
| 13 _webgl_version = None | 14 _webgl_version = None |
| 14 | 15 |
| 16 def setUp(self): |
| 17 super(WebGLConformanceIntegrationTest, self).setUp() |
| 18 global _GLOBAL_COUNT |
| 19 _GLOBAL_COUNT += 1 |
| 20 if _GLOBAL_COUNT == 4: |
| 21 self.tab.Navigate('chrome://crash') |
| 22 |
| 15 @classmethod | 23 @classmethod |
| 16 def Name(cls): | 24 def Name(cls): |
| 17 return 'webgl_conformance' | 25 return 'webgl_conformance' |
| 18 | 26 |
| 19 @classmethod | 27 @classmethod |
| 20 def AddCommandlineArgs(cls, parser): | 28 def AddCommandlineArgs(cls, parser): |
| 21 parser.add_option('--webgl-conformance-version', | 29 parser.add_option('--webgl-conformance-version', |
| 22 help='Version of the WebGL conformance tests to run.', | 30 help='Version of the WebGL conformance tests to run.', |
| 23 default='1.0.4') | 31 default='1.0.4') |
| 24 parser.add_option('--webgl2-only', | 32 parser.add_option('--webgl2-only', |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 return webgl2_conformance_expectations.WebGL2ConformanceExpectations( | 77 return webgl2_conformance_expectations.WebGL2ConformanceExpectations( |
| 70 webgl_conformance.conformance_path) | 78 webgl_conformance.conformance_path) |
| 71 | 79 |
| 72 @classmethod | 80 @classmethod |
| 73 def setUpClass(cls): | 81 def setUpClass(cls): |
| 74 super(cls, WebGLConformanceIntegrationTest).setUpClass() | 82 super(cls, WebGLConformanceIntegrationTest).setUpClass() |
| 75 cls.CustomizeOptions() | 83 cls.CustomizeOptions() |
| 76 cls.SetBrowserOptions(cls._finder_options) | 84 cls.SetBrowserOptions(cls._finder_options) |
| 77 cls.StartBrowser() | 85 cls.StartBrowser() |
| 78 cls.SetStaticServerDir(webgl_conformance.conformance_path) | 86 cls.SetStaticServerDir(webgl_conformance.conformance_path) |
| OLD | NEW |