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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2317203002: Avoid mutating frame unique name after first real commit. (Closed)
Patch Set: Tweaking the comment describing the format of unique name. Created 4 years, 3 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 | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index ae3e9cf891a4b7e0b65b18344b50d90188858ef4..c034e88a5a595c185c68d5d6fa2f8df8579871c5 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7599,9 +7599,10 @@ TEST_F(WebFrameSwapTest, UniqueNameAfterRemoteToLocalSwap)
EXPECT_EQ(uniqueName.utf8(), WebString(toWebLocalFrameImpl(localFrame)->frame()->loader().currentItem()->target()).utf8());
// Repeat with no name on the frame.
+ // (note that uniqueName is immutable after first real commit).
localFrame->setName("");
WebString uniqueName2 = localFrame->uniqueName();
- EXPECT_EQ("<!--framePath //<!--frame2-->-->", uniqueName2.utf8());
+ EXPECT_EQ("frame1", uniqueName2.utf8());
FrameTestHelpers::TestWebRemoteFrameClient remoteFrameClient2;
WebRemoteFrameImpl* remoteFrame2 = WebRemoteFrameImpl::create(WebTreeScopeType::Document, &remoteFrameClient2);
« no previous file with comments | « third_party/WebKit/Source/core/page/FrameTree.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698