Index: content/renderer/accessibility/renderer_accessibility_browsertest.cc |
diff --git a/content/renderer/accessibility/renderer_accessibility_browsertest.cc b/content/renderer/accessibility/renderer_accessibility_browsertest.cc |
index 1c5c7bdd510ed4ab4181031977bf3da1609c455e..0053bcc281ac9ee9f43843c793490d3d5ed70531 100644 |
--- a/content/renderer/accessibility/renderer_accessibility_browsertest.cc |
+++ b/content/renderer/accessibility/renderer_accessibility_browsertest.cc |
@@ -248,10 +248,10 @@ |
WebAXObject node_c = node_b.childAt(0); |
// Hide node 'B' ('C' stays visible). |
- ExecuteJavaScriptForTests( |
+ ExecuteJavaScript( |
"document.getElementById('B').style.visibility = 'hidden';"); |
// Force layout now. |
- ExecuteJavaScriptForTests("document.getElementById('B').offsetLeft;"); |
+ ExecuteJavaScript("document.getElementById('B').offsetLeft;"); |
// Send a childrenChanged on 'A'. |
sink_->ClearMessages(); |
@@ -294,9 +294,9 @@ |
EXPECT_EQ(3, CountAccessibilityNodesSentToBrowser()); |
// Show node 'B', then send a childrenChanged on 'A'. |
- ExecuteJavaScriptForTests( |
+ ExecuteJavaScript( |
"document.getElementById('B').style.visibility = 'visible';"); |
- ExecuteJavaScriptForTests("document.getElementById('B').offsetLeft;"); |
+ ExecuteJavaScript("document.getElementById('B').offsetLeft;"); |
sink_->ClearMessages(); |
WebDocument document = view()->GetWebView()->mainFrame()->document(); |
@@ -355,10 +355,10 @@ |
// Change the display of the second 'span' back to inline, which causes the |
// anonymous block to be destroyed. |
- ExecuteJavaScriptForTests( |
+ ExecuteJavaScript( |
"document.querySelectorAll('span')[1].style.display = 'inline';"); |
// Force layout now. |
- ExecuteJavaScriptForTests("document.body.offsetLeft;"); |
+ ExecuteJavaScript("document.body.offsetLeft;"); |
// Send a childrenChanged on the body. |
sink_->ClearMessages(); |