blob: 5398df99bdcd2f8f1b0ce6a8866434a73c6d576c [file] [log] [blame]
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;