Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2017 The Chromium Authors. All rights reserved. | 1 # Copyright 2017 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 import logging | 5 import logging |
| 6 import os | 6 import os |
| 7 import sys | 7 import sys |
| 8 | 8 |
| 9 from gpu_tests import gpu_integration_test | 9 from gpu_tests import gpu_integration_test |
| 10 from gpu_tests import gpu_process_expectations | 10 from gpu_tests import gpu_process_expectations |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 347 result = True | 347 result = True |
| 348 for name, status in feature_status_list.items(): | 348 for name, status in feature_status_list.items(): |
| 349 if name == 'multiple_raster_threads': | 349 if name == 'multiple_raster_threads': |
| 350 result = result and status == 'enabled_on' | 350 result = result and status == 'enabled_on' |
| 351 elif name == 'native_gpu_memory_buffers': | 351 elif name == 'native_gpu_memory_buffers': |
| 352 result = result and status == 'disabled_software' | 352 result = result and status == 'disabled_software' |
| 353 elif name == 'webgl': | 353 elif name == 'webgl': |
| 354 result = result and status == 'enabled_readback' | 354 result = result and status == 'enabled_readback' |
| 355 elif name == 'webgl2': | 355 elif name == 'webgl2': |
| 356 result = result and status == 'unavailable_off' | 356 result = result and status == 'unavailable_off' |
| 357 elif name == 'checker_imaging': | |
|
Khushal
2017/05/25 21:15:44
Had to update this test. I wasn't sure if I should
piman
2017/05/25 23:24:32
I'd just do the python statement 'pass' rather tha
Khushal
2017/05/25 23:36:45
Done. Thanks!
| |
| 358 result = result | |
| 357 else: | 359 else: |
| 358 result = result and status == 'unavailable_software' | 360 result = result and status == 'unavailable_software' |
| 359 if not result: | 361 if not result: |
| 360 self.fail('WebGL readback setup failed: %s' % feature_status_list) | 362 self.fail('WebGL readback setup failed: %s' % feature_status_list) |
| 361 | 363 |
| 362 def _GpuProcess_driver_bug_workarounds_upon_gl_renderer(self, test_path): | 364 def _GpuProcess_driver_bug_workarounds_upon_gl_renderer(self, test_path): |
| 363 is_platform_android = self._RunningOnAndroid() | 365 is_platform_android = self._RunningOnAndroid() |
| 364 if is_platform_android: | 366 if is_platform_android: |
| 365 # Hit id 108 from kGpuDriverBugListEntries. | 367 # Hit id 108 from kGpuDriverBugListEntries. |
| 366 self.RestartBrowserIfNecessaryWithArgs([ | 368 self.RestartBrowserIfNecessaryWithArgs([ |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 568 self.fail("Expected 'SwiftShader' in GPU info GL renderer string") | 570 self.fail("Expected 'SwiftShader' in GPU info GL renderer string") |
| 569 if 'Google' not in gpu.aux_attributes['gl_vendor']: | 571 if 'Google' not in gpu.aux_attributes['gl_vendor']: |
| 570 self.fail("Expected 'Google' in GPU info GL vendor string") | 572 self.fail("Expected 'Google' in GPU info GL vendor string") |
| 571 device = gpu.devices[0] | 573 device = gpu.devices[0] |
| 572 if not device: | 574 if not device: |
| 573 self.fail("System Info doesn't have a device") | 575 self.fail("System Info doesn't have a device") |
| 574 | 576 |
| 575 def load_tests(loader, tests, pattern): | 577 def load_tests(loader, tests, pattern): |
| 576 del loader, tests, pattern # Unused. | 578 del loader, tests, pattern # Unused. |
| 577 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) | 579 return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__]) |
| OLD | NEW |