File:  [parser3project] / parser3 / tests / results / 459.processed
Revision 1.2: download - view: text, annotated - select for diffs - revision graph
Wed Sep 30 18:23:39 2026 UTC (4 weeks, 1 day ago) by moko
Branches: MAIN
CVS tags: HEAD
tests added for '\' is a path separator on all platforms (related to feature #1300)

Content-Type: text/html
Content-Length: 3532

schemes:
	load parser://: Exception: unsupported path scheme
	load http:// is allowed: allowed
	table::load http:// is allowed: allowed
	table::load file://: loaded
	fullpath http://: Exception: unsupported path scheme
	a built uri keeps the scheme: Exception: unsupported path scheme
	scheme only at the start: /tests/x/file:///etc/passwd
	empty file:// rejected: Exception: must be file:///path or file://localhost/path
	use file://: used
	use http://: Exception: unsupported path scheme
	windows-only file://C:/ form: ok
throwing:
	save refuses a uri: Exception: unsupported path scheme
	save refuses an invalid file://: Exception: must be file:///path or file://localhost/path
	delete refuses a uri: Exception: unsupported path scheme
	delete with exception(false) ignores a uri: silent
	delete with exception(false) ignores an invalid file://: silent
	find never finds a uri: not found
	find does not throw on an invalid file://: not found
	-f and -d do not throw on a uri or an invalid file://: no
	-f and -d accept file://: yes
backslash:
	save creates the directories: 459_tmp/b/c.txt
	-f: yes
	load: text
	list: b
	delete removes the directories: removed
	fullpath of a relative name: /tests/a/x.gif
	fullpath of a web path: /tests/459.html
	a leading backslash is a web path: /tests/459.html
	find relative to the request uri: /tests/366_dir/test.p
	find climbs up: /tests/Makefile
	-f file://: yes
	find file://: /tests/366_dir/test.p
	delete file://: deleted
	use: used
	dirname keeps the string: x\y
	basename: z.txt
document-root:
	plain:
		document-root is returned as given: <root>
		file:// loads the same file: loaded
		fullpath of a relative name: ok
		fullpath maps file:// to web space: ok
		fullpath maps file://localhost/ to web space: ok
		find maps file:// to web space: ok
		find climbs up from a disk path: ok
		find climbs up from a web path: /tests/Makefile
		find relative to the request uri: /tests/Makefile
		localhost authority allowed: Exception: is outside of $request:document-root [<root>]
		fullpath outside the root: Exception: is outside of $request:document-root [<root>]
		find outside the root: NOT FOUND
	with a trailing slash:
		document-root is returned as given: <root>/
		file:// loads the same file: loaded
		fullpath of a relative name: ok
		fullpath maps file:// to web space: ok
		fullpath maps file://localhost/ to web space: ok
		find maps file:// to web space: ok
		find climbs up from a disk path: ok
		find climbs up from a web path: /tests/Makefile
		find relative to the request uri: /tests/Makefile
		localhost authority allowed: Exception: is outside of $request:document-root [<root>/]
		fullpath outside the root: Exception: is outside of $request:document-root [<root>/]
		find outside the root: NOT FOUND
	empty:
		document-root is returned as given: 
		file:// loads the same file: loaded
		fullpath of a relative name: ok
		fullpath maps file:// to web space: ok
		fullpath maps file://localhost/ to web space: ok
		find maps file:// to web space: ok
		find climbs up from a disk path: ok
		find climbs up from a web path: NOT FOUND
		find relative to the request uri: NOT FOUND
		localhost authority allowed: /nonexistent-459
		fullpath outside the root: /nonexistent-459
		find outside the root: NOT FOUND
segment boundary:
	disk path: Exception: is outside of $request:document-root [<root>/tes]
	relative name: Exception: is outside of $request:document-root [<root>/tes]
unc:
	file://server/share: ok
	file:////server/share: /x.gif
	file:///\\server\share: ok

E-mail: