| <!DOCTYPE html> |
| <html> |
| <head> |
| <script src="../../resources/js-test-pre.js"></script> |
| <script src="resources/utilities.js"></script> |
| </head> |
| <body> |
| <script> |
| description("Canonicalization of path URLs"); |
| |
| cases = [ |
| ["javascript:", "javascript:"], |
| ["JavaScript:Foo", "javascript:Foo"], |
| // Disabled because this gets treated as a relative URL. |
| // [":\":This /is interesting;?#", ":\":This /is interesting;?#"], |
| ]; |
| |
| for (var i = 0; i < cases.length; ++i) { |
| test_vector = cases[i][0]; |
| expected_result = cases[i][1]; |
| shouldBe("canonicalize('" + test_vector + "')", |
| "'" + expected_result + "'"); |
| } |
| </script> |
| <script src="../../resources/js-test-post.js"></script> |
| </body> |
| </html> |