| Index: net/base/data_url_unittest.cc
|
| diff --git a/net/base/data_url_unittest.cc b/net/base/data_url_unittest.cc
|
| index 5a5dbe8f008d98c460a48e7f504ffbaebac3c630..b91377d83a9309a924d4bf4a7fd1062b0e212363 100644
|
| --- a/net/base/data_url_unittest.cc
|
| +++ b/net/base/data_url_unittest.cc
|
| @@ -63,6 +63,14 @@ TEST(DataURLTest, Parse) {
|
| "US-ASCII",
|
| "hello world" },
|
|
|
| + // Allow invalid mediatype for backward compatibility but set mime_type to
|
| + // "text/plain" instead of the invalid mediatype.
|
| + { "data:foo,boo",
|
| + true,
|
| + "text/plain",
|
| + "US-ASCII",
|
| + "boo" },
|
| +
|
| { "data:foo/bar;baz=1;charset=kk,boo",
|
| true,
|
| "foo/bar",
|
| @@ -90,10 +98,10 @@ TEST(DataURLTest, Parse) {
|
|
|
| // Bad mime type
|
| { "data:f(oo/bar;baz=1;charset=kk,boo",
|
| - false,
|
| - "",
|
| - "",
|
| - "" },
|
| + true,
|
| + "text/plain",
|
| + "kk",
|
| + "boo" },
|
|
|
| // the comma cannot be url-escaped!
|
| { "data:%2Cblah",
|
|
|