mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
Tests: Add nsurl tests for unnecessary and bad escape values.
This commit is contained in:
parent
8b4df800be
commit
b024c0bcb5
@ -153,6 +153,12 @@ static const struct test_pairs create_tests[] = {
|
|||||||
/* punycode */
|
/* punycode */
|
||||||
{ "http://a.कॉम/a", "http://a.xn--11b4c3d/a" },
|
{ "http://a.कॉम/a", "http://a.xn--11b4c3d/a" },
|
||||||
{ "https://smog.大众汽车/test", "https://smog.xn--3oq18vl8pn36a/test"},
|
{ "https://smog.大众汽车/test", "https://smog.xn--3oq18vl8pn36a/test"},
|
||||||
|
|
||||||
|
/* unnecessary escape */
|
||||||
|
{ "http://%7a%7A/", "http://zz/" },
|
||||||
|
|
||||||
|
/* bad escape */
|
||||||
|
{ "http://%1g%G0/", "http://%1g%g0/" },
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user