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

Unified Diff: Source/core/html/DOMFormDataTest.cpp

Issue 1308183006: Move FormDataList::deleteEntry() and hasEntry() to DOMFormData. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
Index: Source/core/html/DOMFormDataTest.cpp
diff --git a/Source/core/html/DOMFormDataTest.cpp b/Source/core/html/DOMFormDataTest.cpp
index 524193f1274cffa26a5a61bd303d9396dfb90dc3..7c361aebdccafd8a30e108c2f683b5214aec0751 100644
--- a/Source/core/html/DOMFormDataTest.cpp
+++ b/Source/core/html/DOMFormDataTest.cpp
@@ -63,15 +63,15 @@ TEST(DOMFormDataTest, opacityHas)
fd->append("name1", "value1");
EXPECT_TRUE(fd->has("name1"));
- EXPECT_TRUE(fd->hasEntry("name1"));
+ EXPECT_EQ(1u, fd->size());
fd->makeOpaque();
// Web-exposed interface should be opaque.
EXPECT_FALSE(fd->has("name1"));
- // Internal interface should be uneffected.
- EXPECT_TRUE(fd->hasEntry("name1"));
+ // Internal collection should be uneffected.
+ EXPECT_EQ(1u, fd->size());
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698