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

Unified Diff: content/renderer/render_view_browsertest.cc

Issue 1449353002: OOPIF: Set timer for per-frame UpdateState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make private Created 5 years, 1 month 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/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_browsertest.cc
diff --git a/content/renderer/render_view_browsertest.cc b/content/renderer/render_view_browsertest.cc
index 724c8e853eeab87ee86275086c6c7fa19b604a59..acf7fa22fa81a75ee5c2d00590b0c5c878b3ee49 100644
--- a/content/renderer/render_view_browsertest.cc
+++ b/content/renderer/render_view_browsertest.cc
@@ -452,7 +452,7 @@ TEST_F(RenderViewImplTest, SaveImageFromDataURL) {
}
// Test that we get form state change notifications when input fields change.
-TEST_F(RenderViewImplTest, DISABLED_OnNavStateChanged) {
Charlie Reis 2015/11/25 20:22:12 I'm thinking I'll re-enable the test first in http
+TEST_F(RenderViewImplTest, OnNavStateChanged) {
// Don't want any delay for form state sync changes. This will still post a
// message so updates will get coalesced, but as soon as we spin the message
// loop, it will generate an update.
@@ -462,6 +462,8 @@ TEST_F(RenderViewImplTest, DISABLED_OnNavStateChanged) {
// We should NOT have gotten a form state change notification yet.
EXPECT_FALSE(render_thread_->sink().GetFirstMessageMatching(
+ FrameHostMsg_UpdateState::ID));
+ EXPECT_FALSE(render_thread_->sink().GetFirstMessageMatching(
ViewHostMsg_UpdateState::ID));
render_thread_->sink().ClearMessages();
@@ -470,8 +472,13 @@ TEST_F(RenderViewImplTest, DISABLED_OnNavStateChanged) {
ExecuteJavaScriptForTests(
"document.getElementById('elt_text').value = 'foo';");
ProcessPendingMessages();
- EXPECT_TRUE(render_thread_->sink().GetUniqueMessageMatching(
- ViewHostMsg_UpdateState::ID));
+ if (SiteIsolationPolicy::UseSubframeNavigationEntries()) {
+ EXPECT_TRUE(render_thread_->sink().GetUniqueMessageMatching(
+ FrameHostMsg_UpdateState::ID));
+ } else {
+ EXPECT_TRUE(render_thread_->sink().GetUniqueMessageMatching(
+ ViewHostMsg_UpdateState::ID));
+ }
}
TEST_F(RenderViewImplTest, OnNavigationHttpPost) {
« no previous file with comments | « content/renderer/render_frame_impl.cc ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698