Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / url / script-tests / trivial.js
blob67f2b9f1c8fa9503c41a427ce2eab1c12bb6f5e1
1 description("Test basic features of URL canonicalization");
3 cases = [ 
4   ["http://example.com/", "http://example.com/"],
5   ["/", "http://example.org/"]
6 ];
8 var originalBaseURL = canonicalize(".");
9 setBaseURL("http://example.org/foo/bar");
11 for (var i = 0; i < cases.length; ++i) {
12   shouldBe("canonicalize('" + cases[i][0] + "')",
13            "'" + cases[i][1] + "'");
16 setBaseURL(originalBaseURL);