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

Unified Diff: content/renderer/browser_plugin/browser_plugin_browsertest.cc

Issue 148153013: Fix mistaken assumptions in tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/browser_plugin/browser_plugin_browsertest.cc
diff --git a/content/renderer/browser_plugin/browser_plugin_browsertest.cc b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
index 36ee92cf0fa960884f921816aac912aba686e43a..0d2ed7387ad6c2c4884db5fbf5f6558ab9ed4b28 100644
--- a/content/renderer/browser_plugin/browser_plugin_browsertest.cc
+++ b/content/renderer/browser_plugin/browser_plugin_browsertest.cc
@@ -319,11 +319,17 @@ TEST_F(BrowserPluginTest, ResizeFlowControl) {
browser_plugin_manager()->sink().ClearMessages();
// Resize the browser plugin three times.
+
ExecuteJavaScript("document.getElementById('browserplugin').width = '641px'");
+ GetMainFrame()->view()->layout();
ProcessPendingMessages();
+
ExecuteJavaScript("document.getElementById('browserplugin').width = '642px'");
+ GetMainFrame()->view()->layout();
ProcessPendingMessages();
+
ExecuteJavaScript("document.getElementById('browserplugin').width = '643px'");
+ GetMainFrame()->view()->layout();
ProcessPendingMessages();
// Expect to see one resize messsage in the sink. BrowserPlugin will not issue
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698