| Index: content/test/gpu/gpu_tests/gpu_process_integration_test.py
|
| diff --git a/content/test/gpu/gpu_tests/gpu_process_integration_test.py b/content/test/gpu/gpu_tests/gpu_process_integration_test.py
|
| index 4b8608fd8d2032a05ee9da3c4468376c5ec98b25..48fca6409b9ac957054300f18e16880763053b4a 100644
|
| --- a/content/test/gpu/gpu_tests/gpu_process_integration_test.py
|
| +++ b/content/test/gpu/gpu_tests/gpu_process_integration_test.py
|
| @@ -114,7 +114,8 @@ class GpuProcessIntegrationTest(gpu_integration_test.GpuIntegrationTest):
|
| ('GpuProcess_identify_active_gpu1', 'chrome:gpu'),
|
| ('GpuProcess_identify_active_gpu2', 'chrome:gpu'),
|
| ('GpuProcess_identify_active_gpu3', 'chrome:gpu'),
|
| - ('GpuProcess_identify_active_gpu4', 'chrome:gpu'))
|
| + ('GpuProcess_identify_active_gpu4', 'chrome:gpu'),
|
| + ('GpuProcess_disabling_workarounds_works', 'chrome:gpu'))
|
|
|
| # The earlier has_transparent_visuals_gpu_process and
|
| # no_transparent_visuals_gpu_process tests became no-ops in
|
| @@ -506,6 +507,22 @@ class GpuProcessIntegrationTest(gpu_integration_test.GpuIntegrationTest):
|
| ['VENDOR = 0x10de, DEVICE= 0x0de1 *ACTIVE*'],
|
| [])
|
|
|
| + def _GpuProcess_disabling_workarounds_works(self, test_path):
|
| + # Hit exception from id 215 from kGpuDriverBugListJson.
|
| + self.RestartBrowserIfNecessaryWithArgs([
|
| + '--gpu-testing-vendor-id=0xbad9',
|
| + '--gpu-testing-device-id=0xbad9',
|
| + '--gpu-testing-secondary-vendor-ids=',
|
| + '--gpu-testing-secondary-device-ids=',
|
| + '--gpu-testing-gl-vendor=FakeVendor',
|
| + '--gpu-testing-gl-renderer=FakeRenderer',
|
| + '--use_gpu_driver_workaround_for_testing=0'])
|
| + self._Navigate(test_path)
|
| + workarounds, _ = (
|
| + self._CompareAndCaptureDriverBugWorkarounds())
|
| + if 'use_gpu_driver_workaround_for_testing' in workarounds:
|
| + self.fail('use_gpu_driver_workaround_for_testing erroneously present')
|
| +
|
| def load_tests(loader, tests, pattern):
|
| del loader, tests, pattern # Unused.
|
| return gpu_integration_test.LoadAllTestsInModule(sys.modules[__name__])
|
|
|