1description("Canonicalization of path URLs"); 2 3cases = [ 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]; 9 10for (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 + "'"); 15} 16 17var successfullyParsed = true; 18