flaght / google-url

Automatically exported from code.google.com/p/google-url
Other
0 stars 0 forks source link

URLs lacking schema are being transformed into an empty string #29

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The following test doesn't pass because the canonicalization code doesn't add 
anything to the parsing result if it can't parse the schema component.

GURL url("random");
EXPECT_EQ("random", url.possibly_invalid_spec());

I'd expect that GURL doesn't dump strings it can't parse, since otherwise they 
get lost during IPC transmission.

Original issue reported on code.google.com by mnaga...@google.com on 13 Jun 2012 at 2:00