blob: 5398df99bdcd2f8f1b0ce6a8866434a73c6d576c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
description("Canonicalization of path URLs");
cases = [
["javascript:", "javascript:"],
["JavaScript:Foo", "javascript:Foo"],
// Disabled because this gets treated as a relative URL.
// [":\":This /is interesting;?#", ":\":This /is interesting;?#"],
];
for (var i = 0; i < cases.length; ++i) {
test_vector = cases[i][0];
expected_result = cases[i][1];
shouldBe("canonicalize('" + test_vector + "')",
"'" + expected_result + "'");
}
var successfullyParsed = true;
|