Index: third_party/WebKit/Source/platform/network/ParsedContentTypeTest.cpp |
diff --git a/third_party/WebKit/Source/platform/network/ParsedContentTypeTest.cpp b/third_party/WebKit/Source/platform/network/ParsedContentTypeTest.cpp |
index 7a40f21fec02b2ec4ed2a2eb4dae12ac30fa4d5e..8729bbe85e287095b141b1461d3de6df5f1ef71c 100644 |
--- a/third_party/WebKit/Source/platform/network/ParsedContentTypeTest.cpp |
+++ b/third_party/WebKit/Source/platform/network/ParsedContentTypeTest.cpp |
@@ -133,6 +133,13 @@ TEST(ParsedContentTypeTest, RelaxedParameterName) { |
EXPECT_EQ("u", t.parameterValueForName("y")); |
} |
+TEST(ParsedContentTypeTest, StrictParameterName) { |
+ EXPECT_TRUE(isValid("text/plain", Mode::Strict)); |
+ EXPECT_TRUE(isValid("text/plain; p1=a", Mode::Strict)); |
+ EXPECT_FALSE(isValid("text/plain; p1=a; p1=b", Mode::Strict)); |
+ EXPECT_TRUE(isValid("text/plain; p1=a; p2=b", Mode::Strict)); |
+} |
+ |
} // namespace |
} // namespace blink |