Home | History | Annotate | Download | only in script-tests
      1 description("Canonicalization of path URLs");
      2 
      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 ];
      9 
     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 + "'");
     15 }
     16 
     17 var successfullyParsed = true;
     18