michael@0:
michael@0:
michael@0:
michael@0: URL manipulation
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0: testing of URL manipulation:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
michael@0:
notes for testing
michael@0: different types of uris:
michael@0:
michael@0: - about:
michael@0: - about:blank
michael@0: - mailbox://nsmail-2.mcom.com/xxx
michael@0: - mailto:brade@netscape.com)
michael@0: - junk
michael@0: - http://foo/
michael@0: - http://foo.com/
michael@0: - https://foo.com/
michael@0: - ftp://ftp.mozilla.org/
michael@0: - http://foo.com:8080/
michael@0: - http://brade@foo.com/
michael@0: - http://brade:password@foo.com/
michael@0: - http://brade:@foo.com:8080/
michael@0: - file:///
michael@0: - file:///Quest/Desktop%20Folder/test.html
michael@0:
michael@0: other variations:
michael@0:
michael@0: - sub-directories on above list
michael@0: - files on above list
michael@0: - sub-directories and files on above list
michael@0:
michael@0: - directories which don't end in a '/'
michael@0: - files with queries
michael@0: - files with no extension
michael@0: - files with references
michael@0: - files with params
michael@0: - other schemes (chrome, ldap, news, finger, etc.)
michael@0:
michael@0:
michael@0:
michael@0: This should be true:
michael@0: resultString = baseURL.getRelativeSpec(URL);
michael@0: <==>
michael@0: baseURL.resolve(resultString) == URL.spec;
michael@0:
michael@0: