| Index: content/test/gpu/gpu_tests/gpu_process.py
|
| diff --git a/content/test/gpu/gpu_tests/gpu_process.py b/content/test/gpu/gpu_tests/gpu_process.py
|
| index 5dfabdefa6d204cb1e05363e13cb36c28d60cb89..2b01644c618b179a5cb9648061672d7aaf52b20f 100644
|
| --- a/content/test/gpu/gpu_tests/gpu_process.py
|
| +++ b/content/test/gpu/gpu_tests/gpu_process.py
|
| @@ -16,6 +16,23 @@ test_harness_script = r"""
|
| }
|
|
|
| window.domAutomationController = domAutomationController;
|
| +
|
| + function VerifyDriverBugWorkaroundIsPresent(workaround) {
|
| + var browser_list = document.querySelector('.workarounds-list');
|
| + var gpu_list = chrome.gpuBenchmarking.getGpuDriverBugWorkarounds();
|
| + var found = false;
|
| +
|
| + for (var i=0; i < browser_list.childElementCount; i++) {
|
| + var workaround_str = browser_list.children[i].textContent;
|
| + if (gpu_list.indexOf(workaround_str) < 0)
|
| + return false;
|
| +
|
| + if (!found && workaround_str == workaround)
|
| + found = true;
|
| + }
|
| +
|
| + return found;
|
| + };
|
| """
|
|
|
| class GpuProcessValidator(gpu_test_base.ValidatorBase):
|
|
|