Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2349)

Unified Diff: content/renderer/accessibility/renderer_accessibility_browsertest.cc

Issue 1257603003: Revert of Add ExecuteJavaScriptForTest and make all tests use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/public/test/test_utils.cc ('k') | content/renderer/devtools/v8_sampling_profiler_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « content/public/test/test_utils.cc ('k') | content/renderer/devtools/v8_sampling_profiler_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698