• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1description("Test basic features of URL canonicalization");
2
3cases = [
4  ["http://example.com/", "http://example.com/"],
5  ["/", "http://example.org/"]
6];
7
8var originalBaseURL = canonicalize(".");
9setBaseURL("http://example.org/foo/bar");
10
11for (var i = 0; i < cases.length; ++i) {
12  shouldBe("canonicalize('" + cases[i][0] + "')",
13           "'" + cases[i][1] + "'");
14}
15
16setBaseURL(originalBaseURL);
17
18var successfullyParsed = true;
19