| Index: content/test/gpu/gpu_tests/context_lost.py
|
| diff --git a/content/test/gpu/gpu_tests/context_lost.py b/content/test/gpu/gpu_tests/context_lost.py
|
| index 5a05d83d08fbf89098704b2926bad8e6ba4e693e..ef1e57642fdff400278ddb9b9299edf096c7c05e 100644
|
| --- a/content/test/gpu/gpu_tests/context_lost.py
|
| +++ b/content/test/gpu/gpu_tests/context_lost.py
|
| @@ -138,8 +138,8 @@ class WebGLContextLostFromGPUProcessExitPage(page.Page):
|
|
|
| def RunNavigateSteps(self, action_runner):
|
| action_runner.NavigateToPage(self)
|
| - action_runner.RunAction(WaitAction(
|
| - {'javascript': 'window.domAutomationController._loaded'}))
|
| + action_runner.WaitForJavaScriptCondition(
|
| + 'window.domAutomationController._loaded')
|
|
|
|
|
| class WebGLContextLostFromLoseContextExtensionPage(page.Page):
|
| @@ -155,8 +155,8 @@ class WebGLContextLostFromLoseContextExtensionPage(page.Page):
|
|
|
| def RunNavigateSteps(self, action_runner):
|
| action_runner.NavigateToPage(self)
|
| - action_runner.RunAction(WaitAction(
|
| - {'javascript': 'window.domAutomationController._finished'}))
|
| + action_runner.WaitForJavaScriptCondition(
|
| + 'window.domAutomationController._finished')
|
|
|
| class WebGLContextLostFromQuantityPage(page.Page):
|
| def __init__(self, page_set, base_dir):
|
| @@ -171,8 +171,8 @@ class WebGLContextLostFromQuantityPage(page.Page):
|
|
|
| def RunNavigateSteps(self, action_runner):
|
| action_runner.NavigateToPage(self)
|
| - action_runner.RunAction(WaitAction(
|
| - {'javascript': 'window.domAutomationController._loaded'}))
|
| + action_runner.WaitForJavaScriptCondition(
|
| + 'window.domAutomationController._loaded')
|
|
|
| class ContextLost(test_module.Test):
|
| enabled = True
|
| @@ -190,5 +190,3 @@ class ContextLost(test_module.Test):
|
| ps.AddPage(WebGLContextLostFromLoseContextExtensionPage(ps, ps.base_dir))
|
| ps.AddPage(WebGLContextLostFromQuantityPage(ps, ps.base_dir))
|
| return ps
|
| -
|
| -
|
|
|