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 |