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

Unified Diff: content/common/page_state_serialization_unittest.cc

Issue 412303002: Use WebHistoryItem.frameSequenceNumber() to find frames for history navigations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/common/page_state_serialization.cc ('k') | content/renderer/history_entry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/page_state_serialization_unittest.cc
diff --git a/content/common/page_state_serialization_unittest.cc b/content/common/page_state_serialization_unittest.cc
index 39ff3f2c8bfcf2cc2d80f288672d1913093ba70f..800837d96a8726ce4ba0743d3edd2df9d3a1ed0c 100644
--- a/content/common/page_state_serialization_unittest.cc
+++ b/content/common/page_state_serialization_unittest.cc
@@ -105,6 +105,7 @@ class PageStateSerializationTest : public testing::Test {
frame_state->scroll_offset = gfx::Point(0, 100);
frame_state->item_sequence_number = 1;
frame_state->document_sequence_number = 2;
+ frame_state->frame_sequence_number = 3;
frame_state->page_scale_factor = 2.0;
}
@@ -143,6 +144,7 @@ class PageStateSerializationTest : public testing::Test {
frame_state->scroll_offset = gfx::Point(42, -42);
frame_state->item_sequence_number = 123;
frame_state->document_sequence_number = 456;
+ frame_state->frame_sequence_number = 789;
frame_state->page_scale_factor = 2.0f;
frame_state->document_state.push_back(
@@ -424,5 +426,9 @@ TEST_F(PageStateSerializationTest, BackwardsCompat_v18) {
TestBackwardsCompat(18);
}
+TEST_F(PageStateSerializationTest, BackwardsCompat_v20) {
+ TestBackwardsCompat(20);
+}
+
} // namespace
} // namespace content
« no previous file with comments | « content/common/page_state_serialization.cc ('k') | content/renderer/history_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698