Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / url / script-tests / path-url.js
blobb53eff7725c1b5181db5f8cc2fe43e9e369d5559
1 description("Canonicalization of path URLs");
3 cases = [
4 ["javascript:", "javascript:"],
5 ["JavaScript:Foo", "javascript:Foo"],
6 // Disabled because this gets treated as a relative URL.
7 // [":\":This /is interesting;?#", ":\":This /is interesting;?#"],
8 ];
10 for (var i = 0; i < cases.length; ++i) {
11 test_vector = cases[i][0];
12 expected_result = cases[i][1];
13 shouldBe("canonicalize('" + test_vector + "')",
14 "'" + expected_result + "'");